Added ai player and fixed so player kan create units
This commit is contained in:
parent
e7403858f8
commit
c83605d5c4
22 changed files with 373 additions and 123 deletions
20
src/ei/game/player/AiPlayer.java
Normal file
20
src/ei/game/player/AiPlayer.java
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
package ei.game.player;
|
||||
|
||||
import ei.game.scene.buildings.Building;
|
||||
import ei.game.scene.buildings.CommandCenter;
|
||||
|
||||
public class AiPlayer extends Player{
|
||||
private CommandCenter cc;
|
||||
|
||||
public AiPlayer(){
|
||||
super();
|
||||
cc = new CommandCenter(30,30,this);
|
||||
addUnit(cc);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Building getCC() {
|
||||
return cc;
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue