Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- a - Variable in class fr.lnl.game.server.utils.Pair
- AbstractAction - Class in fr.lnl.game.server.games.action
- AbstractAction(Game, Player) - Constructor for class fr.lnl.game.server.games.action.AbstractAction
- AbstractBox - Class in fr.lnl.game.server.games.grid.elements
-
AbstractBox is instantiable (not an abstract class), but when it's the case, instance doesn't represent anything, it's only to see if there is a lock on this position or not
- AbstractBox() - Constructor for class fr.lnl.game.server.games.grid.elements.AbstractBox
- AbstractGridFactoryBuilder - Class in fr.lnl.game.server.games.grid.build
- AbstractGridFactoryBuilder() - Constructor for class fr.lnl.game.server.games.grid.build.AbstractGridFactoryBuilder
- AbstractModelListening - Class in fr.lnl.game.server.listener
- AbstractModelListening() - Constructor for class fr.lnl.game.server.listener.AbstractModelListening
- AbstractPlayer - Class in fr.lnl.game.server.games.player
- AbstractPlayer(Integer, Point, boolean, ClassPlayer) - Constructor for class fr.lnl.game.server.games.player.AbstractPlayer
- Action - Interface in fr.lnl.game.server.games.action
- actionName - Variable in class fr.lnl.game.server.games.action.ReunionSameAction
- actions - Variable in class fr.lnl.game.server.games.action.ReunionSameAction
- actions - Variable in class fr.lnl.game.server.games.player.AbstractPlayer
- addAction(Action) - Method in class fr.lnl.game.server.games.action.ReunionSameAction
- addListener(ModelListener) - Method in class fr.lnl.game.server.listener.AbstractModelListening
B
- b - Variable in class fr.lnl.game.server.utils.Pair
- board - Variable in class fr.lnl.game.server.games.grid.Grid
- boardPositionIsValid(int, int) - Method in class fr.lnl.game.server.games.grid.Grid
-
Check if given position is in grid area
- boardPositionIsValid(int, int, int, int) - Method in class fr.lnl.game.server.games.grid.Grid
- boardPositionIsValid(Point) - Method in class fr.lnl.game.server.games.grid.Grid
- Bomb - Class in fr.lnl.game.server.games.grid.elements
-
Bomb are elements which explode when someone walks on it or after a countdown, the explosion area is on multiple cases
- Bomb(Point, Game) - Constructor for class fr.lnl.game.server.games.grid.elements.Bomb
- bombCost - Variable in enum class fr.lnl.game.server.games.player.ClassPlayer
- Box - Interface in fr.lnl.game.server.games.grid.elements
- build() - Method in class fr.lnl.game.server.games.grid.build.AbstractGridFactoryBuilder
-
Call this method after you call {
GridFactoryBuilder.energyProbability(float)
},GridFactoryBuilder.wallProbability(float)
,GridFactoryBuilder.gridDimensions(int, int)
andGridFactoryBuilder.playersList(List)
. - build() - Method in interface fr.lnl.game.server.games.grid.build.GridFactoryBuilder
-
Call this method after you call {
GridFactoryBuilder.energyProbability(float)
},GridFactoryBuilder.wallProbability(float)
,GridFactoryBuilder.gridDimensions(int, int)
andGridFactoryBuilder.playersList(List)
, It'll instantiate a newGrid
and initialize his components like border walls, intern walls, and energy using parameters given previously - bullet - Variable in class fr.lnl.game.server.games.weapon.Firearm
C
- choseAction(Game) - Method in class fr.lnl.game.server.games.player.ComputerPlayer
-
Call when an AI need to choose an action to execute
- choseDeployShield(Game) - Method in class fr.lnl.game.server.games.player.StrategyComputerPlayer
- choseExplosive(List<ReunionSameAction>) - Method in class fr.lnl.game.server.games.player.StrategyComputerPlayer
- choseMove(List<ReunionSameAction>, Game) - Method in class fr.lnl.game.server.games.player.StrategyComputerPlayer
- choseShot(List<ReunionSameAction>, Game) - Method in class fr.lnl.game.server.games.player.StrategyComputerPlayer
- classPlayer - Variable in class fr.lnl.game.server.games.player.AbstractPlayer
- ClassPlayer - Enum Class in fr.lnl.game.server.games.player
-
ClassPlayer contains all data about the cost of an action or the cost of a damage
- ClassPlayer(int, int, int, int, int, int, int, int, int, int, Weapon) - Constructor for enum class fr.lnl.game.server.games.player.ClassPlayer
- column - Variable in class fr.lnl.game.server.games.grid.Grid
- columns - Variable in class fr.lnl.game.server.games.grid.build.AbstractGridFactoryBuilder
- ComputerPlayer - Class in fr.lnl.game.server.games.player
-
Super class of all Computer players
- ComputerPlayer(Integer, Point, ClassPlayer) - Constructor for class fr.lnl.game.server.games.player.ComputerPlayer
- CountdownBox - Interface in fr.lnl.game.server.games.grid.elements
-
A box implemented by CountdownBox is a box which do an action a certain time after being placed
- countdownGridElementsUpdate() - Method in class fr.lnl.game.server.games.Game
-
play grid's elements that use a timer like
Bomb
at each game tick - counter - Variable in class fr.lnl.game.server.games.grid.elements.Bomb
-
Timer before explosion
- CrashException - Exception in fr.lnl.game.server.utils
-
Represent an unrecoverable error in the program, force program to stop
- CrashException(String, Throwable) - Constructor for exception fr.lnl.game.server.utils.CrashException
- create() - Static method in class fr.lnl.game.server.games.grid.build.LockGridFactoryBuilder
- currentPlayer - Variable in class fr.lnl.game.server.games.Game
D
- decrementEnergy(int) - Method in class fr.lnl.game.server.games.player.AbstractPlayer
- decrementEnergy(int) - Method in interface fr.lnl.game.server.games.player.Player
-
Call by the implementing classes
Action
to withdraw a certain number of energy from a player - DEFAULT - Enum constant in enum class fr.lnl.game.server.games.player.ClassPlayer
- deltaX - Variable in enum class fr.lnl.game.server.games.action.Direction4Axis
- deltaX - Variable in enum class fr.lnl.game.server.games.action.Direction8Axis
- deltaY - Variable in enum class fr.lnl.game.server.games.action.Direction4Axis
- deltaY - Variable in enum class fr.lnl.game.server.games.action.Direction8Axis
- DeployShield - Class in fr.lnl.game.server.games.action
-
Used when a player want to protect himself from taking damage (shield state is reset to false at next player turn)
- DeployShield(Player) - Constructor for class fr.lnl.game.server.games.action.DeployShield
- direction - Variable in class fr.lnl.game.server.games.action.DropObject
- direction - Variable in class fr.lnl.game.server.games.action.Move
- direction - Variable in class fr.lnl.game.server.games.action.Shot
- Direction - Interface in fr.lnl.game.server.games.action
- Direction4Axis - Enum Class in fr.lnl.game.server.games.action
-
Enum used to chose where to move, shot, etc.
- Direction4Axis(int, int, boolean) - Constructor for enum class fr.lnl.game.server.games.action.Direction4Axis
- Direction8Axis - Enum Class in fr.lnl.game.server.games.action
- Direction8Axis(int, int) - Constructor for enum class fr.lnl.game.server.games.action.Direction8Axis
- doAction() - Method in interface fr.lnl.game.server.games.action.Action
-
Call by
Game
when player do this action - doAction() - Method in class fr.lnl.game.server.games.action.DeployShield
-
Deploy player shield and decrement its energy
- doAction() - Method in class fr.lnl.game.server.games.action.DropBomb
-
Drop a bomb in player's selected direction and decrement its energy
- doAction() - Method in class fr.lnl.game.server.games.action.DropMine
-
Drop a mine in player's selected direction and decrement its energy
- doAction() - Method in class fr.lnl.game.server.games.action.Move
-
Move player to its new position and decrement its point
- doAction() - Method in class fr.lnl.game.server.games.action.Nothing
-
doAction in this context don't execute any operation
- doAction() - Method in class fr.lnl.game.server.games.action.Shot
-
We decrement player's energy and shot on every of its opponents on the chosen direction by decrementing its energy too
- DOWN - Enum constant in enum class fr.lnl.game.server.games.action.Direction4Axis
- DOWN - Enum constant in enum class fr.lnl.game.server.games.action.Direction8Axis
- DOWN_LEFT - Enum constant in enum class fr.lnl.game.server.games.action.Direction8Axis
- DOWN_RIGHT - Enum constant in enum class fr.lnl.game.server.games.action.Direction8Axis
- DPS - Enum constant in enum class fr.lnl.game.server.games.player.ClassPlayer
- DropBomb - Class in fr.lnl.game.server.games.action
-
Used when player want to drop a
Bomb
, bomb explode when someone walks on it and after 3 turns - DropBomb(Game, Player, Direction8Axis) - Constructor for class fr.lnl.game.server.games.action.DropBomb
- DropMine - Class in fr.lnl.game.server.games.action
-
Used when player want to drop a
Mine
, Mine only explode when someone walks on it - DropMine(Game, Player, Direction8Axis) - Constructor for class fr.lnl.game.server.games.action.DropMine
- DropObject - Class in fr.lnl.game.server.games.action
- DropObject(Game, Player, Direction8Axis) - Constructor for class fr.lnl.game.server.games.action.DropObject
E
- energy - Variable in class fr.lnl.game.server.games.player.AbstractPlayer
- energy - Variable in enum class fr.lnl.game.server.games.player.ClassPlayer
- EnergyBall - Class in fr.lnl.game.server.games.grid.elements
-
An EnergyBall is a box which give back a bit of player energy after it walks on the ball
- EnergyBall() - Constructor for class fr.lnl.game.server.games.grid.elements.EnergyBall
- energyProbability - Variable in class fr.lnl.game.server.games.grid.build.AbstractGridFactoryBuilder
- energyProbability(float) - Method in class fr.lnl.game.server.games.grid.build.AbstractGridFactoryBuilder
- energyProbability(float) - Method in interface fr.lnl.game.server.games.grid.build.GridFactoryBuilder
-
Set energy probability
- Entry_Error_Message - Static variable in class fr.lnl.game.server.utils.ErrorMessage
-
Error given to end-user when it give us a non integer or float value
- equals(Object) - Method in class fr.lnl.game.server.games.grid.elements.EnergyBall
-
Used by tests
- equals(Object) - Method in class fr.lnl.game.server.games.grid.elements.Wall
-
Used by tests
- equals(Object) - Method in class fr.lnl.game.server.utils.Pair
- ErrorMessage - Class in fr.lnl.game.server.utils
-
Contain everything related to error messages, theirs errors are the fault of the end-user (like we demand an integer and user give us a floating point number Theirs error doesn't cause the program to stop, it'll demand a correct value
- ErrorMessage() - Constructor for class fr.lnl.game.server.utils.ErrorMessage
- explode(Grid) - Method in class fr.lnl.game.server.games.grid.elements.Bomb
- explode(Grid) - Method in class fr.lnl.game.server.games.grid.elements.Explosive
-
Apply damage to players and delete this object
- explode(Grid) - Method in class fr.lnl.game.server.games.grid.elements.Mine
- EXPLOSION_SIZE - Static variable in class fr.lnl.game.server.games.grid.elements.Bomb
-
Explosion size, size is circle, not square
- Explosive - Class in fr.lnl.game.server.games.grid.elements
- Explosive(Player, Point) - Constructor for class fr.lnl.game.server.games.grid.elements.Explosive
- extractReunionSameAction(List<ReunionSameAction>, Class) - Method in class fr.lnl.game.server.games.player.StrategyComputerPlayer
F
- Firearm - Class in fr.lnl.game.server.games.weapon
- Firearm() - Constructor for class fr.lnl.game.server.games.weapon.Firearm
- fireChange() - Method in class fr.lnl.game.server.listener.AbstractModelListening
- fr.lnl.game.server - package fr.lnl.game.server
-
Server package
- fr.lnl.game.server.games - package fr.lnl.game.server.games
-
Game package, contains all classes and sub-packages mainly related game works
- fr.lnl.game.server.games.action - package fr.lnl.game.server.games.action
-
Package storing all actions a player can do
- fr.lnl.game.server.games.grid - package fr.lnl.game.server.games.grid
-
Package containing all about Grid components
- fr.lnl.game.server.games.grid.build - package fr.lnl.game.server.games.grid.build
-
Package containing all about Grid construction
- fr.lnl.game.server.games.grid.elements - package fr.lnl.game.server.games.grid.elements
-
Package containing all the elements that can be arranged in a grid
- fr.lnl.game.server.games.player - package fr.lnl.game.server.games.player
-
Package storing all players classes and as well AI behavior
- fr.lnl.game.server.games.weapon - package fr.lnl.game.server.games.weapon
-
Package containing all bout player's weapons
- fr.lnl.game.server.listener - package fr.lnl.game.server.listener
-
Package containing model of listener to implement Used by listeners in client module
- fr.lnl.game.server.utils - package fr.lnl.game.server.utils
-
Package containing all utility classes
G
- gainEnergy - Variable in enum class fr.lnl.game.server.games.player.ClassPlayer
- game - Variable in class fr.lnl.game.server.games.action.AbstractAction
- game - Variable in class fr.lnl.game.server.games.grid.elements.Bomb
- Game - Class in fr.lnl.game.server.games
- Game(GridFactoryBuilder, List<Player>) - Constructor for class fr.lnl.game.server.games.Game
- generateAndGetPlayerActions(Player) - Method in class fr.lnl.game.server.games.Game
-
Used to list all actions a player can execute at current time
- generateAvailableActions() - Method in class fr.lnl.game.server.games.player.AbstractPlayer
- generateAvailableActions() - Method in interface fr.lnl.game.server.games.player.Player
- getA() - Method in class fr.lnl.game.server.utils.Pair
- getAction(int) - Method in class fr.lnl.game.server.games.action.ReunionSameAction
- getActionName() - Method in class fr.lnl.game.server.games.action.ReunionSameAction
- getActions() - Method in class fr.lnl.game.server.games.action.ReunionSameAction
- getActions() - Method in class fr.lnl.game.server.games.player.AbstractPlayer
- getActions() - Method in interface fr.lnl.game.server.games.player.Player
- getAllCountdownElements() - Method in class fr.lnl.game.server.games.grid.Grid
- getB() - Method in class fr.lnl.game.server.utils.Pair
- getBoard() - Method in class fr.lnl.game.server.games.grid.Grid
- getBombCost() - Method in enum class fr.lnl.game.server.games.player.ClassPlayer
- getBullet() - Method in class fr.lnl.game.server.games.weapon.Firearm
- getBullet() - Method in interface fr.lnl.game.server.games.weapon.Weapon
- getClassPlayer() - Method in class fr.lnl.game.server.games.player.AbstractPlayer
- getClassPlayer() - Method in interface fr.lnl.game.server.games.player.Player
- getColumn() - Method in class fr.lnl.game.server.games.grid.Grid
- getCurrentPlayer() - Method in class fr.lnl.game.server.games.Game
- getDeltaX() - Method in interface fr.lnl.game.server.games.action.Direction
- getDeltaX() - Method in enum class fr.lnl.game.server.games.action.Direction4Axis
- getDeltaX() - Method in enum class fr.lnl.game.server.games.action.Direction8Axis
- getDeltaY() - Method in interface fr.lnl.game.server.games.action.Direction
- getDeltaY() - Method in enum class fr.lnl.game.server.games.action.Direction4Axis
- getDeltaY() - Method in enum class fr.lnl.game.server.games.action.Direction8Axis
- getDirection() - Method in class fr.lnl.game.server.games.action.DropObject
- getDirection() - Method in class fr.lnl.game.server.games.action.Move
- getEnergy() - Method in class fr.lnl.game.server.games.player.AbstractPlayer
- getEnergy() - Method in enum class fr.lnl.game.server.games.player.ClassPlayer
- getEnergy() - Method in interface fr.lnl.game.server.games.player.Player
- getGainEnergy() - Method in enum class fr.lnl.game.server.games.player.ClassPlayer
- getGrid() - Method in class fr.lnl.game.server.games.Game
- getGrid() - Method in class fr.lnl.game.server.games.grid.build.AbstractGridFactoryBuilder
- getGridBox(Point) - Method in class fr.lnl.game.server.games.grid.Grid
- getGridPlayer(Point) - Method in class fr.lnl.game.server.games.grid.Grid
- getHorizontalDistance() - Method in class fr.lnl.game.server.games.weapon.Firearm
- getHorizontalDistance() - Method in interface fr.lnl.game.server.games.weapon.Weapon
- getId() - Method in class fr.lnl.game.server.games.player.AbstractPlayer
- getId() - Method in interface fr.lnl.game.server.games.player.Player
- getIllusionNumberWallNeighbour(Point) - Method in class fr.lnl.game.server.games.grid.build.LockGridFactoryBuilder
-
A locked place is used to try to avoid player to be blocked when playing, A locked place can't have a wall on it
- getMineCost() - Method in enum class fr.lnl.game.server.games.player.ClassPlayer
- getMoveCost() - Method in enum class fr.lnl.game.server.games.player.ClassPlayer
- getNbrTurn() - Method in class fr.lnl.game.server.games.Game
- getNumberNeutralBox() - Method in class fr.lnl.game.server.games.grid.Grid
- getPenaltyBomb() - Method in enum class fr.lnl.game.server.games.player.ClassPlayer
- getPenaltyMine() - Method in enum class fr.lnl.game.server.games.player.ClassPlayer
- getPenaltyShoot() - Method in enum class fr.lnl.game.server.games.player.ClassPlayer
- getPlayer() - Method in class fr.lnl.game.server.games.grid.elements.Explosive
- getPlayers() - Method in class fr.lnl.game.server.games.Game
- getPlayers() - Method in class fr.lnl.game.server.games.grid.Grid
- getPlayersAlive() - Method in class fr.lnl.game.server.games.Game
- getPlayersNotAlive() - Method in class fr.lnl.game.server.games.Game
-
Opposite of
Game.getPlayersAlive()
- getPoint() - Method in interface fr.lnl.game.server.games.action.Action
- getPoint() - Method in class fr.lnl.game.server.games.action.DeployShield
- getPoint() - Method in class fr.lnl.game.server.games.action.DropObject
- getPoint() - Method in class fr.lnl.game.server.games.action.Move
- getPoint() - Method in class fr.lnl.game.server.games.action.Nothing
- getPoint() - Method in class fr.lnl.game.server.games.action.Shot
- getPosition() - Method in class fr.lnl.game.server.games.player.AbstractPlayer
- getPosition() - Method in interface fr.lnl.game.server.games.player.Player
- getPreviousPlayer() - Method in class fr.lnl.game.server.games.Game
- getRow() - Method in class fr.lnl.game.server.games.grid.Grid
- getSelectedAction() - Method in class fr.lnl.game.server.games.Game
- getShieldCost() - Method in enum class fr.lnl.game.server.games.player.ClassPlayer
- getShootCost() - Method in enum class fr.lnl.game.server.games.player.ClassPlayer
- getValidPoint() - Method in interface fr.lnl.game.server.games.action.Action
- getValidPoint() - Method in class fr.lnl.game.server.games.action.DeployShield
- getValidPoint() - Method in class fr.lnl.game.server.games.action.DropObject
- getValidPoint() - Method in class fr.lnl.game.server.games.action.Move
- getValidPoint() - Method in class fr.lnl.game.server.games.action.Nothing
- getValidPoint() - Method in class fr.lnl.game.server.games.action.Shot
- getVerticalDistance() - Method in class fr.lnl.game.server.games.weapon.Firearm
- getVerticalDistance() - Method in interface fr.lnl.game.server.games.weapon.Weapon
- getWeapon() - Method in class fr.lnl.game.server.games.player.AbstractPlayer
- getWeapon() - Method in enum class fr.lnl.game.server.games.player.ClassPlayer
- getWeapon() - Method in interface fr.lnl.game.server.games.player.Player
- getWinner() - Method in class fr.lnl.game.server.games.Game
- grid - Variable in class fr.lnl.game.server.games.Game
- grid - Variable in class fr.lnl.game.server.games.grid.build.AbstractGridFactoryBuilder
- Grid - Class in fr.lnl.game.server.games.grid
-
Class managing the board
- Grid(int, int, List<Player>) - Constructor for class fr.lnl.game.server.games.grid.Grid
- gridDimensions(int, int) - Method in class fr.lnl.game.server.games.grid.build.AbstractGridFactoryBuilder
- gridDimensions(int, int) - Method in interface fr.lnl.game.server.games.grid.build.GridFactoryBuilder
-
set grid dimensions.
- GridFactoryBuilder - Interface in fr.lnl.game.server.games.grid.build
-
Factory pattern
- gridPlayersUpdate() - Method in class fr.lnl.game.server.games.Game
-
Remove dead players from the grid
H
- hashCode() - Method in class fr.lnl.game.server.utils.Pair
-
Absolut useful when using HashMap or HashSet (or everything using hashCode to compare Objects
- horizontalDistance - Variable in class fr.lnl.game.server.games.weapon.Firearm
- HumanPlayer - Class in fr.lnl.game.server.games.player
-
Instance of Human Player.
A human player choose an action to execute by using mouse or keyboard.
Human Player don't implement choseAction cause this method is executed on client part - HumanPlayer(Integer, Point, ClassPlayer) - Constructor for class fr.lnl.game.server.games.player.HumanPlayer
I
- id - Variable in class fr.lnl.game.server.games.player.AbstractPlayer
- incrementEnergy(int) - Method in class fr.lnl.game.server.games.player.AbstractPlayer
- incrementEnergy(int) - Method in interface fr.lnl.game.server.games.player.Player
-
Call by the implementing classes
Action
to add a certain number of energy from a player - initGame(GridFactoryBuilder) - Method in class fr.lnl.game.server.games.Game
-
Initialize a game by placing players on the grid and by generating current player available actions
- initGrid() - Method in class fr.lnl.game.server.games.grid.build.AbstractGridFactoryBuilder
-
abstract method used to initialize grid
We let implementation of this class the way to initialize the grid - initGrid() - Method in class fr.lnl.game.server.games.grid.build.LockGridFactoryBuilder
-
Method used to initialize grid
We place walls on every border, and we initialize board value as null where there is no need o border walls - initPlaceEnergyBall() - Method in class fr.lnl.game.server.games.grid.build.AbstractGridFactoryBuilder
-
abstract method used to place energy ball
We let implementation of this class the way to initialize the grid
Implementation need to useAbstractGridFactoryBuilder.energyProbability
to place energy balls - initPlaceEnergyBall() - Method in class fr.lnl.game.server.games.grid.build.LockGridFactoryBuilder
-
Method used to initialize energy balls, we place energy balls using a random value and a probability and where there is no walls
- initPlaceInternWall() - Method in class fr.lnl.game.server.games.grid.build.AbstractGridFactoryBuilder
-
abstract method used to place intern walls(namely not border walls)
We let implementation of this class the way to initialize the grid.
Implementation need to useAbstractGridFactoryBuilder.wallProbability
to place energy balls - initPlaceInternWall() - Method in class fr.lnl.game.server.games.grid.build.LockGridFactoryBuilder
-
Method used to place intern walls (opposite of border walls), we place walls using a random value and a probability and where there is no walls or where the position haven't a lock
- initPlacePlayers() - Method in interface fr.lnl.game.server.games.grid.build.GridFactoryBuilder
-
call when initializing the game, it'll place player depending on the strategy used by its implementation, need to be call after build, call an NullPointerException otherwise
- initPlacePlayers() - Method in class fr.lnl.game.server.games.grid.build.LockGridFactoryBuilder
-
Simply place player randomly where it's possible
- interact(Grid, Player, Point) - Method in class fr.lnl.game.server.games.grid.elements.EnergyBall
-
Increment energy of player who walks on this element
- interact(Grid, Player, Point) - Method in class fr.lnl.game.server.games.grid.elements.Explosive
-
Decrement energy of the player who walks on this element
- interact(Grid, Player, Point) - Method in interface fr.lnl.game.server.games.grid.elements.InteractiveBox
-
Call when a player walk on it
- InteractiveBox - Interface in fr.lnl.game.server.games.grid.elements
-
A box implemented by InteractiveBox is a box which do an action when someone walks on it
- isAlive() - Method in class fr.lnl.game.server.games.player.AbstractPlayer
- isAlive() - Method in interface fr.lnl.game.server.games.player.Player
- isFloat(String) - Static method in class fr.lnl.game.server.utils.Maths
- isInReunion(List<ReunionSameAction>, Class) - Method in class fr.lnl.game.server.games.player.StrategyComputerPlayer
- isInteger(String) - Static method in class fr.lnl.game.server.utils.Maths
- isLock() - Method in class fr.lnl.game.server.games.grid.elements.AbstractBox
- isLock() - Method in interface fr.lnl.game.server.games.grid.elements.Box
- isNeutralBox(Box) - Method in class fr.lnl.game.server.games.grid.Grid
- isOver() - Method in class fr.lnl.game.server.games.Game
-
A game is over if the number of alive players is inferior to 2
- isPossible() - Method in interface fr.lnl.game.server.games.action.Action
- isPossible() - Method in class fr.lnl.game.server.games.action.DeployShield
-
This action is always possible
- isPossible() - Method in class fr.lnl.game.server.games.action.DropObject
- isPossible() - Method in class fr.lnl.game.server.games.action.Move
- isPossible() - Method in class fr.lnl.game.server.games.action.Nothing
-
This action is always possible
- isPossible() - Method in class fr.lnl.game.server.games.action.Shot
- isShieldDeploy() - Method in class fr.lnl.game.server.games.player.AbstractPlayer
- isShieldDeploy() - Method in interface fr.lnl.game.server.games.player.Player
- isVertical - Variable in enum class fr.lnl.game.server.games.action.Direction4Axis
- isVertical() - Method in enum class fr.lnl.game.server.games.action.Direction4Axis
-
Used by
Shot
to know if the direction is in vertical direction cause shot action can have a different distance depending on the direction
L
- LEFT - Enum constant in enum class fr.lnl.game.server.games.action.Direction4Axis
- LEFT - Enum constant in enum class fr.lnl.game.server.games.action.Direction8Axis
- listeners - Variable in class fr.lnl.game.server.listener.AbstractModelListening
- lock - Variable in class fr.lnl.game.server.games.grid.elements.AbstractBox
- LockGridFactoryBuilder - Class in fr.lnl.game.server.games.grid.build
- LockGridFactoryBuilder() - Constructor for class fr.lnl.game.server.games.grid.build.LockGridFactoryBuilder
-
this method is protected to avoid new instance outside of
GridFactoryBuilder
context
M
- main(String[]) - Static method in class fr.lnl.game.server.ServerMain
- Maths - Class in fr.lnl.game.server.utils
- Maths() - Constructor for class fr.lnl.game.server.utils.Maths
- Mine - Class in fr.lnl.game.server.games.grid.elements
-
A mine is an element which explose when someone walks on it, the explosion area is on 1 case only
- Mine(Player, Point) - Constructor for class fr.lnl.game.server.games.grid.elements.Mine
- mineCost - Variable in enum class fr.lnl.game.server.games.player.ClassPlayer
- ModelListener - Interface in fr.lnl.game.server.listener
-
Model implemented by
AbstractModelListening
- Move - Class in fr.lnl.game.server.games.action
-
Used when the player want to move in a direction, it can move in a direction when there is another player or a wall
- Move(Game, Player, Direction4Axis) - Constructor for class fr.lnl.game.server.games.action.Move
- moveCost - Variable in enum class fr.lnl.game.server.games.player.ClassPlayer
N
- nbrTurn - Variable in class fr.lnl.game.server.games.Game
- nextCurrentPlayer() - Method in class fr.lnl.game.server.games.Game
-
Change player to the next available in the list.
We set its shield deploy state to false. - NoMoreBulletInWeaponException - Exception in fr.lnl.game.server.games.action
-
This exception is throw when player has no remaining bullet
- NoMoreBulletInWeaponException() - Constructor for exception fr.lnl.game.server.games.action.NoMoreBulletInWeaponException
- Nothing - Class in fr.lnl.game.server.games.action
-
This action is used when player doesn't want to move and/or loose energy
- Nothing() - Constructor for class fr.lnl.game.server.games.action.Nothing
- NotValidDirectionException - Exception in fr.lnl.game.server.games.action
-
throw when action instantiated and the chosen direction in constructor isn't valid
- NotValidDirectionException(String) - Constructor for exception fr.lnl.game.server.games.action.NotValidDirectionException
P
- Pair<A,
B> - Class in fr.lnl.game.server.utils -
Tuple associating storing two value of undefined type.
Unlike Python, value in this Tuple can be modified (but the type of its new value need to be the same) - Pair(A, B) - Constructor for class fr.lnl.game.server.utils.Pair
- penaltyBomb - Variable in enum class fr.lnl.game.server.games.player.ClassPlayer
- penaltyMine - Variable in enum class fr.lnl.game.server.games.player.ClassPlayer
- penaltyShoot - Variable in enum class fr.lnl.game.server.games.player.ClassPlayer
- play() - Method in class fr.lnl.game.server.games.Game
-
Game "main" method, call by a controller after human chose an action or when a computer player play an action Method is call everytime an action has been chosen by a human or when aa computer player need to play
- player - Variable in class fr.lnl.game.server.games.action.AbstractAction
- player - Variable in class fr.lnl.game.server.games.grid.elements.Explosive
-
Owner of the explosive
- Player - Interface in fr.lnl.game.server.games.player
- players - Variable in class fr.lnl.game.server.games.Game
- players - Variable in class fr.lnl.game.server.games.grid.build.AbstractGridFactoryBuilder
- players - Variable in class fr.lnl.game.server.games.grid.Grid
- playersList(List<Player>) - Method in class fr.lnl.game.server.games.grid.build.AbstractGridFactoryBuilder
- playersList(List<Player>) - Method in interface fr.lnl.game.server.games.grid.build.GridFactoryBuilder
-
set players list.
- point - Variable in class fr.lnl.game.server.games.action.DropObject
- point - Variable in class fr.lnl.game.server.games.action.Move
- point - Variable in class fr.lnl.game.server.games.action.Shot
- point - Variable in class fr.lnl.game.server.games.grid.elements.Explosive
-
Position of the explosive
- Point - Class in fr.lnl.game.server.utils
-
Point extends from Pair, basically a simpler ways to use Pair when using grid position
- Point(int, int) - Constructor for class fr.lnl.game.server.utils.Point
- position - Variable in class fr.lnl.game.server.games.player.AbstractPlayer
- previousPlayer - Variable in class fr.lnl.game.server.games.Game
- privateView(Player) - Method in class fr.lnl.game.server.games.grid.Grid
- pythagoras(double, double) - Method in class fr.lnl.game.server.games.grid.elements.Bomb
R
- RandomComputerPlayer - Class in fr.lnl.game.server.games.player
- RandomComputerPlayer(Integer, Point, ClassPlayer) - Constructor for class fr.lnl.game.server.games.player.RandomComputerPlayer
- removalListener(ModelListener) - Method in class fr.lnl.game.server.listener.AbstractModelListening
- ReunionSameAction - Class in fr.lnl.game.server.games.action
-
When we generate action, we generate one per available direction (like in
Move
) but to improve human readability, we list every same Action here - ReunionSameAction(String) - Constructor for class fr.lnl.game.server.games.action.ReunionSameAction
- ReunionSameAction(String, Action) - Constructor for class fr.lnl.game.server.games.action.ReunionSameAction
- RIGHT - Enum constant in enum class fr.lnl.game.server.games.action.Direction4Axis
- RIGHT - Enum constant in enum class fr.lnl.game.server.games.action.Direction8Axis
- row - Variable in class fr.lnl.game.server.games.grid.build.AbstractGridFactoryBuilder
- row - Variable in class fr.lnl.game.server.games.grid.Grid
S
- seeNeighbour(Point, int, int, int) - Method in class fr.lnl.game.server.games.action.Shot
- selectedAction - Variable in class fr.lnl.game.server.games.Game
- server - module server
-
Server module, include every model classes
- ServerMain - Class in fr.lnl.game.server
- ServerMain() - Constructor for class fr.lnl.game.server.ServerMain
- setA(A) - Method in class fr.lnl.game.server.utils.Pair
- setActions(List<Action>) - Method in class fr.lnl.game.server.games.player.AbstractPlayer
- setActions(List<Action>) - Method in interface fr.lnl.game.server.games.player.Player
- setB(B) - Method in class fr.lnl.game.server.utils.Pair
- setCurrentPlayer(Player) - Method in class fr.lnl.game.server.games.Game
- setEnergy(int) - Method in class fr.lnl.game.server.games.player.AbstractPlayer
- setEnergy(int) - Method in interface fr.lnl.game.server.games.player.Player
- setLock(boolean) - Method in class fr.lnl.game.server.games.grid.elements.AbstractBox
- setLock(boolean) - Method in interface fr.lnl.game.server.games.grid.elements.Box
- setPosition(Point) - Method in class fr.lnl.game.server.games.player.AbstractPlayer
- setPosition(Point) - Method in interface fr.lnl.game.server.games.player.Player
- setSelectedAction(Action) - Method in class fr.lnl.game.server.games.Game
- setShieldDeploy(boolean) - Method in class fr.lnl.game.server.games.player.AbstractPlayer
- setShieldDeploy(boolean) - Method in interface fr.lnl.game.server.games.player.Player
- setWeapon(Weapon) - Method in class fr.lnl.game.server.games.player.AbstractPlayer
- setWeapon(Weapon) - Method in interface fr.lnl.game.server.games.player.Player
- shieldCost - Variable in enum class fr.lnl.game.server.games.player.ClassPlayer
- shieldDeploy - Variable in class fr.lnl.game.server.games.player.AbstractPlayer
- shootCost - Variable in enum class fr.lnl.game.server.games.player.ClassPlayer
- Shot - Class in fr.lnl.game.server.games.action
- Shot(Game, Player) - Constructor for class fr.lnl.game.server.games.action.Shot
- Shot(Game, Player, Direction4Axis) - Constructor for class fr.lnl.game.server.games.action.Shot
- strategy(Game) - Method in class fr.lnl.game.server.games.player.ComputerPlayer
-
Method belonging to classes which extend this class to define the specific strategy of the player
- strategy(Game) - Method in class fr.lnl.game.server.games.player.RandomComputerPlayer
-
Choose an action fully randomly
- strategy(Game) - Method in class fr.lnl.game.server.games.player.StrategyComputerPlayer
-
Choose an action following the strategy
- StrategyComputerPlayer - Class in fr.lnl.game.server.games.player
- StrategyComputerPlayer(Integer, Point, ClassPlayer) - Constructor for class fr.lnl.game.server.games.player.StrategyComputerPlayer
- SUPPORT - Enum constant in enum class fr.lnl.game.server.games.player.ClassPlayer
T
- TANK - Enum constant in enum class fr.lnl.game.server.games.player.ClassPlayer
- testFloat(String, Scanner, String) - Static method in class fr.lnl.game.server.utils.Maths
-
Convert entry to a float
- testInteger(String, Scanner, String) - Static method in class fr.lnl.game.server.utils.Maths
-
Convert entry to an integer
- toString() - Method in class fr.lnl.game.server.games.grid.Grid
-
Given a string representation of the board.
Some characters in given string are in UTF-8 and can be poorly displayed if using an incompatible encoding, like on Windows where french regional encoding iswindows-1252
- toString() - Method in class fr.lnl.game.server.games.player.HumanPlayer
- toString() - Method in class fr.lnl.game.server.games.player.RandomComputerPlayer
- toString() - Method in class fr.lnl.game.server.games.player.StrategyComputerPlayer
- toString() - Method in class fr.lnl.game.server.utils.Pair
U
- UP - Enum constant in enum class fr.lnl.game.server.games.action.Direction4Axis
- UP - Enum constant in enum class fr.lnl.game.server.games.action.Direction8Axis
- UP_LEFT - Enum constant in enum class fr.lnl.game.server.games.action.Direction8Axis
- UP_RIGHT - Enum constant in enum class fr.lnl.game.server.games.action.Direction8Axis
- update() - Method in class fr.lnl.game.server.games.grid.elements.Bomb
-
When the timer (counter) goes down to 0, the bomb explode
- update() - Method in interface fr.lnl.game.server.games.grid.elements.CountdownBox
-
Call at each game tick (After a player do an action)
- updateModel(Object) - Method in interface fr.lnl.game.server.listener.ModelListener
-
this method is call everytime, an action on the view forces a controller to sens an update to model
V
- valueOf(String) - Static method in enum class fr.lnl.game.server.games.action.Direction4Axis
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class fr.lnl.game.server.games.action.Direction8Axis
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class fr.lnl.game.server.games.player.ClassPlayer
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class fr.lnl.game.server.games.action.Direction4Axis
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class fr.lnl.game.server.games.action.Direction8Axis
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class fr.lnl.game.server.games.player.ClassPlayer
-
Returns an array containing the constants of this enum class, in the order they are declared.
- verticalDistance - Variable in class fr.lnl.game.server.games.weapon.Firearm
W
- Wall - Class in fr.lnl.game.server.games.grid.elements
-
A wall is an intraversable object
- Wall() - Constructor for class fr.lnl.game.server.games.grid.elements.Wall
- wallProbability - Variable in class fr.lnl.game.server.games.grid.build.AbstractGridFactoryBuilder
- wallProbability(float) - Method in class fr.lnl.game.server.games.grid.build.AbstractGridFactoryBuilder
- wallProbability(float) - Method in interface fr.lnl.game.server.games.grid.build.GridFactoryBuilder
-
Set wall probability
- weapon - Variable in class fr.lnl.game.server.games.player.AbstractPlayer
- weapon - Variable in enum class fr.lnl.game.server.games.player.ClassPlayer
- Weapon - Interface in fr.lnl.game.server.games.weapon
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form