Class CEngine

java.lang.Object
  |
  +--CEngine

public class CEngine
extends java.lang.Object


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

man

public CMan man

enemies

public CEnemy[] enemies

level

public CLevel level

cell_width

public int cell_width

cell_height

public int cell_height

tick

protected int tick

lives

public int lives

score

public int score

hero_is_dead

public boolean hero_is_dead

level_is_complete

public boolean level_is_complete

started

public boolean started
Constructor Detail

CEngine

public CEngine()
Constructor of engine
Method Detail

Init

public void Init()

SetCellParam

public void SetCellParam(int width,
                         int height)
Set all cell parameters in engine
Parameters:
width - Width of one cell
height - Height of one cell

Engine_Start

public void Engine_Start(java.net.URL level_num)
                  throws java.lang.Exception
Start engine
Parameters:
level_num - URL of level

StepLeft

public void StepLeft()
Do step left

StepRight

public void StepRight()
Do step right

StepUp

public void StepUp()
Do step up

StepDown

public void StepDown()
Do step down

Hit

public void Hit()
Do hit

DoCalculations

public boolean DoCalculations()
Do some calculations in level
Returns:
true - if hero can't move (in the fly), false - otherwise