Modifier and Type | Class and Description |
---|---|
class |
AiPlayer |
Modifier and Type | Field and Description |
---|---|
private Player |
Tile.owner
The player that owns the tile, if it has one.
|
static Player[] |
GameEngine.players
Stores data pertaining to the game's active players
For more information, check the "Player" class
|
private Player |
Trade.sender |
private Player |
Trade.targetPlayer |
Modifier and Type | Field and Description |
---|---|
private com.badlogic.gdx.utils.Array<Player> |
Market.otherPlayer
a list of players that the current player can trade with
|
Modifier and Type | Method and Description |
---|---|
Player |
Market.buy(java.lang.String Stock_Type,
int Quantity,
Player Player)
A method that allows buying resources from the market.
|
Player |
GameEngine.currentPlayer()
Returns the data pertaining to the player who is active at the time when this is called
|
Player |
Tile.getOwner()
Returns the class of the player who owns the tile
|
Player[] |
GameEngine.getPlayers() |
Player |
Trade.getSender() |
Player |
Trade.getTargetPlayer() |
Player[] |
GameEngine.players()
Returns all of the data pertaining to the array of players managed by the game's engine
Unless the game's architecture changes radically, this should only ever return two Player objects
|
Player |
Market.sell(java.lang.String Stock_Type,
int Quantity,
Player Player)
A method that allows selling resources to the market.
|
Modifier and Type | Method and Description |
---|---|
Player |
Market.buy(java.lang.String Stock_Type,
int Quantity,
Player Player)
A method that allows buying resources from the market.
|
java.lang.Boolean |
Market.gamble(int amountToGamble,
Player Player)
A method that allows gambling as specified in the brief.
|
Player |
Market.sell(java.lang.String Stock_Type,
int Quantity,
Player Player)
A method that allows selling resources to the market.
|
void |
Tile.setOwner(Player Owner)
Changes the owner of the tile to the one specified
|
void |
GameEngine.setPlayers(Player[] players) |
void |
GameScreen.showPlayerWin(Player player) |
void |
GameEngine.updateCurrentPlayer(Player currentPlayer)
Updates the data pertaining to the game's current player
This is used by the Market class to process item transactions
|
Constructor and Description |
---|
Roboticon(int ID,
Player Player,
Tile Tile)
Constructor of the class
|
Trade(int oreAmount,
int energyAmount,
int foodAmount,
int price,
Player sender,
Player targetPlayer)
constructor for a trade
|