Constructor and Description |
---|
Base(playn.core.GroupLayer graphLayer,
playn.core.Image baseImage)
Constructor of the Base
|
Modifier and Type | Method and Description |
---|---|
void |
buildBazarCarpet(playn.core.GroupLayer graphLayer,
playn.core.Image image) |
void |
buildBazarChina(playn.core.GroupLayer graphLayer,
playn.core.Image image) |
void |
buildBazarFood(playn.core.GroupLayer graphLayer,
playn.core.Image image) |
void |
buildGarden(playn.core.GroupLayer graphLayer,
playn.core.Image image) |
void |
buildPalace(playn.core.GroupLayer graphLayer,
playn.core.Image image) |
void |
buildTower(playn.core.GroupLayer graphLayer,
playn.core.Image image) |
void |
buildWall(playn.core.GroupLayer graphLayer,
playn.core.Image image1,
playn.core.Image image2,
playn.core.Image image3,
playn.core.Image image4) |
playn.core.ImageLayer |
getBaseLayer() |
int |
getBazarLevel() |
int |
getCityLevel() |
int |
getGardenLevel() |
int |
getPopulation() |
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 |
setPopulation(int population)
Sets the population of this node to the given number
|
void |
setTowerLevel(int level) |
void |
setWallLevel(int level) |
public Base(playn.core.GroupLayer graphLayer, playn.core.Image baseImage)
graphLayer
- - the GroupLayer of the graphbaseImage
- - the image of the basepublic void setPopulation(int population)
population
- - intpublic int getPopulation()
public void paint(float x, float y)
x
- - float x coordinatey
- - float y coordinatepublic playn.core.ImageLayer getBaseLayer()
public void buildPalace(playn.core.GroupLayer graphLayer, playn.core.Image image)
public void buildBazarFood(playn.core.GroupLayer graphLayer, playn.core.Image image)
public void buildBazarChina(playn.core.GroupLayer graphLayer, playn.core.Image image)
public void buildBazarCarpet(playn.core.GroupLayer graphLayer, playn.core.Image image)
public void buildGarden(playn.core.GroupLayer graphLayer, playn.core.Image image)
public void buildTower(playn.core.GroupLayer graphLayer, playn.core.Image image)
public void buildWall(playn.core.GroupLayer graphLayer, playn.core.Image image1, playn.core.Image image2, playn.core.Image image3, playn.core.Image image4)
public int getCityLevel()
public void setCityLevel(int level)
public int getBazarLevel()
public void setBazarLevel(int level)
public int getGardenLevel()
public void setGardenLevel(int level)
public int getTowerLevel()
public void setTowerLevel(int level)
public int getWallLevel()
public void setWallLevel(int level)