| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Represents the game world. This is the main class.
Constructor Summary | |
World(WorldController c, String fileName, int width, int height) Create a new world. |
Method Summary | |
void | createHuman(SquareOfLand sq) Create a human on a sqyare of land. |
GameBoard | getGameBoard() Return the game board. |
int | getHeight() The height of the game board. |
static World | getInst() Return the instance of this world. |
Resource | getResource(String r) Returns the given world resource. |
Map | getResources() Returns a list of world resources. |
InfoList | getResourcesInfo() Information about the world resources. |
int | getWidth() The width of the game board. |
protected WorldController | getWorldController() Return the worldcontroller. |
boolean | isActiveSelected(Human human) Check whether the given human is the last selected human or not. |
boolean | isSelected(Human human) Check whether the given human is selected or not. |
void | refresh() |
protected void | setWorldController(WorldController c) Set the worldcontroller. |
Constructor Detail |
public World(WorldController c, String fileName, int width, int height)
throws java.io.FileNotFoundException,
java.io.IOException
Method Detail |
public void createHuman(SquareOfLand sq)
throws CreationPowerInsufficientException,
evolution.lands.IllegalPlacementException
public GameBoard getGameBoard()
public int getHeight()
public static World getInst()
public Resource getResource(String r)
throws evolution.resources.NoSuchResourceException
public Map getResources()
public InfoList getResourcesInfo()
public int getWidth()
protected WorldController getWorldController()
public boolean isActiveSelected(Human human)
public boolean isSelected(Human human)
public void refresh()
protected void setWorldController(WorldController c)
Association Links |
to Class java.util.Map
to Class evolution.World
to Class evolution.CreationPower
to Class evolution.WorldController
| a gvijf production | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |