public class City extends Base
Constructor and Description |
---|
City(playn.core.GroupLayer graphLayer) |
Modifier and Type | Method and Description |
---|---|
void |
buildBazarCarpet(playn.core.GroupLayer graphLayer,
playn.core.Image bazar_carpet_image) |
void |
buildBazarChina(playn.core.GroupLayer graphLayer,
playn.core.Image bazar_china_image) |
void |
buildBazarFood(playn.core.GroupLayer graphLayer,
playn.core.Image bazar_food_image) |
void |
buildGarden(playn.core.GroupLayer graphLayer,
playn.core.Image garden_image) |
void |
buildPalace(playn.core.GroupLayer graphLayer,
playn.core.Image palace_image) |
void |
buildTower(playn.core.GroupLayer graphLayer,
playn.core.Image tower_image) |
void |
buildWall(playn.core.GroupLayer graphLayer,
playn.core.Image wall_front_image,
playn.core.Image wall_back_image,
playn.core.Image wall_right_image,
playn.core.Image wall_left_image) |
int |
getBazarLevel() |
int |
getCityLevel() |
int |
getGardenLevel() |
int |
getTowerLevel() |
int |
getWallLevel() |
void |
paint(float x,
float y)
paints the base at the given coordinates
|
void |
setBazarLevel(int level) |
void |
setCityLevel(int level) |
void |
setGardenLevel(int level) |
void |
setTowerLevel(int level) |
void |
setWallLevel(int level) |
getBaseLayer, getPopulation, setPopulation
public void buildPalace(playn.core.GroupLayer graphLayer, playn.core.Image palace_image)
buildPalace
in class Base
public int getCityLevel()
getCityLevel
in class Base
public void setCityLevel(int level)
setCityLevel
in class Base
public void buildBazarFood(playn.core.GroupLayer graphLayer, playn.core.Image bazar_food_image)
buildBazarFood
in class Base
public void buildBazarChina(playn.core.GroupLayer graphLayer, playn.core.Image bazar_china_image)
buildBazarChina
in class Base
public void buildBazarCarpet(playn.core.GroupLayer graphLayer, playn.core.Image bazar_carpet_image)
buildBazarCarpet
in class Base
public int getBazarLevel()
getBazarLevel
in class Base
public void setBazarLevel(int level)
setBazarLevel
in class Base
public void buildGarden(playn.core.GroupLayer graphLayer, playn.core.Image garden_image)
buildGarden
in class Base
public int getGardenLevel()
getGardenLevel
in class Base
public void setGardenLevel(int level)
setGardenLevel
in class Base
public void buildTower(playn.core.GroupLayer graphLayer, playn.core.Image tower_image)
buildTower
in class Base
public int getTowerLevel()
getTowerLevel
in class Base
public void setTowerLevel(int level)
setTowerLevel
in class Base
public void buildWall(playn.core.GroupLayer graphLayer, playn.core.Image wall_front_image, playn.core.Image wall_back_image, playn.core.Image wall_right_image, playn.core.Image wall_left_image)
public int getWallLevel()
getWallLevel
in class Base
public void setWallLevel(int level)
setWallLevel
in class Base