|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsimogl.level.AbstractLevel
simogl.level.DemoLevel
public class DemoLevel
| Field Summary |
|---|
| Fields inherited from class simogl.level.AbstractLevel |
|---|
buildings, characters, fog, food, gold, lights, partEffects, rainSources, skyBox, terrain, waterLayer, worldItemsSolid, worldItemsTransparent |
| Constructor Summary | |
|---|---|
DemoLevel(javax.media.opengl.GL gl,
int amountGold,
int amountFood)
Creates a new level with the specified initial values for gold and food for the player |
|
| Method Summary | |
|---|---|
void |
createTextures()
This method must be overridden to initialize the textures for the concrete world. |
void |
createWorldContent(javax.media.opengl.GL gl)
This is the central method that should be used to create all world content. |
| Methods inherited from class simogl.level.AbstractLevel |
|---|
createRain, createSkybox, createTerrain, createWaterLayer, draw, isEnabledRain, setEnabledRain |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DemoLevel(javax.media.opengl.GL gl,
int amountGold,
int amountFood)
gl - amountGold - initial amount of gold for the playeramountFood - initial amount of food for the player| Method Detail |
|---|
public void createTextures()
AbstractLevel
this.texWall = TextureIO.newTexture(rsLoader.getFile("./textures/wall.png"), true);
this.texSand = TextureIO.newTexture(rsLoader.getFile("./textures/sand.png"), true);
createTextures in class AbstractLevelpublic void createWorldContent(javax.media.opengl.GL gl)
AbstractLevel
createWorldContent in class AbstractLevel
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||