|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.developpez.java.spaceinvader.app.GameContext
public class GameContext
Contexte de l'application
Field Summary | |
---|---|
static GameContext |
instance
Unique instance de la classe, typique du singleton |
int |
nbLife
|
int |
score
|
Method Summary | |
---|---|
static GameContext |
getInstance()
Permet la récupération de l'instance unique, typique du singleton |
int |
getNbLife()
|
java.util.Random |
getRd()
|
int |
getScore()
|
void |
incScore(int score)
Incrémente le score |
void |
kill()
Appelé a perte d'une vie |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int score
public int nbLife
public static GameContext instance
Method Detail |
---|
public static GameContext getInstance()
public int getNbLife()
public int getScore()
public java.util.Random getRd()
public void incScore(int score)
score
- public void kill()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |