Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- AbstractView - Class in fr.lnl.game.client.view
-
Abstract class implemented by every view classes
- AbstractView(Game, Player) - Constructor for class fr.lnl.game.client.view.AbstractView
- action - Variable in class fr.lnl.game.client.listener.SelectDirectionListener
- addButtonToPane(String, EventHandler<ActionEvent>, Pane, int, int) - Method in class fr.lnl.game.client.view.Window
-
called when we add a button in the interface
- addToPrincipalPanel(Object, Pane, int, int) - Method in class fr.lnl.game.client.view.Window
-
Add grid element to the principal pane
- App - Class in fr.lnl.game.client
-
Application starting point
- App() - Constructor for class fr.lnl.game.client.App
- argsList - Static variable in class fr.lnl.game.client.App
B
- BACKGROUND_IMAGE - Static variable in class fr.lnl.game.client.view.Cell
- bg - Static variable in class fr.lnl.game.client.view.Window
- BG - Static variable in class fr.lnl.game.client.view.Cell
- BOMB_IMAGE - Static variable in class fr.lnl.game.client.view.Cell
- buttonPane - Variable in class fr.lnl.game.client.view.Window
C
- Cell - Class in fr.lnl.game.client.view
-
classe qui a pour but de générer chaque case de la grid et de vérifier les entités présentes dessus (Mur, Joueur, Energie, Bombe, etc.)
- Cell(int, int) - Constructor for class fr.lnl.game.client.view.Cell
- cellSize - Static variable in class fr.lnl.game.client.view.Window
- choseAction() - Method in class fr.lnl.game.client.view.Terminal
-
Used when current player is an instance of
HumanPlayer
and demand to it an action to do - choseDirectionAction(ReunionSameAction) - Method in class fr.lnl.game.client.view.Window
-
Choose a direction between all possible from the previously selected action type
- choseReunionSameAction(List<ReunionSameAction>) - Method in class fr.lnl.game.client.view.Terminal
-
Used when current player is an instance of
HumanPlayer
and demand to it a type of action to do - choseReunionSameAction(List<ReunionSameAction>) - Method in class fr.lnl.game.client.view.Window
-
Used when
Game.getCurrentPlayer()
is an instance ofHumanPlayer
. - client - module client
-
Client module, include every view and controller classes from MVC model
- ClientEventHandler - Record Class in fr.lnl.game.client.listener
-
implementation of a listener from JavaFX
EventHandler
- ClientEventHandler(ModelListener) - Constructor for record class fr.lnl.game.client.listener.ClientEventHandler
-
Creates an instance of a
ClientEventHandler
record class. - ClientPlayer - Record Class in fr.lnl.game.client
-
Store a view per player
- ClientPlayer(Player, View) - Constructor for record class fr.lnl.game.client.ClientPlayer
-
Creates an instance of a
ClientPlayer
record class. - createContent() - Method in class fr.lnl.game.client.view.Window
-
Create content of the stage
- createNewPlayer(Class<? extends AbstractPlayer>, ClassPlayer, int) - Static method in class fr.lnl.game.client.App
-
create a new instance of the player
- createViewLambda(Player) - Method in interface fr.lnl.game.client.ViewLambda
-
A lambda create an anonymous class which implements this interface
D
- dark - Static variable in class fr.lnl.game.client.view.Window
- displayWinner(Player) - Method in class fr.lnl.game.client.view.Terminal
-
Used to display the winner of the game
- displayWinner(Player) - Method in interface fr.lnl.game.client.view.View
-
Used to display the name of the winner
- displayWinner(Player) - Method in class fr.lnl.game.client.view.ViewManager
-
This method is call when the game is finish
- displayWinner(Player) - Method in class fr.lnl.game.client.view.Window
-
Used to display the name of the winner
- displayWinnerEvent - Variable in class fr.lnl.game.client.listener.NextPlayerButtonListener
- DisplayWinnerEvent - Class in fr.lnl.game.client.listener
-
Used to display the winner of the game
- DisplayWinnerEvent() - Constructor for class fr.lnl.game.client.listener.DisplayWinnerEvent
E
- ENERGY_BALL_IMAGE - Static variable in class fr.lnl.game.client.view.Cell
- equals(Object) - Method in record class fr.lnl.game.client.ClientPlayer
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class fr.lnl.game.client.listener.ClientEventHandler
-
Indicates whether some other object is "equal to" this one.
F
- fr.lnl.game.client - package fr.lnl.game.client
-
Client package
- fr.lnl.game.client.listener - package fr.lnl.game.client.listener
-
Package that contains every view listeners
- fr.lnl.game.client.view - package fr.lnl.game.client.view
-
View package, contains all classes about user view
G
- game - Static variable in class fr.lnl.game.client.App
- game - Variable in class fr.lnl.game.client.listener.NextPlayerButtonListener
- game - Variable in class fr.lnl.game.client.listener.SelectActionButton
- game - Variable in class fr.lnl.game.client.listener.SelectDirectionListener
- game - Variable in class fr.lnl.game.client.view.AbstractView
- game - Variable in class fr.lnl.game.client.view.ViewManager
- getGame() - Static method in class fr.lnl.game.client.App
- getNextPlayerButtonListener() - Method in class fr.lnl.game.client.view.Window
- getPlayerImage() - Static method in class fr.lnl.game.client.view.Cell
- getServerPlayer() - Method in record class fr.lnl.game.client.ClientPlayer
- getView() - Method in record class fr.lnl.game.client.ClientPlayer
- getViewManager() - Static method in class fr.lnl.game.client.App
H
- handle(ActionEvent) - Method in record class fr.lnl.game.client.listener.ClientEventHandler
-
This method is call by JavaFX when we click to the button
- hashCode() - Method in record class fr.lnl.game.client.ClientPlayer
-
Returns a hash code value for this object.
- hashCode() - Method in record class fr.lnl.game.client.listener.ClientEventHandler
-
Returns a hash code value for this object.
- height - Static variable in class fr.lnl.game.client.view.Window
L
- launchTerminal() - Static method in class fr.lnl.game.client.App
- listener - Variable in record class fr.lnl.game.client.listener.ClientEventHandler
-
The field for the
listener
record component. - listener() - Method in record class fr.lnl.game.client.listener.ClientEventHandler
-
Returns the value of the
listener
record component.
M
- main(String[]) - Static method in class fr.lnl.game.client.App
- MINE_IMAGE - Static variable in class fr.lnl.game.client.view.Cell
N
- nextPlayerButtonListener - Variable in class fr.lnl.game.client.view.Window
- NextPlayerButtonListener - Class in fr.lnl.game.client.listener
-
This method is call when the current player have selected an action to play (or if it's a computer player, will select it), then we call
Game.play()
and we update the view - NextPlayerButtonListener(Game) - Constructor for class fr.lnl.game.client.listener.NextPlayerButtonListener
P
- parsePlayers() - Static method in class fr.lnl.game.client.App
-
Parse players arguments and create instances for each player
- parseView() - Static method in class fr.lnl.game.client.App
-
Parse the first argument given by user to know the view to use (Terminal or Window)
- player - Variable in class fr.lnl.game.client.view.AbstractView
- PLAYER_IMAGE - Static variable in class fr.lnl.game.client.view.Cell
- PLAYER_SHIELD_IMAGE - Static variable in class fr.lnl.game.client.view.Cell
- PLAYER_SHOT_IMAGE - Static variable in class fr.lnl.game.client.view.Cell
- players - Variable in class fr.lnl.game.client.view.ViewManager
- putMoveTextPane(Pane) - Method in class fr.lnl.game.client.view.Window
-
build left down pane and move it to its position
- putStatePlayerPane(Pane) - Method in class fr.lnl.game.client.view.Window
-
Create the right pane
R
- reunionSameAction - Variable in class fr.lnl.game.client.listener.SelectActionButton
- run() - Method in class fr.lnl.game.client.view.ViewManager
-
This method is call after initialized view manager to display a first screen
S
- scanner - Static variable in class fr.lnl.game.client.view.Terminal
-
Standard input
- SelectActionButton - Class in fr.lnl.game.client.listener
-
Used when the human player select type of action it want to play
- SelectActionButton(Game, Window, ReunionSameAction) - Constructor for class fr.lnl.game.client.listener.SelectActionButton
- SelectDirectionListener - Class in fr.lnl.game.client.listener
-
Call when the player selected the direction where it wants to play it
- SelectDirectionListener(Game, Window, Action) - Constructor for class fr.lnl.game.client.listener.SelectDirectionListener
- selectedReunionAction - Variable in class fr.lnl.game.client.view.Window
- serverPlayer - Variable in record class fr.lnl.game.client.ClientPlayer
-
The field for the
serverPlayer
record component. - serverPlayer() - Method in record class fr.lnl.game.client.ClientPlayer
-
Returns the value of the
serverPlayer
record component. - setImageObject(Object, Game) - Static method in class fr.lnl.game.client.view.Cell
- setSelectedReunionAction(ReunionSameAction) - Method in class fr.lnl.game.client.view.Window
- show() - Method in class fr.lnl.game.client.view.Terminal
-
Used to update view
- show() - Method in interface fr.lnl.game.client.view.View
-
used to update screen
- show() - Method in class fr.lnl.game.client.view.Window
-
used to update screen
- showMoveText() - Method in class fr.lnl.game.client.view.Window
-
Build the left down pane (contains current player information)
- showStatePlayer(String, int) - Method in class fr.lnl.game.client.view.Window
-
Build left down pane (list all players information)
- stage - Variable in class fr.lnl.game.client.view.Window
- start(Stage) - Method in class fr.lnl.game.client.App
- startGame() - Static method in class fr.lnl.game.client.App
-
Parse players arguments and create a new instance of Game
T
- Terminal - Class in fr.lnl.game.client.view
-
View terminal, use standard input and output
- Terminal(Game, Player) - Constructor for class fr.lnl.game.client.view.Terminal
- terminalView() - Method in class fr.lnl.game.client.view.ViewManager
-
This method is call when the view is a terminal
- toString() - Method in record class fr.lnl.game.client.ClientPlayer
-
Returns a string representation of this record class.
- toString() - Method in record class fr.lnl.game.client.listener.ClientEventHandler
-
Returns a string representation of this record class.
U
- updateModel(Object) - Method in class fr.lnl.game.client.listener.DisplayWinnerEvent
-
This method is call when the game is over
- updateModel(Object) - Method in class fr.lnl.game.client.listener.NextPlayerButtonListener
-
Call when clicking on "SUIVANT" button if current player is a computer player or after the human player selected action it want to play
- updateModel(Object) - Method in class fr.lnl.game.client.listener.SelectActionButton
-
This method is call when the player select the type of action it want to play
- updateModel(Object) - Method in class fr.lnl.game.client.listener.SelectDirectionListener
-
This method is call when the player click on the button to select the direction of the previously selected action
- updateView() - Method in class fr.lnl.game.client.view.ViewManager
-
Call when we need to change or update view
V
- view - Variable in record class fr.lnl.game.client.ClientPlayer
-
The field for the
view
record component. - view() - Method in record class fr.lnl.game.client.ClientPlayer
-
Returns the value of the
view
record component. - View - Interface in fr.lnl.game.client.view
-
View interface, implemented by Terminal and Window.
- ViewLambda - Interface in fr.lnl.game.client
- viewManager - Static variable in class fr.lnl.game.client.App
- ViewManager - Class in fr.lnl.game.client.view
-
View manager, main access to every views
- ViewManager(Game, Class<? extends View>, ViewLambda) - Constructor for class fr.lnl.game.client.view.ViewManager
- viewType - Variable in class fr.lnl.game.client.view.ViewManager
W
- WALL_IMAGE - Static variable in class fr.lnl.game.client.view.Cell
- width - Static variable in class fr.lnl.game.client.view.Window
- window - Variable in class fr.lnl.game.client.listener.SelectActionButton
- window - Variable in class fr.lnl.game.client.listener.SelectDirectionListener
- Window - Class in fr.lnl.game.client.view
-
Window view, use mouse and keyboard to control interface
- Window(Stage, Game, Player) - Constructor for class fr.lnl.game.client.view.Window
All Classes and Interfaces|All Packages|Constant Field Values