Package one.empty3.apps.opad
Class GameLogic
- java.lang.Object
-
- one.empty3.apps.opad.GameLogic
-
public class GameLogic extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected double
angle
protected Point3D
direction
protected double
directionNorme
protected Point3D
directionOrigine
protected Point3D
position
protected double
positionIncrement
protected Point3D
positionOrigine
protected static int
STATE_GAME_IN_PROGRESS
-
Constructor Summary
Constructors Constructor Description GameLogic()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
acc()
void
dec()
Point3D
direction()
void
ennemi(Bonus e)
boolean
estGagnant()
GameObject[]
getObjects()
Point3D
position()
void
rotationDroite()
void
rotationGauche()
int
score()
int
state()
void
testCollision()
void
update()
-
-
-
Field Detail
-
positionOrigine
protected Point3D positionOrigine
-
position
protected Point3D position
-
positionIncrement
protected double positionIncrement
-
directionNorme
protected double directionNorme
-
directionOrigine
protected Point3D directionOrigine
-
direction
protected Point3D direction
-
angle
protected double angle
-
STATE_GAME_IN_PROGRESS
protected static final int STATE_GAME_IN_PROGRESS
- See Also:
- Constant Field Values
-
-
Method Detail
-
update
public void update()
-
acc
public void acc()
-
dec
public void dec()
-
state
public int state()
-
getObjects
public GameObject[] getObjects()
-
position
public Point3D position()
-
direction
public Point3D direction()
-
rotationGauche
public void rotationGauche()
-
rotationDroite
public void rotationDroite()
-
testCollision
public void testCollision()
-
ennemi
public void ennemi(Bonus e)
-
score
public int score()
-
estGagnant
public boolean estGagnant()
-
-