package comlib.message;

import rescuecore2.standard.entities.Human;
import rescuecore2.worldmodel.EntityID;

abstract public class HumanMessage extends CommunicationMessage {

	protected EntityID humanID;
	protected int humanHP;
	protected int humanBuriedness;
	protected int humanDamage;
	protected EntityID humanPosition;

	public DummyMessage(int messageID, Human human) {
		super(messageID);
		humanID = human.getID();
		humanHP = human.getHP();
		humanBuriedness = humanBuriedness();
		humanDamage = humanDamage();
		humanPosition = human.getPosition();
	}

	public DummyMessage(int messageID, int time, int ttl, EntityID id, int hp, int buriedness, int damage, EntityID position) {
		super(messageID, time, ttl);
		humanID = id;
		humanHP = hp;
		humanBuriedness = buriedness;
		humanDamage = damage;
		humanPosition = position;
	}

	public int getValue() {
		return this.dummyTest;
	}

}


@@ -150,16 +150,14 @@
 nds 
-Communic
+Inform
 atio
@@ -463,24 +463,28 @@
 ness = human
+.get
 Buriedness()
@@ -502,24 +502,28 @@
 mage = human
+.get
 Damage();%0A%09%09
@@ -851,27 +851,190 @@
 lic 
-int getValue() %7B%0A%09%09
+EntityID getHumanID() %7B return this.humanID; %7D%0A%0A%09public int getHP() %7B return this.humanHP; %7D%0A%0A%09public int getBuriedness() %7B return this.humanBuriedness; %7D%0A%0A%09public int getDamage() %7B 
 retu
@@ -1045,20 +1045,84 @@
 his.
-dummyTest;%0A%09
+humanDamage; %7D%0A%0A%09public EntityID getPosition() %7B return this.humanPosition; 
 %7D%0A%0A%7D

update Comlib