|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectothello.models.PreferenceModel
public class PreferenceModel
Les préférences du jeux.
Constructor Summary | |
---|---|
PreferenceModel()
Le premier et le second joueur sont joués par des humains, la musique de fond est désactivée, les sons sont actifs. |
Method Summary | |
---|---|
int |
getFirstPlayer()
Permet de connaître le premier joueur |
int |
getSecondPlayer()
Permet de connaître le second joueur |
boolean |
isBackgroundMusic()
Permet de savoir si la musique de fond est active |
boolean |
isSounds()
Permet de savoir si les sons sont actifs |
void |
setBackgroundMusic(boolean backgroundMusic)
Permet d'activer ou de désactiver la musique de fond |
void |
setFirstPlayer(int firstPlayer)
Permet de choisir le premier joueur |
void |
setSecondPlayer(int secondPlayer)
Permet de choisir le second joueur |
void |
setSounds(boolean sounds)
Permet d'activer ou de désactiver les sons |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PreferenceModel()
Method Detail |
---|
public int getFirstPlayer()
public void setFirstPlayer(int firstPlayer)
firstPlayer
- 0 humain 1-3 computerpublic int getSecondPlayer()
public void setSecondPlayer(int secondPlayer)
secondPlayer
- 0 humain 1-3 computerpublic boolean isBackgroundMusic()
public void setBackgroundMusic(boolean backgroundMusic)
backgroundMusic
- true active, false non activepublic boolean isSounds()
public void setSounds(boolean sounds)
sounds
- backgroundMusic true active, false non active
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |