A B C D E F G H I L M O P Q R S T U V
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- aAllRooms - Variable in class GameEngine
- aBalance - Variable in class Player
- aButtons - Variable in class UserInterface
- aCharged - Variable in class Beamer
- aCommandWord - Variable in class Command
- aCommandWords - Variable in class Parser
- actionPerformed(ActionEvent) - Method in class UserInterface
-
Actionlistener interface for entry textfield.
- aCurrentRoom - Variable in class Player
- addItem(Item) - Method in class ItemList
- addItem(Item) - Method in class Room
- aDescription - Variable in class Item
- aDescription - Variable in class Room
- aDoors - Variable in class Room
- aEngine - Static variable in class Game
- aEngine - Variable in class UserInterface
- aEntryField - Variable in class UserInterface
- aExits - Variable in class Room
- aGameEngine - Variable in class Beamer
- aGui - Static variable in class Game
- aGui - Variable in class GameEngine
- aImage - Variable in class UserInterface
- aImageName - Variable in class Room
- aItems - Variable in class ItemList
- aItems - Variable in class Player
- aItems - Variable in class Room
- aKey - Variable in class Door
- aLocked - Variable in class Door
- aLog - Variable in class UserInterface
- aMyFrame - Variable in class UserInterface
- aName - Variable in class Item
- aName - Variable in class Player
- aPanelButtons - Variable in class UserInterface
- aParser - Variable in class GameEngine
- aPlayer - Variable in class Beamer
- aPlayer - Variable in class GameEngine
- aPrevRooms - Variable in class Player
- aPrice - Variable in class Item
- aRoom - Variable in class Beamer
- aRooms - Variable in class RoomRandomizer
- aRooms - Variable in class TransporterRoom
- aSecondWord - Variable in class Command
B
- back(Command) - Method in class GameEngine
-
Permet de retourner dans les salles précédentes
- Beamer - Class in <Unnamed>
- Beamer(String, String, double, Player, GameEngine) - Constructor for class Beamer
- buy(Command) - Method in class GameEngine
-
Défini l'action de la commande buy
C
- changeRoom(Room) - Method in class Player
-
Change de salle et modifie la pile des rooms
- charge(Command) - Method in class GameEngine
-
Permet de charger un beamer.
- charge(Room) - Method in class Beamer
-
Charge le beamer
- close(Command) - Method in class GameEngine
-
ferme une porte
- closeDoor() - Method in class Door
- Command - Class in <Unnamed>
- Command(String, String) - Constructor for class Command
-
Constructeur
- CommandWords - Class in <Unnamed>
- CommandWords() - Constructor for class CommandWords
- createGUI() - Method in class UserInterface
-
Set up graphical user interface.
- createRooms() - Method in class GameEngine
-
Crée toutes les salles du jeu avec leurs entrées et sorties, défini la salle actuelle (Bitcoin), et enfin, lis le clavier
D
- disableButtons() - Method in class UserInterface
- Door - Class in <Unnamed>
- Door(boolean, Item) - Constructor for class Door
- drop(Command) - Method in class GameEngine
-
Permet au joueur de déposé un item dans la salle actuelle
- dropItem(String) - Method in class Player
-
Pour déposer un item dans une salle.
E
- eat(Command) - Method in class GameEngine
-
Permet au joueur de manger
- eatCake(Command) - Method in class Player
-
Fonction pour manger le gâteau magique
- enable(boolean) - Method in class UserInterface
-
Enable or disable input in the input field.
- endGame() - Method in class GameEngine
F
- findRandomRoom() - Method in class RoomRandomizer
- findRandomRoom() - Method in class TransporterRoom
- fire() - Method in class Beamer
-
Utilises le beamer pour nous téléporter.
G
- Game - Class in <Unnamed>
- Game() - Constructor for class Game
- GameEngine - Class in <Unnamed>
- GameEngine() - Constructor for class GameEngine
- getBalance() - Method in class Player
- getBalanceString() - Method in class Player
- getCharged() - Method in class Beamer
- getCommand(String) - Method in class Parser
-
Get a new command from the user.
- getCommandList() - Method in class CommandWords
-
Liste des commandes
- getCommandString() - Method in class Parser
-
Returns a String with valid command words.
- getCommandWord() - Method in class Command
-
Récupère le premier mot de la commande
- getCurrentRoom() - Method in class GameEngine
-
Retourne l'endroit où l'on se trouve actuellement
- getCurrentRoom() - Method in class Player
- getDescription() - Method in class Item
- getDescription() - Method in class Room
-
Récupère la description de la salle actuelle
- getDoors() - Method in class Room
- getExit(String) - Method in class Room
-
Retourne la salle qui se trouve dans la direction donnée.
- getExit(String) - Method in class TransporterRoom
- getExitString() - Method in class Room
-
Retourne une chaine de caractère qui liste toutes les sorties de la salle.
- getGoodKey(HashMap<String, Item>) - Method in class Door
-
Détermine si la clé qui permet d'ouvrir la porte est dans la collection d'items passée en argument
- getGui() - Method in class GameEngine
- getImageName() - Method in class Room
-
Retourne le nom de l'image de la salle
- getItem(String) - Method in class ItemList
- getItems() - Method in class ItemList
- getItems() - Method in class Player
- getItems() - Method in class Room
- getItemsString() - Method in class ItemList
-
Informations sur les items
- getItemsString() - Method in class Player
- getItemString(String) - Method in class Item
- getLocked() - Method in class Door
- getLongDescription() - Method in class Room
-
Donne une longue description de la salle
- getName() - Method in class Item
- getName() - Method in class Player
- getPrevRooms() - Method in class Player
- getPrice() - Method in class Item
- getPrice(String) - Method in class ItemList
- getRoom() - Method in class Beamer
- getRooms() - Method in class GameEngine
- getSecondWord() - Method in class Command
-
Récupère le second mot de la commande
- goBack() - Method in class Player
- goRoom(Command) - Method in class GameEngine
-
Permet de se déplacer
H
- hasSecondWord() - Method in class Command
-
Permet de savoir si la commande à un second mot
I
- interpretCommand(String) - Method in class GameEngine
-
Check si la commande est valide, si oui return true sinon return false
- isCommand(String) - Method in class CommandWords
-
Vérifie si un String correspond bien à une commande
- isExit(Room) - Method in class Room
-
Renvoie true ou false en fonction de si la salle est une sortie ou non de la salle actuelle.
- isUnknown() - Method in class Command
-
Permet de savoir si la commande est inconnue
- Item - Class in <Unnamed>
- Item(String, String, double) - Constructor for class Item
- ItemList - Class in <Unnamed>
- ItemList() - Constructor for class ItemList
- items(Command) - Method in class GameEngine
-
Liste des items
L
- look(Command) - Method in class GameEngine
-
Défini l'action de la commande look : look : donne des informations sur la salle actuelle, les items présents à l'intérieur et les sorties.
- lookItems() - Method in class Player
-
Pour afficher l'inventaire
M
- main(String[]) - Static method in class Game
-
Create the game and initialise its internal map.
- MAX_TIME - Static variable in class Player
- MY_TIMER - Static variable in class Player
O
- ONE_SECOND - Static variable in class Player
- open(Command) - Method in class GameEngine
-
Ouvre une porte
- openDoor() - Method in class Door
P
- Parser - Class in <Unnamed>
- Parser() - Constructor for class Parser
-
Create a new Parser.
- Player - Class in <Unnamed>
- Player(Room, GameEngine) - Constructor for class Player
- print(String) - Method in class UserInterface
-
Print out some text into the text area.
- printHelp() - Method in class GameEngine
-
Affiche un message d'aide
- println(String) - Method in class UserInterface
-
Print out some text into the text area, followed by a line break.
- printLocationInfo() - Method in class GameEngine
-
Affiche un message pour nous informer de l'endroit où l'on se trouve.
- printWelcome() - Method in class GameEngine
-
Affiche le message de bienvenue
- processCommand() - Method in class UserInterface
-
A command has been entered.
Q
- quit(Command) - Method in class GameEngine
-
Permet de quitter le jeu
R
- removeItem(String) - Method in class ItemList
- Room - Class in <Unnamed>
- Room(String, String) - Constructor for class Room
- RoomRandomizer - Class in <Unnamed>
- RoomRandomizer(Room[]) - Constructor for class RoomRandomizer
S
- setBalance(int) - Method in class Player
- setCurrentRoom(Room) - Method in class Player
- setDescription(String) - Method in class Item
- setExit(String, Room, Door) - Method in class Room
-
Paramètre la porte et la salle de sortie.
- setExitDoor(String, Door) - Method in class Room
-
Crée une porte
- setExitRoom(String, Room) - Method in class Room
-
Crée une sortie
- setGUI(UserInterface) - Method in class GameEngine
- setPrevRooms(Stack<Room>) - Method in class Player
- setPrice(double) - Method in class Item
- showImage(String) - Method in class UserInterface
-
Show an image file in the interface.
- startTimer(GameEngine) - Method in class Player
-
Démarre le timer du jeu (compte le nombre de secondes depuis le lancement).
T
- take(Command) - Method in class GameEngine
-
Permet au joueur de prendre un item dans son iventaire.
- takeItem(String) - Method in class Player
-
Pour prendre une item dans une salle
- test(Command) - Method in class GameEngine
-
Test le jeu à partir d'un fichier texte contenant les commandes voulues.
- TIME - Static variable in class Player
- TransporterRoom - Class in <Unnamed>
- TransporterRoom(String, String, HashMap<String, Room>) - Constructor for class TransporterRoom
U
- use(Command) - Method in class GameEngine
-
permet d'utiliser des items
- UserInterface - Class in <Unnamed>
-
This class implements a simple graphical user interface with a text entry area, a text output area and an optional image.
- UserInterface(GameEngine) - Constructor for class UserInterface
-
Construct a UserInterface.
V
- VALID_COMMANDS - Static variable in class CommandWords
All Classes All Packages