public Tile(int x, int y, int z) { occupant = null; location_x = x; location_y = y; location_z = z; terrain = Terrain.GRASSLAND; tile_id = -1; }
public int tile_id; //TODO: Ensure this isn't null ever #endregion Fields #region Constructors public Tile(int x, int y, int z, Terrain newTerrain) { occupant = null; location_x = x; location_y = y; location_z = z; terrain = newTerrain; tile_id = -1; }
static int id_pool = 0; //Unique id for every unit #endregion Fields #region Methods public static Unit createTestUnit() { Unit output = new Unit() ; Action baseAttack = Action_Builder.createTestAction(); Move baseMove = Move_Builder.createTestMove(); output.addAction(baseAttack); output.addMove(baseMove); output.id = id_pool; id_pool++; return output; }