Fixed with nodes and selection

This commit is contained in:
Jesper Lundin 2007-04-16 11:34:57 +00:00
parent c1e3fcdf9e
commit 1cb10a3166
5 changed files with 75 additions and 29 deletions

View file

@ -17,12 +17,12 @@ public class HumanPlayer extends Player{
public void addUnit(Unit u){
units.add(u);
unitsNode.add(u.getSprite());
unitsNode.add(u.getNode());
}
public void removeUnit(Unit u){
units.remove(u);
unitsNode.remove(u.getSprite());
unitsNode.remove(u.getNode());
}
public Node getNode(){