The number of bombs being carried by this Miner.
The number of building materials carried by this Miner.
The Upgrade this Miner is on.
The amount of dirt carried by this Miner.
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.
The remaining health of this Miner.
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.
Any strings logged will be stored here. Intended for debugging.
The remaining mining power this Miner has this turn.
The number of moves this Miner has left this turn.
The amount of ore carried by this Miner.
The Player that owns and can control this Miner.
The Tile this Miner is on.
The upgrade level of this Miner. Starts at 0.
Builds a support, shield, or ladder on Miner's Tile, or an adjacent Tile.
The Tile to build on.
The structure to build (support, ladder, or shield).
True if successfully built, False otherwise.
Purchase a resource from the Player's base or hopper.
The type of resource to buy.
The amount of resource to buy. Amounts <= 0 will buy all of that material Player can.
True if successfully purchased, false otherwise.
Dumps materials from cargo to an adjacent Tile. If the Tile is a base or a hopper Tile, materials are sold instead of placed.
The Tile the materials will be dumped on.
The material the Miner will drop. 'dirt', 'ore', or 'bomb'.
The number of materials to drop. Amounts <= 0 will drop all of the material.
True if successfully dumped materials, 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.
Mines the Tile the Miner is on or an adjacent Tile.
The Tile the materials will be mined from.
The amount of material to mine up. Amounts <= 0 will mine all the materials that the Miner can.
True if successfully mined, false otherwise.
Moves this Miner from its current Tile to an adjacent Tile.
The Tile this Miner should move to.
True if it moved, false otherwise.
A toString override for easier debugging.
A human readable representation of the game object.
Transfers a resource from the one Miner to another.
The Miner to transfer materials to.
The type of resource to transfer.
The amount of resource to transfer. Amounts <= 0 will transfer all the of the material.
True if successfully transferred, false otherwise.
Upgrade this Miner by installing an upgrade module.
True if successfully upgraded, False otherwise.
Generated using TypeDoc
A Miner in the game.