Class WindmillTile


  • public class WindmillTile
    extends Tile
    A Windmill is a tile producing food. It needs to be placed close to wheat. It will be blocked by forest tiles (as neighbors). Just two windmills can harvest one wheat tile.
    • Constructor Detail

      • WindmillTile

        public WindmillTile()
        Creates a coordinate less wind mill tile.
      • WindmillTile

        public WindmillTile​(CubeCoordinate coord)
        Creates a wind mill with coordinates.
        Parameters:
        coord - coordinate of the wind mill
      • WindmillTile

        public WindmillTile​(CubeCoordinate coord,
                            org.json.JSONObject data)
        Creates a wind mill with a coordinate and extra json meta data.
        Parameters:
        coord - coordinate of the tile
        data - extra data
    • Method Detail

      • getName

        public java.lang.String getName()
        Description copied from class: Tile
        Name of Tile in Api interface.
        Specified by:
        getName in class Tile
        Returns:
        api name of the tile
      • clone

        public Tile clone()
        Description copied from class: Tile
        Creates a clone of the tile.
        Specified by:
        clone in class Tile
        Returns:
        the new tile