lol
This commit is contained in:
parent
f7c37665e1
commit
1ffdb1015f
4 changed files with 29 additions and 4 deletions
|
|
@ -1,5 +1,27 @@
|
|||
package ei.game.player;
|
||||
|
||||
public class Human {
|
||||
import java.util.ArrayList;
|
||||
|
||||
import ei.engine.scene.Node;
|
||||
import ei.game.scene.GameEntity;
|
||||
import ei.game.scene.units.Unit;
|
||||
|
||||
public class Human {
|
||||
private ArrayList<GameEntity> units;
|
||||
private Node unitsNode;
|
||||
|
||||
public Human(){
|
||||
units = new ArrayList<GameEntity>();
|
||||
unitsNode = new Node("UnitsNode");
|
||||
}
|
||||
|
||||
|
||||
public void addUnit(Unit u){
|
||||
units.add(u);
|
||||
unitsNode.add(u.getSprite());
|
||||
}
|
||||
|
||||
public Node getNode(){
|
||||
return unitsNode;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue