public class VoxWorld
extends java.lang.Object
Constructor and Description |
---|
VoxWorld() |
Modifier and Type | Method and Description |
---|---|
Country |
countryWithID(int ID) |
UnitStackGroup |
getAttackerUnitStackGroup(Country c,
Player player)
Return the UnitStackGroup containing all the units from Player attacking this Country.
|
java.util.List |
getBuyableUnitsForPlayer(Player player) |
java.util.List |
getCastleCountriesOwnedBy(int ID) |
Continent |
getContinent(int continentID) |
int |
getContinentSize(int continentID) |
java.util.List |
getCountries() |
Country[] |
getCountriesArray() |
UnitStackGroup |
getDefendersUnitStackGroup(Country c)
Return the USG containing all the units that will defend this Country on this turn.
|
int |
getNumberOfPlayers() |
Player |
getPlayer(int playerID) |
int |
getPlayerArmyCount(int playerID) |
int |
getPlayerID() |
int |
getPlayerIncome(int playerID) |
int |
getPlayerLandCount(int playerID) |
int |
getPlayerMoney(int playerID) |
int |
getPlayerMoney(Player player) |
Team |
getTeam(int playerID) |
boolean |
moveUnit(UnitStack ug,
Country from,
Country to,
int numberOfUnits)
Take these units away from the group it was in and add it to a command storing the move.
|
boolean |
placeUnits(UnitStack us,
Country c) |
void |
sendChat(java.lang.String chat) |
boolean |
unitCanReach(UnitStack units,
Country from,
Country to) |
public Country countryWithID(int ID)
public UnitStackGroup getAttackerUnitStackGroup(Country c, Player player)
public java.util.List getBuyableUnitsForPlayer(Player player)
public java.util.List getCastleCountriesOwnedBy(int ID)
public Continent getContinent(int continentID)
public int getContinentSize(int continentID)
public java.util.List getCountries()
public Country[] getCountriesArray()
public UnitStackGroup getDefendersUnitStackGroup(Country c)
public int getNumberOfPlayers()
public Player getPlayer(int playerID)
public int getPlayerArmyCount(int playerID)
public int getPlayerID()
public int getPlayerIncome(int playerID)
public int getPlayerLandCount(int playerID)
public int getPlayerMoney(int playerID)
public int getPlayerMoney(Player player)
public Team getTeam(int playerID)
public boolean moveUnit(UnitStack ug, Country from, Country to, int numberOfUnits)
public void sendChat(java.lang.String chat)