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, int test) {
		super(messageID);
		dummyTest = test;
	}

	public DummyMessage(int messageID, int time, int ttl, int test) {
		super(messageID, time, ttl);
		dummyTest = test;
	}

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

}


@@ -355,24 +355,27 @@
 sageID, 
-int test
+Human human
 ) %7B%0A%09%09su
@@ -396,146 +396,443 @@
 ;%0A%09%09
-dummyTest = test;%0A%09%7D%0A%0A%09public DummyMessage(int messageID, int time, int ttl, int test) %7B%0A%09%09super(messageID, time, ttl);%0A%09%09dummyTest = test
+humanID = human.getID();%0A%09%09humanHP = human.getHP();%0A%09%09humanBuriedness = humanBuriedness();%0A%09%09humanDamage = humanDamage();%0A%09%09humanPosition = human.getPosition();%0A%09%7D%0A%0A%09public DummyMessage(int messageID, int time, int ttl, EntityID id, int hp, int buriedness, int damage, EntityID position) %7B%0A%09%09super(messageID, time, ttl);%0A%09%09humanID = id;%0A%09%09humanHP = hp;%0A%09%09humanBuriedness = buriedness;%0A%09%09humanDamage = damage;%0A%09%09humanPosition = position
 ;%0A%09%7D

update Comlib