public class GameEngine extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private int |
aMaxMove |
private int |
aMove |
private Player |
aPlayer |
private Room |
bibliotheque |
private Room |
cabane |
private Room |
chambrebleue |
private Room |
chambrerouge |
private Room |
chambreverte |
private CommandWords |
commande |
private Room |
couloir |
private Room |
cour |
private Room |
cuisine |
private Room |
dressing |
private UserInterface |
gui |
private Room |
lagrandechambre |
private Item |
Objets |
private Parser |
parser |
private Room |
placard |
private Room |
salledebain |
private Room |
salledejeu |
private Room |
salon |
private java.util.Stack<Room> |
stack |
private Room |
WC |
| Constructor and Description |
|---|
GameEngine()
Constructor for objects of class GameEngine
|
| Modifier and Type | Method and Description |
|---|---|
void |
backRoom() |
private void |
charger() |
private void |
createRooms()
Create all the rooms and link their exits together.
|
private void |
Dead() |
void |
drop(Command command)
Command Drop
|
void |
eat(Command command) |
private void |
endGame() |
private void |
goRoom(Command command)
Try to go to one direction.
|
void |
interpretCommand(java.lang.String commandLine)
Given a command, process (that is: execute) the command.
|
private void |
inventaire() |
private void |
look() |
private void |
printHelp()
Print out some help information.
|
void |
PrintVictoire() |
private void |
printWelcome()
Print out the opening message for the player.
|
void |
setGUI(UserInterface userInterface) |
private void |
take(Command command)
Permet de prendre un objet
|
private void |
test(Command command) |
private void |
utiliser() |
private UserInterface gui
private CommandWords commande
private int aMove
private int aMaxMove
private Room bibliotheque
private Room lagrandechambre
private Room salledejeu
private Room chambrerouge
private Room chambrebleue
private Room chambreverte
private Room salledebain
public GameEngine()
public void setGUI(UserInterface userInterface)
private void printWelcome()
private void createRooms()
public void interpretCommand(java.lang.String commandLine)
private void look()
private void inventaire()
private void printHelp()
private void goRoom(Command command)
public void PrintVictoire()
public void backRoom()
private void endGame()
private void Dead()
private void charger()
private void utiliser()