Class WheatTile
- java.lang.Object
-
- page.codeberg.terratactician_expandoria.world.tiles.Tile
-
- page.codeberg.terratactician_expandoria.world.tiles.WheatTile
-
public class WheatTile extends Tile
A wheat tile produces food. The most food will produced if wheat is placed in clusters of three.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class page.codeberg.terratactician_expandoria.world.tiles.Tile
Tile.TileType
-
-
Field Summary
-
Fields inherited from class page.codeberg.terratactician_expandoria.world.tiles.Tile
coord, reclaimTime
-
-
Constructor Summary
Constructors Constructor Description WheatTile()
Creates a coordinate less wheat tile.WheatTile(CubeCoordinate coord)
Creates a wheat tile with coordinates.WheatTile(CubeCoordinate coord, org.json.JSONObject data)
Creates a wheat tile with a coordinate and extra json meta data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tile
clone()
Creates a clone of the tile.java.lang.String
getName()
Name of Tile in Api interface.-
Methods inherited from class page.codeberg.terratactician_expandoria.world.tiles.Tile
dataToString, deserialize, deserialize, getCoordinate, reclaimable, serialize, serializeData, takeable, toString
-
-
-
-
Constructor Detail
-
WheatTile
public WheatTile()
Creates a coordinate less wheat tile.
-
WheatTile
public WheatTile(CubeCoordinate coord)
Creates a wheat tile with coordinates.- Parameters:
coord
- coordinate of the wheat tile
-
WheatTile
public WheatTile(CubeCoordinate coord, org.json.JSONObject data)
Creates a wheat tile with a coordinate and extra json meta data.- Parameters:
coord
- coordinate of the tiledata
- extra data
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from class:Tile
Name of Tile in Api interface.
-
-