Fixed with nodes and selection
This commit is contained in:
parent
c1e3fcdf9e
commit
1cb10a3166
5 changed files with 75 additions and 29 deletions
|
|
@ -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(){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue