|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--CEngine
Field Summary | |
int |
cell_height
|
int |
cell_width
|
CEnemy[] |
enemies
|
boolean |
hero_is_dead
|
CLevel |
level
|
boolean |
level_is_complete
|
int |
lives
|
CMan |
man
|
int |
score
|
boolean |
started
|
protected int |
tick
|
Constructor Summary | |
CEngine()
Constructor of engine |
Method Summary | |
boolean |
DoCalculations()
Do some calculations in level |
void |
Engine_Start(java.net.URL level_num)
Start engine |
void |
Hit()
Do hit |
void |
Init()
|
void |
SetCellParam(int width,
int height)
Set all cell parameters in engine |
void |
StepDown()
Do step down |
void |
StepLeft()
Do step left |
void |
StepRight()
Do step right |
void |
StepUp()
Do step up |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public CMan man
public CEnemy[] enemies
public CLevel level
public int cell_width
public int cell_height
protected int tick
public int lives
public int score
public boolean hero_is_dead
public boolean level_is_complete
public boolean started
Constructor Detail |
public CEngine()
Method Detail |
public void Init()
public void SetCellParam(int width, int height)
width
- Width of one cellheight
- Height of one cellpublic void Engine_Start(java.net.URL level_num) throws java.lang.Exception
level_num
- URL of levelpublic void StepLeft()
public void StepRight()
public void StepUp()
public void StepDown()
public void Hit()
public boolean DoCalculations()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |