|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object erland.game.tileadventure.TileAdventureMain
public class TileAdventureMain
This is the class that controls the drawing on the screen and receives the commands from the user
Field Summary | |
---|---|
protected boolean |
bQuit
Indicates if the game should be quit |
protected boolean |
cheatMode
Indicates if cheat mode is activated |
protected BlockContainerData |
cont
Block container for the tile map |
protected GameEnvironmentInterface |
environment
Game environment object |
protected FpsCounter |
fps
FPS counter object |
protected KeyListener |
keyListener
Key listener that listens on keyboard command |
Constructor Summary | |
---|---|
TileAdventureMain(TileAdventureModelInterface model)
Creates a TileAdventureMain object using the specified model |
Method Summary | |
---|---|
void |
draw()
|
void |
exit()
|
void |
init(GameEnvironmentInterface environment)
|
boolean |
isExit()
|
void |
setCheatmode(boolean enable)
|
void |
update()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected BlockContainerData cont
protected boolean bQuit
protected KeyListener keyListener
protected FpsCounter fps
protected GameEnvironmentInterface environment
protected boolean cheatMode
Constructor Detail |
---|
public TileAdventureMain(TileAdventureModelInterface model)
model
- The model that implements the game logicMethod Detail |
---|
public boolean isExit()
isExit
in interface GamePanelInterface
public void setCheatmode(boolean enable)
setCheatmode
in interface GamePanelInterface
public void exit()
exit
in interface GamePanelInterface
public void init(GameEnvironmentInterface environment)
init
in interface GamePanelInterface
public void update()
update
in interface GamePanelInterface
public void draw()
draw
in interface GamePanelInterface
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |