Added a Factory
This commit is contained in:
parent
ae32a0a298
commit
f675011503
5 changed files with 44 additions and 1 deletions
|
|
@ -15,6 +15,7 @@ import ei.engine.util.MultiPrintStream;
|
|||
import ei.game.player.GaiaPlayer;
|
||||
import ei.game.player.Player;
|
||||
import ei.game.player.PlayerHandler;
|
||||
import ei.game.scene.map.Factory;
|
||||
import ei.game.scene.map.Stone;
|
||||
|
||||
public class Map {
|
||||
|
|
@ -24,6 +25,7 @@ public class Map {
|
|||
public static final int MAP_ASFALT = 3;
|
||||
|
||||
public static final int OBJ_STONE = 1;
|
||||
public static final int OBJ_FACTORY = 2;
|
||||
|
||||
public static final int POS_SIZE = 50;
|
||||
private int width;
|
||||
|
|
@ -112,6 +114,9 @@ public class Map {
|
|||
case OBJ_STONE:
|
||||
gaia.addUnit(new Stone(new Vector2i(i,j),gaia));
|
||||
break;
|
||||
case OBJ_FACTORY:
|
||||
gaia.addUnit(new Factory(new Vector2i(i,j),gaia));
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue