project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/Datastructures/Scheme.java
--- a/project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/Datastructures/Scheme.java Mon Feb 20 21:22:04 2012 +0100
+++ b/project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/Datastructures/Scheme.java Mon Feb 20 21:22:21 2012 +0100
@@ -46,6 +46,7 @@
private Integer gamemod;
private ArrayList<Integer> basic;;
private static ArrayList<LinkedHashMap<String, ?>> basicflags = new ArrayList<LinkedHashMap<String, ?>>();//TODO why is it static?
+ public int health;
public Scheme(String _name, ArrayList<Integer> _basic, int _gamemod){
name = _name;
@@ -65,6 +66,12 @@
String command = (String)basicflag.get("command");
Integer value = basic.get(pos);
+
+ if(command.equals("inithealth")){//Health is a special case, it doesn't need to be send
+ health = value; //to the engine yet, we'll do that with the other HH info
+ continue;
+ }
+
Boolean checkOverMax = (Boolean) basicflag.get("checkOverMax");
Boolean times1000 = (Boolean) basicflag.get("times1000");
Integer max = (Integer) basicflag.get("max");
@@ -106,6 +113,7 @@
String name = null;
ArrayList<Integer> basic = new ArrayList<Integer>();
Integer gamemod = 0;
+ int health = 0;
int mask = 0x000000004;
int eventType = xmlPuller.getEventType();