Modifier and Type | Class and Description |
---|---|
class |
AIPlayer
This class extends Player and builds upon to all AI functionality for a player to make choices by itself
It contains the following methods:
- CompleteTurn(Plot[] plots, MarketPlace market)
|
Modifier and Type | Field and Description |
---|---|
private Player |
GameEngine.currentPlayer |
private Player |
Plot.player |
Modifier and Type | Field and Description |
---|---|
private java.util.List<Player> |
GameEngine.humanPlayers |
Modifier and Type | Method and Description |
---|---|
Player |
GameEngine.getCurrentPlayer()
Returns the player whose current turn it is
|
Player |
Plot.getPlayer()
A getter for the player who owns the plot.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Player> |
GameEngine.getHumanPlayers()
Gets the array list of human players
|
Modifier and Type | Method and Description |
---|---|
void |
MarketPlace.buyEnergy(Player player,
int quantity)
This method is used for a player to buy energy.
|
void |
MarketPlace.buyOre(Player player,
int quantity)
This method is used for a player to buy ore.
|
void |
MarketPlace.buyRoboticon(Player player,
int quantity)
This method is used for a player to buy roboticons.
|
void |
MarketPlace.Lottery(Player player,
int num1,
int num2,
int num3) |
int[] |
MarketPlace.OneArmBandit(Player player) |
void |
MarketPlace.scratchCard(Player player) |
void |
MarketPlace.sellEnergy(Player player,
int quantity)
This method is used for a player to sell energy.
|
void |
MarketPlace.sellOre(Player player,
int quantity)
This method is used for a player to sell ore.
|
void |
Plot.setPlayer(Player player)
A setter for the player who owns the plot.
|
Constructor and Description |
---|
GameEngine(java.util.ArrayList<Player> humanPlayers,
java.util.ArrayList<AIPlayer> aiPlayers,
int mapWidth,
int mapHeight)
This allows a new instance of the GameEngine object to be instantiated allow a game to be played.
|