This commit is contained in:
parent
460226fc52
commit
a08a040ee4
3 changed files with 6 additions and 1 deletions
|
|
@ -33,7 +33,7 @@
|
||||||
0000000000000000000000000000000000000000
|
0000000000000000000000000000000000000000
|
||||||
0000000000000000000000000000000000000000
|
0000000000000000000000000000000000000000
|
||||||
0000000000000000000000000000000000000000
|
0000000000000000000000000000000000000000
|
||||||
0000000000000000000000000000000000000000
|
0000004000000000000000000000000000000000
|
||||||
0000000000000000000000000000000000000000
|
0000000000000000000000000000000000000000
|
||||||
0000000000000000000000000000000000000000
|
0000000000000000000000000000000000000000
|
||||||
0000000000000000000000000000000000000000
|
0000000000000000000000000000000000000000
|
||||||
|
|
|
||||||
BIN
src/data/map/water.png
Normal file
BIN
src/data/map/water.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 38 KiB |
|
|
@ -18,6 +18,7 @@ import ei.game.player.PlayerHandler;
|
||||||
import ei.game.scene.map.Factory;
|
import ei.game.scene.map.Factory;
|
||||||
import ei.game.scene.map.Prison;
|
import ei.game.scene.map.Prison;
|
||||||
import ei.game.scene.map.Stone;
|
import ei.game.scene.map.Stone;
|
||||||
|
import ei.game.scene.map.Water;
|
||||||
|
|
||||||
public class Map {
|
public class Map {
|
||||||
public static final int MAP_GRASS = 0;
|
public static final int MAP_GRASS = 0;
|
||||||
|
|
@ -31,6 +32,7 @@ public class Map {
|
||||||
public static final int OBJ_STONE = 1;
|
public static final int OBJ_STONE = 1;
|
||||||
public static final int OBJ_FACTORY = 2;
|
public static final int OBJ_FACTORY = 2;
|
||||||
public static final int OBJ_PRISON = 3;
|
public static final int OBJ_PRISON = 3;
|
||||||
|
public static final int OBJ_WATER = 4;
|
||||||
|
|
||||||
public static final int POS_SIZE = 50;
|
public static final int POS_SIZE = 50;
|
||||||
private int width;
|
private int width;
|
||||||
|
|
@ -150,6 +152,9 @@ public class Map {
|
||||||
case OBJ_PRISON:
|
case OBJ_PRISON:
|
||||||
gaia.addUnit(new Prison(new Vector2i(i,j),gaia));
|
gaia.addUnit(new Prison(new Vector2i(i,j),gaia));
|
||||||
break;
|
break;
|
||||||
|
case OBJ_WATER:
|
||||||
|
gaia.addUnit(new Water(new Vector2i(i,j),gaia, 300));
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue