The amount of corpses on this tile.
String representing the top level Class that this game object is an instance of. Used for reflection to create new instances on clients, but exposed for convenience should AIs want this data.
A unique id for each instance of a GameObject or a sub class. Used for client and server communication. Should never change value after being set.
Whether or not the tile is a castle tile.
Whether or not the tile is considered to be a gold mine or not.
Whether or not the tile is considered grass or not (Workers can walk on grass).
Whether or not the tile is considered to be the island gold mine or not.
Whether or not the tile is considered a path or not (Units can walk on paths).
Whether or not the tile is considered a river or not.
Whether or not the tile is considered a tower or not.
Whether or not the tile is the unit spawn.
Whether or not the tile can be moved on by workers.
Whether or not the tile is the worker spawn.
Any strings logged will be stored here. Intended for debugging.
The amount of Ghouls on this tile.
The amount of Hounds on this tile.
The amount of Zombies on this tile.
Which player owns this tile, only applies to grass tiles for workers, NULL otherwise.
The Tile to the 'East' of this one (x+1, y). Null if out of bounds of the map.
The Tile to the 'North' of this one (x, y-1). Null if out of bounds of the map.
The Tile to the 'South' of this one (x, y+1). Null if out of bounds of the map.
The Tile to the 'West' of this one (x-1, y). Null if out of bounds of the map.
The Tower on this Tile if present, otherwise null.
The Unit on this Tile if present, otherwise null.
The x (horizontal) position of this Tile.
The y (vertical) position of this Tile.
Gets the valid directions that tiles can be in, "North", "East", "South", or "West"
Gets the neighbors of this Tile.
The neighboring (adjacent) Tiles to this tile.
Checks if this Tile has a specific neighboring Tile
true if the tile is a neighbor of this Tile, false otherwise
Checks if a Tile is pathable to units
True if pathable, false otherwise
Adds a message to this GameObject's logs. Intended for your own debugging purposes, as strings stored here are saved in the gamelog.
A string to add to this GameObject's log. Intended for debugging.
Resurrect the corpses on this tile into Zombies.
Number of zombies to resurrect.
True if successful res, false otherwise.
Spawns a fighting unit on the correct tile.
The title of the desired unit type.
True if successfully spawned, false otherwise.
Spawns a worker on the correct tile.
True if successfully spawned, false otherwise.
A toString override for easier debugging.
A human readable representation of the game object.
Generated using TypeDoc
A Tile in the game that makes up the 2D map grid.