Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- ACTIVATE_BOMB - Enum constant in enum class com.bomber7.utils.Controls
-
Detonate/activate a bomb action.
- activateAllTriggerBombs() - Method in class com.bomber7.core.model.entities.Player
-
Allow the Player to activate all trigger bomb that he dropped.
- activateBomb(LevelMap) - Method in class com.bomber7.core.model.square.Bomb
-
Activates the bomb, causing it to explode and affect surrounding squares.
- ADD_BOMB - Enum constant in enum class com.bomber7.utils.BonusType
-
Add a supplementary bomb bonus.
- addCharacter(Character) - Method in class com.bomber7.core.model.map.LevelMap
-
Adds a character to the Map.
- addEffect(Effect) - Method in class com.bomber7.core.model.map.LevelMap
-
Adds an effect to the queue of effects that the view should process.
- addMap(GameMap) - Method in class com.bomber7.core.model.GameCandidate
-
Adds a map to the list of selected maps.
- addOneLife() - Method in class com.bomber7.core.model.entities.Character
-
Increases the character's life by one.
- addPlayer(PlayerBlueprint, int) - Method in class com.bomber7.core.model.GameCandidate
-
Adds a player blueprint to the list of playerBlueprints to a given position.
- addPower() - Method in class com.bomber7.core.model.entities.Player
-
Increases the player's bomb power by 1.
- addScore(int) - Method in class com.bomber7.core.model.entities.Character
-
Add a given score to the character.
- addSoundEffect(ClickListener) - Static method in class com.bomber7.utils.ComponentsUtils
-
Wraps an existing
ClickListener
to add a click sound effect when the user presses down on a component. - ALIVE - Static variable in class com.bomber7.utils.Score
-
Points awarded to the player at each interval defined by
Constants.ALIVE_SCORE_TIMER
. - ALIVE_SCORE_TIMER - Static variable in class com.bomber7.utils.Constants
-
Interval (in seconds) at which alive players are awarded points for staying alive.
- applyBonusEffect(Player) - Method in class com.bomber7.core.model.square.Bonus
-
Applies the bonus effect to the player or game state.
- applyBonusEffect(Player) - Method in class com.bomber7.core.model.square.BonusAddBomb
- applyBonusEffect(Player) - Method in class com.bomber7.core.model.square.BonusLife
- applyBonusEffect(Player) - Method in class com.bomber7.core.model.square.BonusSpeed
- applyBonusEffect(Player) - Method in class com.bomber7.core.model.square.BonusTriggerBomb
-
Applies the bonus effect to the player by changing their bomb type to TRIGGER if they currently use TIME bombs.
- ARCADE - Enum constant in enum class com.bomber7.utils.SoundType
-
Arcade fight music.
B
- BDE - Enum constant in enum class com.bomber7.utils.GameCharacter
-
Character represeting a member of the school's BDE.
- BEAST_MODE - Enum constant in enum class com.bomber7.utils.SoundType
-
Beast mode fight music.
- BEGINNER - Enum constant in enum class com.bomber7.utils.PlayerStrategy
-
Basic AI with simple behavior (random moves, random bomb placement).
- Bomb - Class in com.bomber7.core.model.square
-
Represents a bomb in the game, which can explode and affect surrounding squares.
- Bomb(int, int, int, String, Character) - Constructor for class com.bomber7.core.model.square.Bomb
-
Constructs a Bomb with a specified explosion power and texture file path.
- BOMB_CHARGE - Enum constant in enum class com.bomber7.utils.SoundType
-
Charging bomb sound effect.
- BOMB_TIMER - Static variable in class com.bomber7.utils.Constants
-
The default bomb timer.
- BomberDialog - Class in com.bomber7.core.components
-
A custom dialog used in the game to confirm user actions, with styled buttons and title.
- BomberDialog(String, String, String, String, Skin) - Constructor for class com.bomber7.core.components.BomberDialog
-
Creates a new
BomberDialog
with a title, a message, and two styled buttons. - BomberGame - Class in com.bomber7.core
-
Main class of the Bomber7 game, extending LibGDX's
Game
class. - BomberGame() - Constructor for class com.bomber7.core.BomberGame
- BomberScreen - Class in com.bomber7.core.screens
-
An abstract Screen class that all bomber screens should inherit from.
- BomberScreen(Game) - Constructor for class com.bomber7.core.screens.BomberScreen
-
Initializes the screen.
- BomberTable - Class in com.bomber7.core.components
-
A
Table
extension that provides some helpful function for cleaner UI initialization. - BomberTable() - Constructor for class com.bomber7.core.components.BomberTable
- BombState - Enum Class in com.bomber7.core.model.square
-
Represents the state of a bomb in the game.
- BombType - Enum Class in com.bomber7.core.model.square
-
The
BombType
enum represents the different types of bombs that can be used in the game. - Bonus - Class in com.bomber7.core.model.square
-
Abstract class representing a bonus in the game.
- Bonus(BonusType) - Constructor for class com.bomber7.core.model.square.Bonus
-
Constructs a new Bonus with the specified bonus type.
- BONUS_RATE - Static variable in class com.bomber7.utils.Constants
-
The chance of a bonus being dropped once a breakable wall is destroyed.
- BonusAddBomb - Class in com.bomber7.core.model.square
-
Represents a bonus that adds an additional bomb to the player's inventory.
- BonusAddBomb() - Constructor for class com.bomber7.core.model.square.BonusAddBomb
-
Constructs a BonusAddBomb.
- BonusLife - Class in com.bomber7.core.model.square
-
Represents a bonus that grants an additional life to the player.
- BonusLife() - Constructor for class com.bomber7.core.model.square.BonusLife
-
Constructs a BonusLife.
- BonusSpeed - Class in com.bomber7.core.model.square
-
Represents a bonus that increases the player's speed.
- BonusSpeed() - Constructor for class com.bomber7.core.model.square.BonusSpeed
-
Constructs a BonusSpeed.
- BonusTriggerBomb - Class in com.bomber7.core.model.square
-
Change the bomb type of the player to TRIGGER.
- BonusTriggerBomb() - Constructor for class com.bomber7.core.model.square.BonusTriggerBomb
-
Constructs a BonusTriggerBomb.
- BonusType - Enum Class in com.bomber7.utils
-
An enum representing the different bonuses present in the game.
- BORDER_SIZE - Static variable in class com.bomber7.utils.Dimensions
-
Border size for elements.
- BreakableWall - Class in com.bomber7.core.model.square
-
Represents a breakable wall in the game.
- BreakableWall(String) - Constructor for class com.bomber7.core.model.square.BreakableWall
-
Constructs a BreakableWall without specifying flip options.
- BreakableWall(String, boolean, boolean, boolean) - Constructor for class com.bomber7.core.model.square.BreakableWall
-
Constructs a BreakableWall with the specified texture file path.
- BUTTON_HEIGHT - Static variable in class com.bomber7.utils.Dimensions
-
Medium button height.
- BUTTON_HEIGHT_SM - Static variable in class com.bomber7.utils.Dimensions
-
Small button height.
- BUTTON_WIDTH - Static variable in class com.bomber7.utils.Dimensions
-
Medium button width.
- BUTTON_WIDTH_SM - Static variable in class com.bomber7.utils.Dimensions
-
Small button width.
C
- Character - Class in com.bomber7.core.model.entities
-
Classe Character.
- Character(String, LevelMap, int, int, int, int, GameCharacter) - Constructor for class com.bomber7.core.model.entities.Character
-
Character Constructor.
- CharacterState - Enum Class in com.bomber7.core.model.entities
-
Enum representing different animation states of a character.
- checkMove(int, int) - Method in class com.bomber7.core.model.entities.Character
-
Check if the move is possible or not.
- CLASSIC_BOMB - Static variable in class com.bomber7.core.model.square.Bomb
-
Constants representing different types of bombs.
- clearMapElement() - Method in class com.bomber7.core.model.square.Square
-
Clears the map element associated with this square.
- CLICK - Enum constant in enum class com.bomber7.utils.SoundType
-
Sound played when clicking on a UI element.
- collectBonus() - Method in class com.bomber7.core.model.entities.Player
-
Checks whether the square where the player is situated has a bonus or not, and if it does, collects it and applies it to the player.
- com.bomber7.core - package com.bomber7.core
- com.bomber7.core.components - package com.bomber7.core.components
- com.bomber7.core.controller - package com.bomber7.core.controller
- com.bomber7.core.model - package com.bomber7.core.model
- com.bomber7.core.model.entities - package com.bomber7.core.model.entities
- com.bomber7.core.model.exceptions - package com.bomber7.core.model.exceptions
- com.bomber7.core.model.map - package com.bomber7.core.model.map
- com.bomber7.core.model.square - package com.bomber7.core.model.square
- com.bomber7.core.model.texture - package com.bomber7.core.model.texture
- com.bomber7.core.screens - package com.bomber7.core.screens
- com.bomber7.core.views - package com.bomber7.core.views
- com.bomber7.utils - package com.bomber7.utils
- compareTo(Character) - Method in class com.bomber7.core.model.entities.Character
-
Compares this character to another character based on their score.
- COMPONENT_SPACING - Static variable in class com.bomber7.utils.Dimensions
-
Spacing between UI components (buttons, etc...).
- COMPONENT_SPACING_LG - Static variable in class com.bomber7.utils.Dimensions
-
Large spacing between UI components (buttons, etc...).
- COMPONENT_SPACING_SM - Static variable in class com.bomber7.utils.Dimensions
-
Small spacing between UI components (buttons, etc...).
- COMPONENT_SPACING_XL - Static variable in class com.bomber7.utils.Dimensions
-
XL spacing between UI components (buttons, etc...).
- COMPONENT_SPACING_XS - Static variable in class com.bomber7.utils.Dimensions
-
XS spacing between UI components (buttons, etc...).
- COMPONENT_SPACING_XXS - Static variable in class com.bomber7.utils.Dimensions
-
XXS spacing between UI components (buttons, etc...).
- ComponentsUtils - Class in com.bomber7.utils
-
Utility class for enhancing UI components with additional behaviors.
- computeRotation() - Method in class com.bomber7.core.model.texture.ElementTexture
-
Calculate the rotation base on this elements flip flags.
- Config - Class in com.bomber7.core.controller
-
Config class is used to manage the configuration settings for the game.
- Config - Class in com.bomber7.utils
-
Represents the user configuration settings such as global volume, music volume, and selected language.
- Config() - Constructor for class com.bomber7.utils.Config
-
Constructs a new
Config
instance with default values. - Config(Config) - Constructor for class com.bomber7.utils.Config
-
Constructs a new
Config
by copying another instance. - Config(String, int, int, int, int, int, int) - Constructor for class com.bomber7.core.controller.Config
-
Constructor for the Config class.
- ConfigManager - Class in com.bomber7.core
-
A singleton manager responsible for loading, saving, and managing the user's configuration.
- Constants - Class in com.bomber7.utils
-
Constant variables used in the app.
- Controls - Enum Class in com.bomber7.utils
-
Enum representing possible player control actions in Bomber7.
- create() - Method in class com.bomber7.core.BomberGame
-
Called once when the application is created.
- createLevelMap(String, int, int) - Static method in class com.bomber7.core.model.map.LevelMapFactory
-
Creates a LevelMap instance based on the specified map name.
- CROUS - Enum constant in enum class com.bomber7.utils.GameMap
-
Student's restaurant map.
D
- DEAD - Enum constant in enum class com.bomber7.core.model.entities.CharacterState
-
The character has died.
- DEAD - Static variable in class com.bomber7.utils.Score
-
Points deducted when the player dies.
- DEATH - Enum constant in enum class com.bomber7.utils.SoundType
-
Death sound.
- DEFAULT_BOMB_POWER - Static variable in class com.bomber7.utils.Constants
-
The default bomb timer.
- DEFAULT_LIFE - Static variable in class com.bomber7.utils.Constants
-
The default life of a player.
- DEFAULT_SPEED - Static variable in class com.bomber7.utils.Constants
-
The default speed of a player.
- DefaultConfig - Class in com.bomber7.utils
-
A utility class that holds the default configuration values for the game.
- deleteObserver(Observer) - Method in interface com.bomber7.core.model.Subject
-
Unregisters an observer so it no longer receives updates.
- Dimensions - Class in com.bomber7.utils
-
Dimension and sizing variables used in the app.
- disable() - Method in class com.bomber7.core.components.DisableableTextButton
-
Disabled the button and updates its style accordingly.
- DisableableTextButton - Class in com.bomber7.core.components
-
A
TextButton
that supports being enabled or disabled. - DisableableTextButton(String, Skin, String) - Constructor for class com.bomber7.core.components.DisableableTextButton
-
Creates a new DisableableTextButton with the specified text, skin, and style.
- dispose() - Method in class com.bomber7.core.BomberGame
-
Called when the application is closed.
- dispose() - Method in class com.bomber7.core.ResourceManager
-
Disposes of all loaded game resources to free up memory.
- dispose() - Method in class com.bomber7.core.screens.BomberScreen
- dispose() - Method in class com.bomber7.utils.PlayerBlueprintObservable
-
Disposed the linked PlayerBlueprint instance (sets it to null).
- dispose() - Method in class com.bomber7.utils.SoundManager
-
Disposes of the sound resources to free memory.
- DOWN - Enum constant in enum class com.bomber7.utils.Controls
-
Move downwards action.
- draw(Batch, float) - Method in class com.bomber7.core.views.ViewCharacter
-
Method called by libGDX to draw the character.
- draw(Batch, float) - Method in class com.bomber7.core.views.ViewMap
-
Method called by libGDX to draw the map.
- DROP_BOMB - Enum constant in enum class com.bomber7.utils.Controls
-
Drop/place a bomb action.
- DROP_BOMB - Static variable in class com.bomber7.utils.Score
-
Points awarded when the player places a bomb.
- dropBomb() - Method in class com.bomber7.core.model.entities.Player
-
Allow the Player to drop a bomb.
E
- Effect - Class in com.bomber7.utils
-
Represents a visual effect at a specific position with an associated sprite animation.
- Effect(int, int, EffectType) - Constructor for class com.bomber7.utils.Effect
-
Constructs a new Effect.
- EffectType - Enum Class in com.bomber7.utils
-
Enum listing different effects in the game.
- ElementTexture - Class in com.bomber7.core.model.texture
-
Abstract class representing a texture for an element in the game.
- ElementTexture(String, boolean, boolean, boolean) - Constructor for class com.bomber7.core.model.texture.ElementTexture
-
Constructs a new Square with the specified sprite file path and texture ID.
- ELEVATOR - Enum constant in enum class com.bomber7.utils.SoundType
-
Elevator music.
- enable() - Method in class com.bomber7.core.components.DisableableTextButton
-
Enabled the button and updates its style accordingly.
- ENGLISH - Enum constant in enum class com.bomber7.utils.Language
-
English language.
- ENSEEIHT - Enum constant in enum class com.bomber7.utils.GameMap
-
ENSEEIHT's schoolyard map.
- EPIC_FIGHT_1 - Enum constant in enum class com.bomber7.utils.SoundType
-
Epic fight music.
- EPIC_FIGHT_2 - Enum constant in enum class com.bomber7.utils.SoundType
-
Epic fight music.
- EPIC_FIGHT_3 - Enum constant in enum class com.bomber7.utils.SoundType
-
Epic fight music.
- equals(Object) - Method in class com.bomber7.core.controller.PlayerConfig
-
Compares this
PlayerConfig
to another object for equality. - equals(Object) - Method in class com.bomber7.utils.Config
-
Compares this
Config
to another object for equality. - EXPLODED - Enum constant in enum class com.bomber7.core.model.square.BombState
-
The bomb has exploded.
- EXPLOSION - Enum constant in enum class com.bomber7.utils.EffectType
-
Explosion effect.
- EXPLOSION - Enum constant in enum class com.bomber7.utils.SoundType
-
Sound played when a bomb explodes.
F
- FLIP_D - Static variable in class com.bomber7.core.model.texture.ElementTexture
-
FLIP_D - Flip Mask diagonally.
- FLIP_H - Static variable in class com.bomber7.core.model.texture.ElementTexture
-
FLIP_H - Flip Mask horizontally.
- FLIP_V - Static variable in class com.bomber7.core.model.texture.ElementTexture
-
FLIP_V - Flip Mask vertically.
- FOOTSTEP_1 - Enum constant in enum class com.bomber7.utils.SoundType
-
Footstep sound effect.
- FOOTSTEP_2 - Enum constant in enum class com.bomber7.utils.SoundType
-
Footstep sound effect.
- FOOTSTEP_3 - Enum constant in enum class com.bomber7.utils.SoundType
-
Footstep sound effect.
- FOY - Enum constant in enum class com.bomber7.utils.GameMap
-
Student's foyer map.
- FRAME_DURATION - Static variable in class com.bomber7.utils.Constants
-
Animation frame duration.
- FRENCH - Enum constant in enum class com.bomber7.utils.Language
-
French language.
G
- game - Variable in class com.bomber7.core.screens.BomberScreen
-
Game object.
- Game - Class in com.bomber7.core.model
-
Represents a game session.
- GAME - Enum constant in enum class com.bomber7.utils.ScreenType
-
The main game screen where gameplay takes place.
- GAME_OVER - Enum constant in enum class com.bomber7.utils.SoundType
-
Game over sound.
- GameCandidate - Class in com.bomber7.core.model
-
This class holds the state of the game to create.
- GameCandidate() - Constructor for class com.bomber7.core.model.GameCandidate
-
A constructor that creates an empty GameCandidate.
- GameCharacter - Enum Class in com.bomber7.utils
-
Represents the different playable characters in the game, each associated with a specific sprite and a number of points required to unlock them.
- GameMap - Enum Class in com.bomber7.utils
-
Enum containing all the maps that exist in the game.
- GameScreen - Class in com.bomber7.core.screens
-
Represents the game screen in the Bomber7 game.
- GameScreen(Game) - Constructor for class com.bomber7.core.screens.GameScreen
-
Constructs a new GameScreen associated with the given game.
- getAbsoluteCoordinates(int, int) - Method in class com.bomber7.core.model.map.LevelMap
-
Returns the checkerboard of squares.
- getActivateBomb() - Method in class com.bomber7.core.controller.Config
-
Get the key for activating a bomb.
- getAssetName() - Method in enum class com.bomber7.utils.BonusType
-
Returns the asset name of the bonus.
- getAssetName() - Method in enum class com.bomber7.utils.GameMap
-
Getter of assetName.
- getAssetsPath() - Static method in class com.bomber7.utils.ProjectPaths
-
Returns the path to the assets directory.
- getBombType() - Method in class com.bomber7.core.model.entities.Player
-
Player number of bomb playable getter.
- getCandidate() - Method in class com.bomber7.core.BomberGame
-
Returns the gameCandidate used to create the game.
- getCharacter() - Method in class com.bomber7.utils.PlayerBlueprint
-
Skin (character) getter.
- getCharacter() - Method in class com.bomber7.utils.PlayerBlueprintObservable
-
Wrapper of
PlayerBlueprint.getCharacter()
. - getCharacters() - Method in class com.bomber7.core.model.map.LevelMap
-
Returns the current list of characters on the map.
- getConfig() - Method in class com.bomber7.core.ConfigManager
-
A getter for the
modifiableConfig
attribute. - getConfig() - Method in class com.bomber7.core.model.entities.HumanPlayer
-
Gets the configuration for the player controls.
- getControlsForPlayer(int) - Static method in class com.bomber7.utils.DefaultConfig
-
Returns the default key binding map for a given player.
- getCurrentMap() - Method in class com.bomber7.core.BomberGame
-
Returns the current map.
- getDown() - Method in class com.bomber7.core.controller.Config
-
Get the key for moving down.
- getDrawableName() - Method in enum class com.bomber7.utils.GameCharacter
-
Getter of drawableName.
- getDropBomb() - Method in class com.bomber7.core.controller.Config
-
Get the key for dropping a bomb.
- getDropRate() - Method in enum class com.bomber7.utils.BonusType
-
Returns the drop rate of the bonus.
- getEffectsQueue() - Method in class com.bomber7.core.model.map.LevelMap
-
Returns the queue of effects that have not been processed yet.
- getForPlayer(int) - Static method in class com.bomber7.utils.SpawnPoint
-
Returns the spawn point for the given player index.
- getFrames() - Method in enum class com.bomber7.utils.EffectType
-
Array containing all animated sprites in order.
- getFramesCount() - Method in enum class com.bomber7.utils.EffectType
-
Getter of framesCount.
- getGameCharacter() - Method in class com.bomber7.core.model.entities.Character
-
Character current sprite path file.
- getGlobalVolume() - Method in class com.bomber7.utils.Config
-
Returns the global volume level.
- getHeight() - Method in class com.bomber7.core.model.map.LevelMap
-
Returns the height of the checkerboard (number of rows).
- getHumanControllers() - Method in class com.bomber7.core.BomberGame
-
Returns the human player controllers.
- getInstance() - Static method in class com.bomber7.core.ConfigManager
-
Retrieves the singleton instance of the
ConfigManager
. - getInstance() - Static method in class com.bomber7.core.ResourceManager
-
Retrieves the singleton instance of the
ConfigManager
. - getInstance() - Static method in class com.bomber7.core.ScreenManager
-
Retrieves the singleton instance of the
ScreenManager
. - getInstance() - Static method in class com.bomber7.utils.SoundManager
-
Retrieves the singleton instance of the
SoundManager
. - getKeyBinding(Controls) - Method in class com.bomber7.core.controller.PlayerConfig
-
Gets the key code for the specified control action.
- getLanguage() - Method in class com.bomber7.utils.Config
-
Returns the current language setting.
- getLeft() - Method in class com.bomber7.core.controller.Config
-
Get the key for moving left.
- getLife() - Method in class com.bomber7.core.model.entities.Character
-
Character current life getter.
- getMap() - Method in class com.bomber7.core.components.MapCheckBox
-
Returns the map this checkbox represents.
- getMap() - Method in class com.bomber7.core.model.entities.Character
-
Character current map to play on.
- getMapDir() - Static method in class com.bomber7.utils.ProjectPaths
-
Returns the path to the maps directory within the assets.
- getMapElement() - Method in class com.bomber7.core.model.square.Square
-
Returns the map element associated with this square.
- getMapName() - Method in class com.bomber7.core.model.map.LevelMap
-
Returns the name of the map.
- getMaps() - Method in class com.bomber7.core.model.GameCandidate
-
Returns the selected maps as a list of
GameMap
. - getMapSkin() - Method in class com.bomber7.core.ResourceManager
-
Returns the map skin used throughout the game.
- getMapType() - Method in class com.bomber7.core.model.map.LevelMap
-
Returns the type of the map.
- getMapX() - Method in class com.bomber7.core.model.entities.Character
-
Character current X-Axis position getter.
- getMapY() - Method in class com.bomber7.core.model.entities.Character
-
Character current Y-Axis position getter.
- getMovingStatus() - Method in class com.bomber7.core.model.entities.Character
-
Character moving status getter.
- getMusicVolume() - Method in class com.bomber7.utils.Config
-
Returns the music volume level.
- getName() - Method in class com.bomber7.core.model.entities.Character
-
Character name getter.
- getName() - Method in class com.bomber7.utils.PlayerBlueprint
-
Name getter.
- getName() - Method in class com.bomber7.utils.PlayerBlueprintObservable
-
Wrapper of
PlayerBlueprint.getName()
. - getNbBomb() - Method in class com.bomber7.core.model.entities.Player
-
Player number of bomb playable getter.
- getNbTriggeredBombDropped() - Method in class com.bomber7.core.model.entities.Player
-
Player list of dropped bombs getter.
- getObservers() - Method in class com.bomber7.core.components.MapCheckBox
- getObservers() - Method in interface com.bomber7.core.model.Subject
-
Returns the list of registered observers.
- getObservers() - Method in class com.bomber7.utils.PlayerBlueprintObservable
- getPlayerBlueprint() - Method in class com.bomber7.utils.PlayerBlueprintObservable
-
Returns the playerBlueprint held by this observable.
- getPlayerBlueprints() - Method in class com.bomber7.core.model.GameCandidate
-
Returns the player blueprints as an array of
PlayerBlueprint
. - getPlayerConfig(int) - Method in class com.bomber7.utils.Config
-
Returns the config of the specified player.
- getPointsToUnlock() - Method in enum class com.bomber7.utils.GameCharacter
-
Getter of pointsToUnlock.
- getPointsToUnlock() - Method in enum class com.bomber7.utils.GameMap
-
Getter of pointsToUnlock.
- getPositionX() - Method in class com.bomber7.core.model.entities.Character
-
Character current X-Axis position getter.
- getPositionY() - Method in class com.bomber7.core.model.entities.Character
-
Character current Y-Axis position getter.
- getPower() - Method in class com.bomber7.core.model.entities.Player
-
Gets the power of the player's bombs.
- getPower() - Method in class com.bomber7.core.model.square.Bomb
-
Returns the power of the bomb.
- getRandomBonusType() - Static method in enum class com.bomber7.utils.BonusType
-
Returns a randomly chosen bonus type based on bonuses' probability.
- getRight() - Method in class com.bomber7.core.controller.Config
-
Get the key for moving right.
- getRounds() - Method in class com.bomber7.core.model.GameCandidate
-
Returns the selected number of rounds.
- getScore() - Method in class com.bomber7.core.model.entities.Character
-
Character current score getter.
- getScreen(Game, Object...) - Method in enum class com.bomber7.utils.ScreenType
-
Creates and returns the screen instance associated with this screen type.
- getScreenType() - Method in class com.bomber7.core.screens.BomberScreen
-
Returns the type of this screen.
- getScreenType() - Method in class com.bomber7.core.screens.GameScreen
- getScreenType() - Method in class com.bomber7.core.screens.KeyBindingScreen
- getScreenType() - Method in class com.bomber7.core.screens.MainMenuScreen
- getScreenType() - Method in class com.bomber7.core.screens.MapSelectionScreen
- getScreenType() - Method in class com.bomber7.core.screens.PauseScreen
- getScreenType() - Method in class com.bomber7.core.screens.PlayerSelectionScreen
- getScreenType() - Method in class com.bomber7.core.screens.ScoreBoardScreen
- getScreenType() - Method in class com.bomber7.core.screens.SettingsScreen
- getSkin() - Method in class com.bomber7.core.ResourceManager
-
Returns the UI skin used throughout the game.
- getSpeed() - Method in class com.bomber7.core.model.entities.Character
-
Character current speed getter.
- getSpriteTextureRegion(String) - Method in class com.bomber7.core.ResourceManager
-
Returns the texture region of a sprite based on given sprite texture name.
- getSquare(int, int) - Method in class com.bomber7.core.model.map.LevelMap
-
Returns the square at the specified coordinates.
- getSquareCoordinates(int, int) - Method in class com.bomber7.core.model.map.LevelMap
-
Returns the absolute coordinates of the square at the specified coordinates.
- getStrategy() - Method in class com.bomber7.utils.PlayerBlueprint
-
Strategy getter.
- getStrategy() - Method in class com.bomber7.utils.PlayerBlueprintObservable
-
Wrapper of
PlayerBlueprint.getStrategy()
. - getString(String) - Method in class com.bomber7.core.ResourceManager
-
Returns the localized string associated with the specified key from the internationalized string bundle.
- getTexture(String) - Static method in class com.bomber7.utils.ProjectPaths
-
Returns the path to a texture image by its name.
- getTextureName() - Method in class com.bomber7.core.model.texture.ElementTexture
-
Returns the file path to the texture image for this element.
- getTileset() - Static method in class com.bomber7.utils.ProjectPaths
-
Returns the path to the tileset texture file.
- getTimer() - Method in class com.bomber7.core.model.square.TimeBomb
-
Retrieves the current value of the countdown timer.
- getTintedDrawable(ResourceManager, String) - Static method in class com.bomber7.utils.ComponentsUtils
-
Returns a new drawable tinted with the specified color from the skin.
- getTriggerBombsDropped() - Method in class com.bomber7.core.model.entities.Player
-
Get the List of current TriggerBomb dropped.
- getType() - Method in class com.bomber7.utils.Effect
-
Getter for effect type.
- getUp() - Method in class com.bomber7.core.controller.Config
-
Get the key for moving up.
- getWidth() - Method in class com.bomber7.core.model.map.LevelMap
-
Returns the width of the checkerboard (number of columns).
- getX() - Method in class com.bomber7.core.model.square.Bomb
-
Returns the X-coordinate of the bomb.
- getX() - Method in class com.bomber7.utils.Effect
-
Getter for X-coordinate.
- getY() - Method in class com.bomber7.core.model.square.Bomb
-
Returns the Y-coordinate of the bomb.
- getY() - Method in class com.bomber7.utils.Effect
-
Getter for Y-coordinate.
- GLOBAL_VOLUME - Static variable in class com.bomber7.utils.DefaultConfig
-
The default value for the global volume setting (range: 0–100).
- GRADUATE - Enum constant in enum class com.bomber7.utils.GameCharacter
-
Graduate character.
- GUITAR - Enum constant in enum class com.bomber7.utils.SoundType
-
Guitar music.
H
- HALLE_AUX_GRAINS - Enum constant in enum class com.bomber7.utils.GameMap
-
Halle aux grains map.
- hashCode() - Method in class com.bomber7.core.controller.PlayerConfig
- hashCode() - Method in class com.bomber7.utils.Config
- hasMapElement() - Method in class com.bomber7.core.model.square.Square
-
Checks if this square has an associated map element.
- hide() - Method in class com.bomber7.core.screens.BomberScreen
- HITBOX_HEIGHT - Static variable in class com.bomber7.utils.Constants
-
Height of the hitbox of character.
- HITBOX_WIDTH - Static variable in class com.bomber7.utils.Constants
-
Width of the hitbox of character.
- HUMAN - Enum constant in enum class com.bomber7.utils.PlayerStrategy
-
Human player.
- HumanController - Class in com.bomber7.core.controller
-
The
HumanController
class is responsible for handling user input and controlling the movement of aHumanPlayer
in the game. - HumanController(HumanPlayer) - Constructor for class com.bomber7.core.controller.HumanController
-
Constructs a HumanController for the specified player.
- HumanPlayer - Class in com.bomber7.core.model.entities
-
Human player class.
- HumanPlayer(PlayerConfig, LevelMap, String, int, int, GameCharacter) - Constructor for class com.bomber7.core.model.entities.HumanPlayer
-
HumanPlayer Constructor.
I
- ID_MASK - Static variable in class com.bomber7.core.model.texture.ElementTexture
-
ID_MASK - Mask to extract the texture ID from the combined flags.
- IllegalBombOperationException - Exception in com.bomber7.core.model.exceptions
-
IllegalBombOperationException is raised if illegal value for bomb operation is tried to be set.
- IllegalBombOperationException(String) - Constructor for exception com.bomber7.core.model.exceptions.IllegalBombOperationException
-
IllegalBombOperationException Exception constructor.
- IllegalLifeOperationException - Exception in com.bomber7.core.model.exceptions
-
IllegalLifeSetException is raised if illegal value for life is tried to be set.
- IllegalLifeOperationException(String) - Constructor for exception com.bomber7.core.model.exceptions.IllegalLifeOperationException
-
IllegalLifeOperationException Exception constructor.
- IllegalPositionOperationException - Exception in com.bomber7.core.model.exceptions
-
IllegalPositionSetException is raised if illegal value for x or y (Axis-Position) is tried to be set.
- IllegalPositionOperationException(String) - Constructor for exception com.bomber7.core.model.exceptions.IllegalPositionOperationException
-
IllegalPositionSetException Exception constructor.
- IllegalPowerOperationException - Exception in com.bomber7.core.model.exceptions
-
IllegalPowerOperationException is raised if an illegal value for power is tried to be set.
- IllegalPowerOperationException(String) - Constructor for exception com.bomber7.core.model.exceptions.IllegalPowerOperationException
-
IllegalPowerOperationException Exception constructor.
- IllegalScoreOperationException - Exception in com.bomber7.core.model.exceptions
-
IllegalScoreOperationException is raised if illegal value for score is tried to be set.
- IllegalScoreOperationException(String) - Constructor for exception com.bomber7.core.model.exceptions.IllegalScoreOperationException
-
IllegalScoreOperationException Exception constructor.
- IllegalSpeedOperationException - Exception in com.bomber7.core.model.exceptions
-
IllegalSpeedSetException is raised if illegal value for speed is tried to be set.
- IllegalSpeedOperationException(String) - Constructor for exception com.bomber7.core.model.exceptions.IllegalSpeedOperationException
-
IllegalSpeedOperationException Exception constructor.
- initController() - Method in class com.bomber7.core.components.MapCheckBox
- initController() - Method in class com.bomber7.core.components.PlayerScoreBoard
- initController() - Method in class com.bomber7.core.components.PlayerSelector
- initController() - Method in class com.bomber7.core.screens.GameScreen
-
Game controller initialization.
- initController() - Method in class com.bomber7.core.screens.KeyBindingScreen
- initController() - Method in class com.bomber7.core.screens.MainMenuScreen
- initController() - Method in class com.bomber7.core.screens.MapSelectionScreen
- initController() - Method in class com.bomber7.core.screens.PauseScreen
- initController() - Method in class com.bomber7.core.screens.PlayerSelectionScreen
- initController() - Method in class com.bomber7.core.screens.ScoreBoardScreen
- initController() - Method in class com.bomber7.core.screens.SettingsScreen
- initController() - Method in interface com.bomber7.utils.MVCComponent
-
The method where all the controller logic should be created (such as binding buttons, etc...).
- initialize() - Method in class com.bomber7.core.ConfigManager
-
Initializes the ConfigManager manager.
- initialize() - Method in class com.bomber7.core.ResourceManager
-
Initializes the ResourceManager manager.
- initialize() - Method in class com.bomber7.utils.SoundManager
-
Initializes the SoundManager manager.
- initialize(BomberGame) - Method in class com.bomber7.core.ScreenManager
-
Initializes the screen manager with the main
BomberGame
instance. - initialize(String) - Method in class com.bomber7.utils.PlayerBlueprintObservable
-
Used to create a valid instance of PlayerBlueprint with a given name.
- initView() - Method in class com.bomber7.core.components.MapCheckBox
- initView() - Method in class com.bomber7.core.components.PlayerScoreBoard
- initView() - Method in class com.bomber7.core.components.PlayerSelector
- initView() - Method in class com.bomber7.core.screens.GameScreen
-
Game screen initialization.
- initView() - Method in class com.bomber7.core.screens.KeyBindingScreen
- initView() - Method in class com.bomber7.core.screens.MainMenuScreen
- initView() - Method in class com.bomber7.core.screens.MapSelectionScreen
- initView() - Method in class com.bomber7.core.screens.PauseScreen
- initView() - Method in class com.bomber7.core.screens.PlayerSelectionScreen
- initView() - Method in class com.bomber7.core.screens.ScoreBoardScreen
- initView() - Method in class com.bomber7.core.screens.SettingsScreen
- initView() - Method in interface com.bomber7.utils.MVCComponent
-
The method where all the view components should be instantiated and placed.
- InputDialog - Class in com.bomber7.core.components
-
A dialog that listens for user key input to rebind controls for a specific player.
- InputDialog(ResourceManager, int) - Constructor for class com.bomber7.core.components.InputDialog
-
Creates a new InputDialog for rebinding controls of a given player.
- isAlive() - Method in class com.bomber7.core.model.entities.Character
-
Character current state of life.
- isChecked() - Method in class com.bomber7.core.components.MapCheckBox
-
Returns whether the checkbox is checked or not.
- isDiagonalFlip() - Method in class com.bomber7.core.model.texture.ElementTexture
-
Checks if the texture should be flipped diagonally.
- isDisposed() - Method in class com.bomber7.utils.PlayerBlueprintObservable
-
Checks whether the player blueprint has been disposed.
- isHorizontalFlip() - Method in class com.bomber7.core.model.texture.ElementTexture
-
Checks if the texture should be flipped horizontally.
- isLastRound() - Method in class com.bomber7.core.BomberGame
-
Indicates whether the current round is the last one.
- isUnsaved() - Method in class com.bomber7.core.ConfigManager
-
Indicates whether there is unsaved changes.
- isValid() - Method in class com.bomber7.utils.PlayerBlueprint
-
Returns whether the configured player is valid or not.
- isValid() - Method in class com.bomber7.utils.PlayerBlueprintObservable
-
Checks whether the player blueprint is valid.
- isVerticalFlip() - Method in class com.bomber7.core.model.texture.ElementTexture
-
Checks if the texture should be flipped vertically.
- isWalkable() - Method in class com.bomber7.core.model.square.Square
-
Checks if this square is walkable.
K
- KEY_BINDING - Enum constant in enum class com.bomber7.utils.ScreenType
-
The key binding screen where users can configure input controls.
- KeyBindingScreen - Class in com.bomber7.core.screens
-
A screen where a player can bind its input controls.
- KeyBindingScreen(Game, int) - Constructor for class com.bomber7.core.screens.KeyBindingScreen
-
Constructs a new KeyBindingScreen associated with the given game.
- KILL - Static variable in class com.bomber7.utils.Score
-
Points awarded when the player kills another player.
L
- LABEL_PADDING - Static variable in class com.bomber7.utils.Dimensions
-
Spacing between labels and other UI components.
- Language - Enum Class in com.bomber7.utils
-
An enum that lists all the languages supported by the game.
- LANGUAGE - Static variable in class com.bomber7.utils.DefaultConfig
-
The default language setting for the game.
- LEFT - Enum constant in enum class com.bomber7.utils.Controls
-
Move left action.
- LevelMap - Class in com.bomber7.core.model.map
-
Represents a level with a map in the game.
- LevelMap(String, List<List<Square>>, int, int) - Constructor for class com.bomber7.core.model.map.LevelMap
-
Constructs a LevelMap with the specified checkerboard.
- LevelMapFactory - Class in com.bomber7.core.model.map
-
Factory class for creating LevelMap instances.
- LIFE - Enum constant in enum class com.bomber7.utils.BonusType
-
A supplementary life.
- loadConfig(String) - Static method in class com.bomber7.core.controller.Config
-
Class method to load the configuration from a file.
- LOGO_HEIGHT - Static variable in class com.bomber7.utils.Dimensions
-
Menu logo height.
- LOGO_WIDTH - Static variable in class com.bomber7.utils.Dimensions
-
Menu logo width.
M
- MAIN_MENU - Enum constant in enum class com.bomber7.utils.ScreenType
-
The main menu screen, typically the first screen shown to the user.
- MainMenuScreen - Class in com.bomber7.core.screens
-
The main menu of the game.
- MainMenuScreen(Game) - Constructor for class com.bomber7.core.screens.MainMenuScreen
-
Constructs a new MainMenuScreen associated with the given game.
- map - Variable in class com.bomber7.core.model.entities.Character
-
The map on which the character is currently located.
- MAP_CHECK_BOX_SIZE - Static variable in class com.bomber7.utils.Dimensions
-
The width of the PlayerSelector component.
- MAP_SELECTION - Enum constant in enum class com.bomber7.utils.ScreenType
-
The map selection screen where users choose the game map.
- MapCheckBox - Class in com.bomber7.core.components
-
A checkbox component used in MapSelection screen to allow the user select the map(s) he wants to play on.
- MapCheckBox(GameMap, ResourceManager) - Constructor for class com.bomber7.core.components.MapCheckBox
-
Creates a
MapCheckBox
for the given map with appropriate resources. - MapElement - Class in com.bomber7.core.model.square
-
Abstract class representing a map element in the game.
- MapElement(String) - Constructor for class com.bomber7.core.model.square.MapElement
-
Constructs a MapElement without specifying flip options (false by default).
- MapElement(String, boolean, boolean, boolean) - Constructor for class com.bomber7.core.model.square.MapElement
-
Constructs a new Square with the specified texture file path and texture ID.
- MapSelectionScreen - Class in com.bomber7.core.screens
-
Screen where the user selects the map Here he can define the number of players, their skins, as well as their type (human or AI) as well as the difficulty of the AI.
- MapSelectionScreen(Game) - Constructor for class com.bomber7.core.screens.MapSelectionScreen
-
Constructs a new LevelSetupScreen associated with the given game.
- MAX_PLAYER_NAME_LENGTH - Static variable in class com.bomber7.utils.Constants
-
The maximum length for a player name.
- MAX_PLAYERS - Static variable in class com.bomber7.utils.Constants
-
Maximum number of human players allowed in the game.
- MAX_ROUNDS - Static variable in class com.bomber7.utils.Constants
-
Maximum number of rounds allowed in a game.
- MAX_SPEED - Static variable in class com.bomber7.utils.Constants
-
The max speed of a player.
- MIN_PLAYER_SCORE - Static variable in class com.bomber7.utils.Constants
-
Minimum player score.
- MIN_PLAYERS - Static variable in class com.bomber7.utils.Constants
-
Minimum number of players allowed in the game.
- MIN_ROUNDS - Static variable in class com.bomber7.utils.Constants
-
Maximum number of rounds allowed in a game.
- moveDown() - Method in class com.bomber7.core.model.entities.Character
-
Move character Down.
- moveDown() - Method in class com.bomber7.core.model.entities.Player
-
Moves the character down with the super method and then collects a bonus if there is any.
- moveLeft() - Method in class com.bomber7.core.model.entities.Character
-
Move character to the left.
- moveLeft() - Method in class com.bomber7.core.model.entities.Player
-
Moves the character to the left with the super method and then collects a bonus if there is any.
- moveRight() - Method in class com.bomber7.core.model.entities.Character
-
Move character to the right.
- moveRight() - Method in class com.bomber7.core.model.entities.Player
-
Moves the character to the right with the super method and then collects a bonus if there is any.
- moveUp() - Method in class com.bomber7.core.model.entities.Character
-
Move character Up.
- moveUp() - Method in class com.bomber7.core.model.entities.Player
-
Moves the character up with the super method and then collects a bonus if there is any.
- MOVING_DOWN - Enum constant in enum class com.bomber7.core.model.entities.CharacterState
-
The character is moving downwards.
- MOVING_LEFT - Enum constant in enum class com.bomber7.core.model.entities.CharacterState
-
The character is moving to the left.
- MOVING_RIGHT - Enum constant in enum class com.bomber7.core.model.entities.CharacterState
-
The character is moving to the right.
- MOVING_UP - Enum constant in enum class com.bomber7.core.model.entities.CharacterState
-
The character is moving upwards.
- MUSIC_VOLUME - Static variable in class com.bomber7.utils.DefaultConfig
-
The default value for the music volume setting (range: 0–100).
- MVCComponent - Interface in com.bomber7.utils
-
An interface that all UI classes should implement to separate the View and the Controller.
N
- next() - Method in enum class com.bomber7.utils.GameCharacter
-
Returns the next character in the enum order, looping back to the first if necessary.
- next() - Method in enum class com.bomber7.utils.Language
-
Returns the next language in the enum order, looping back to the first if necessary.
- next() - Method in enum class com.bomber7.utils.PlayerStrategy
-
Returns the next strategy in the list, looping to the first if necessary.
- nextRound() - Method in class com.bomber7.core.BomberGame
-
Starts a new round by setting the currentMap to the nextMap and by resetting all the characters.
- NO_ROTATION - Static variable in class com.bomber7.core.model.texture.ElementTexture
-
No rotation constant.
- notifyChanged() - Method in class com.bomber7.utils.PlayerBlueprintObservable
-
Marks this observable as changed and notifies all of its observers.
- notifyObservers() - Method in interface com.bomber7.core.model.Subject
-
Notifies all registered observers of a state change.
O
- Observer - Interface in com.bomber7.core.model
-
Observer in the Observer design pattern.
- onDestruction() - Method in class com.bomber7.core.model.square.BreakableWall
-
Returns the texture file path for the breakable wall.
- onExplosion(LevelMap, int, int) - Method in class com.bomber7.core.model.square.Bomb
-
Handles the explosion effect at a specific position on the map.
P
- parseCsv(File, File, File, Map<Integer, String>) - Static method in class com.bomber7.core.model.map.LevelMapFactory
-
Parses the CSV files to create a list of lists of Square objects (the checkerboard).
- parseTextureMap(Path) - Static method in class com.bomber7.core.model.map.LevelMapFactory
-
Parses the JSON file to create a mapping of texture IDs to their names.
- pause() - Method in class com.bomber7.core.BomberGame
-
Pauses the game.
- pause() - Method in class com.bomber7.core.screens.BomberScreen
- PAUSE - Enum constant in enum class com.bomber7.utils.ScreenType
-
The pause screen that appears when the game is paused.
- pauseFightMusic() - Method in class com.bomber7.utils.SoundManager
-
Pauses fight music.
- PauseScreen - Class in com.bomber7.core.screens
-
Pause screen.
- PauseScreen(Game) - Constructor for class com.bomber7.core.screens.PauseScreen
-
Constructs a new PauseScreen associated with the given game.
- PEACEFUL - Enum constant in enum class com.bomber7.utils.PlayerStrategy
-
Passive AI that does not attack others.
- PLACED - Enum constant in enum class com.bomber7.core.model.square.BombState
-
The bomb is currently active and ticking down.
- play(SoundType) - Method in class com.bomber7.utils.SoundManager
-
Play a sound.
- playDeadSound() - Method in class com.bomber7.core.model.entities.Character
-
Play death sound.
- Player - Class in com.bomber7.core.model.entities
-
Class Player.
- Player(String, LevelMap, int, int, int, int, GameCharacter) - Constructor for class com.bomber7.core.model.entities.Player
-
Player Constructor.
- PLAYER_SELECTOR_HEIGHT - Static variable in class com.bomber7.utils.Dimensions
-
The height of the PlayerSelector component.
- PLAYER_SELECTOR_WIDTH - Static variable in class com.bomber7.utils.Dimensions
-
The width of the PlayerSelector component.
- PLAYER_SETUP - Enum constant in enum class com.bomber7.utils.ScreenType
-
The player setup screen where users can configure player settings.
- PlayerBlueprint - Class in com.bomber7.utils
-
Represents the player a user can configure in the
PlayerSelector
widget. - PlayerBlueprint(String) - Constructor for class com.bomber7.utils.PlayerBlueprint
-
Instantiates the PlayerBlueprint with a name and default values for strategy (Human) and skin (Student).
- PlayerBlueprintObservable - Class in com.bomber7.utils
-
Observable wrapper of
PlayerBlueprint
. - PlayerBlueprintObservable() - Constructor for class com.bomber7.utils.PlayerBlueprintObservable
-
Constructor that initializes a null playerBlueprint instance.
- PlayerConfig - Class in com.bomber7.core.controller
-
Represents the key bindings configuration for a player.
- PlayerConfig(int, int, int, int, int, int) - Constructor for class com.bomber7.core.controller.PlayerConfig
-
Constructs a new PlayerConfig with given key codes.
- PlayerConfig(PlayerConfig) - Constructor for class com.bomber7.core.controller.PlayerConfig
-
Constructs a new PlayerConfig by making a deep copy of another PlayerConfig.
- PlayerConfig(Map<Controls, Integer>) - Constructor for class com.bomber7.core.controller.PlayerConfig
-
Constructs a new PlayerConfig with given keyBinding map.
- PlayerScoreBoard - Class in com.bomber7.core.components
-
Represents a scoreboard for a player in the Bomber7 game.
- PlayerScoreBoard(Player) - Constructor for class com.bomber7.core.components.PlayerScoreBoard
-
The player's scoreboard.
- PlayerSelectionScreen - Class in com.bomber7.core.screens
-
Screen where the user adds or removes players to the game he is creating.
- PlayerSelectionScreen(Game) - Constructor for class com.bomber7.core.screens.PlayerSelectionScreen
-
Constructs a new LevelSetupScreen associated with the given game.
- PlayerSelector - Class in com.bomber7.core.components
-
A component used in
PlayerSelectionScreen
to add / remove / setup players in a game. - PlayerSelector(ResourceManager, PlayerBlueprintObservable, int) - Constructor for class com.bomber7.core.components.PlayerSelector
-
Constructs a new
PlayerSelector
which provides a UI component for configuring a player's settings. - PlayerStrategy - Enum Class in com.bomber7.utils
-
Represents the different strategies that a BomberGame player's can use.
- playExplosionSound() - Method in class com.bomber7.core.model.square.Bomb
-
Play explosion sound.
- playFightMusic() - Method in class com.bomber7.utils.SoundManager
-
Play or resume fight music from saved position.
- playMenuMusic(SoundType) - Method in class com.bomber7.utils.SoundManager
-
Play menu or general music.
- playSong() - Method in class com.bomber7.core.model.entities.Player
-
Play song.
- previous() - Method in enum class com.bomber7.utils.GameCharacter
-
Returns the previous character in the enum order, looping to the last if necessary.
- previous() - Method in enum class com.bomber7.utils.Language
-
Returns the previous language in the enum order, looping to the last if necessary.
- previous() - Method in enum class com.bomber7.utils.PlayerStrategy
-
Returns the previous strategy in the list, looping to the last if necessary.
- PRO - Enum constant in enum class com.bomber7.utils.PlayerStrategy
-
Advanced AI (TBD).
- processInput() - Method in class com.bomber7.core.screens.GameScreen
-
Processes the Escape key in order to pause the game.
- processKeys() - Method in class com.bomber7.core.controller.HumanController
-
Processes input keys to control the player's movement.
- ProjectPaths - Class in com.bomber7.utils
-
Utility class for managing project paths.
R
- refresh() - Method in class com.bomber7.core.components.PlayerScoreBoard
-
Update view accordingly to current player state.
- refresh(Subject) - Method in class com.bomber7.core.components.PlayerSelector
-
Refreshes the view of this
PlayerSelector
when the Subject its subscribed to is modified. - refresh(Subject) - Method in interface com.bomber7.core.model.Observer
-
Called by the subject to notify this observer of a state change.
- refresh(Subject) - Method in class com.bomber7.core.screens.MapSelectionScreen
- refresh(Subject) - Method in class com.bomber7.core.screens.PlayerSelectionScreen
- registerObserver(Observer) - Method in interface com.bomber7.core.model.Subject
-
Registers an observer to receive updates.
- removeOneLife() - Method in class com.bomber7.core.model.entities.Character
-
Decreases the character's life by one.
- render(float) - Method in class com.bomber7.core.screens.BomberScreen
- render(float) - Method in class com.bomber7.core.screens.GameScreen
-
Update the game screen for each frame.
- reset() - Method in class com.bomber7.core.model.entities.Character
-
Resets a character to its initial state (lives, position, etc...).
- reset() - Method in class com.bomber7.core.model.entities.Player
-
Reset method to add bomb type and bomb number resetting to the super method reset.
- reset() - Method in class com.bomber7.core.model.GameCandidate
-
Resets the game candidate to its "empty" state.
- resetFightMusic() - Method in class com.bomber7.utils.SoundManager
-
Resets the fight music.
- resetModifications() - Method in class com.bomber7.core.ConfigManager
-
Discard the changes made in the unsavedConfig.
- resize(int, int) - Method in class com.bomber7.core.screens.BomberScreen
- ResourceManager - Class in com.bomber7.core
-
A singleton manager responsible for loading, saving, and managing the resources used in the game (textures, skin, bundles).
- resources - Variable in class com.bomber7.core.screens.BomberScreen
-
Reference to the ResourceManager instance for easier resources access.
- result(Object) - Method in class com.bomber7.core.components.BomberDialog
- resume() - Method in class com.bomber7.core.BomberGame
-
Resumes the game after being paused.
- resume() - Method in class com.bomber7.core.screens.BomberScreen
- RIGHT - Enum constant in enum class com.bomber7.utils.Controls
-
Move right action.
- ROTATION_180 - Static variable in class com.bomber7.core.model.texture.ElementTexture
-
Rotation of 180 degrees.
- ROTATION_90 - Static variable in class com.bomber7.core.model.texture.ElementTexture
-
Rotation of 90 degrees.
- ROTATION_MINUS_90 - Static variable in class com.bomber7.core.model.texture.ElementTexture
-
Rotation of -90 degrees.
S
- save() - Method in class com.bomber7.core.ConfigManager
-
Saves the current config into CONFIG_FILE.
- saveConfig() - Method in class com.bomber7.core.controller.Config
-
Saves the current configuration to a file.
- saveModifications() - Method in class com.bomber7.core.ConfigManager
-
Saves the modifications made to
modifiableConfig
intoconfig
. - SCALE - Static variable in class com.bomber7.utils.Constants
-
Scale factor for batch elements (map, characters, etc...).
- Score - Class in com.bomber7.utils
-
A utility class representing the score points to credit or debit to the player when specific game events occur.
- SCOREBOARD - Enum constant in enum class com.bomber7.utils.ScreenType
-
The scoreboard screen shown after each round.
- ScoreBoardScreen - Class in com.bomber7.core.screens
-
Represents the scoreboard screen in the Bomber7 game.
- ScoreBoardScreen(Game) - Constructor for class com.bomber7.core.screens.ScoreBoardScreen
-
Initializes the screen.
- ScreenManager - Class in com.bomber7.core
-
Singleton class responsible for managing screen transitions in the game.
- ScreenType - Enum Class in com.bomber7.utils
-
Represents the various screens or states of the game user interface.
- searchMapFilesRootDirectory(String) - Static method in class com.bomber7.core.model.map.LevelMapFactory
-
Searches for a subdirectory inside "assets/maps" that contains a file with the specified name.
- setActivateBomb(int) - Method in class com.bomber7.core.controller.Config
-
Set the key for activating a bomb.
- setCharacter(GameCharacter) - Method in class com.bomber7.utils.PlayerBlueprint
-
Skin (character) setter.
- setCharacter(GameCharacter) - Method in class com.bomber7.utils.PlayerBlueprintObservable
-
Wrapper of
PlayerBlueprint.setCharacter(GameCharacter)
. - setDown(int) - Method in class com.bomber7.core.controller.Config
-
Set the key for moving down.
- setDropBomb(int) - Method in class com.bomber7.core.controller.Config
-
Set the key for dropping a bomb.
- setGlobalVolume(int) - Method in class com.bomber7.utils.Config
-
Sets the global volume level.
- setKeyBinding(Controls, int) - Method in class com.bomber7.core.controller.PlayerConfig
-
Sets the key code for the specified control action.
- setLanguage(Language) - Method in class com.bomber7.utils.Config
-
Sets the language preference.
- setLeft(int) - Method in class com.bomber7.core.controller.Config
-
Set the key for moving left.
- setMap(LevelMap) - Method in class com.bomber7.core.model.entities.Character
-
Sets the character's map to a new one.
- setMapElement(MapElement) - Method in class com.bomber7.core.model.square.Square
-
Sets the map element associated with this square.
- setMusicVolume(int) - Method in class com.bomber7.utils.Config
-
Sets the music volume level.
- setName(String) - Method in class com.bomber7.utils.PlayerBlueprint
-
Name setter.
- setName(String) - Method in class com.bomber7.utils.PlayerBlueprintObservable
-
Wrapper of
PlayerBlueprint.setName(String)
. - setNbBomb(int) - Method in class com.bomber7.core.model.entities.Player
-
Player number of bomb playable setter.
- setOnResult(Consumer<Boolean>) - Method in class com.bomber7.core.components.BomberDialog
-
Sets a callback that will be triggered with the result of the dialog.
- setPlayerConfig(PlayerConfig, int) - Method in class com.bomber7.utils.Config
-
Sets the player config for player
player
. - setPlayerControl(int, Controls, int) - Method in class com.bomber7.utils.Config
-
Rebinds the action
control
to the givenkeycode
for playerplayerIndex
. - setPower(int) - Method in class com.bomber7.core.model.entities.Player
-
Sets the power of the player's bombs.
- setRight(int) - Method in class com.bomber7.core.controller.Config
-
Set the key for moving right.
- setRounds(int) - Method in class com.bomber7.core.model.GameCandidate
-
Setter for rounds.
- setSpeed(int) - Method in class com.bomber7.core.model.entities.Character
-
Character speed setter.
- setStandingStill() - Method in class com.bomber7.core.model.entities.Character
-
Caracter is standing still.
- setStrategy(PlayerStrategy) - Method in class com.bomber7.utils.PlayerBlueprint
-
Strategy setter.
- setStrategy(PlayerStrategy) - Method in class com.bomber7.utils.PlayerBlueprintObservable
-
Wrapper of
PlayerBlueprint.setStrategy(PlayerStrategy)
. - setTextureName(String) - Method in class com.bomber7.core.model.texture.ElementTexture
-
Sets the name of the texture for this element.
- SETTINGS - Enum constant in enum class com.bomber7.utils.ScreenType
-
The settings screen where users can adjust game options.
- SettingsScreen - Class in com.bomber7.core.screens
-
Settings screen where the user can configure game options such as volume levels, key bindings, and player controls.
- SettingsScreen(Game) - Constructor for class com.bomber7.core.screens.SettingsScreen
-
Constructs a new SettingsScreen associated with the given game.
- setTitle(Label, int) - Method in class com.bomber7.core.components.BomberTable
-
Adds a title label to this table.
- setTriggerBombsDropped(List<TriggerBomb>) - Method in class com.bomber7.core.model.entities.Player
-
Sets the List of TriggerBombs dropped by the player.
- setTypeBomb(BombType) - Method in class com.bomber7.core.model.entities.Player
-
Player type of bomb playable setter.
- setUp(int) - Method in class com.bomber7.core.controller.Config
-
Sets the key for moving up.
- setupDoubleButtons(Button, Button, int) - Method in class com.bomber7.core.components.BomberTable
-
Adds two buttons side by side to the table.
- show() - Method in class com.bomber7.core.screens.BomberScreen
- show() - Method in class com.bomber7.core.screens.GameScreen
- show() - Method in class com.bomber7.core.screens.KeyBindingScreen
- show() - Method in class com.bomber7.core.screens.MainMenuScreen
- show() - Method in class com.bomber7.core.screens.PauseScreen
- show() - Method in class com.bomber7.core.screens.SettingsScreen
- show(Stage) - Method in class com.bomber7.core.components.BomberDialog
- show(Stage, Controls) - Method in class com.bomber7.core.components.InputDialog
-
A custom show function that, additionally to calling the super show method, calls startListening and makes the dialog appear instantly instead of having a fade in.
- showPreviousScreen(boolean, boolean) - Method in class com.bomber7.core.ScreenManager
-
A method that pops and shows the previous screen in the stack.
- showScreen(ScreenType, boolean, boolean, Object...) - Method in class com.bomber7.core.ScreenManager
-
Displays a new screen based on the specified
ScreenType
. - SoundManager - Class in com.bomber7.utils
-
SoundManager manages sound effects used in the game.
- SoundType - Enum Class in com.bomber7.utils
-
Enum representing different types of sounds used in the game.
- SpawnPoint - Class in com.bomber7.utils
-
List of spawnpoint for each player.
- SPEED - Enum constant in enum class com.bomber7.utils.BonusType
-
Speed bonus.
- Square - Class in com.bomber7.core.model.square
-
Represents a square in the game, which can be a wall, a bomb, or any other future map element.
- Square(String) - Constructor for class com.bomber7.core.model.square.Square
-
Constructs a new Square with the specified texture file path and texture ID.
- Square(String, boolean, boolean, boolean) - Constructor for class com.bomber7.core.model.square.Square
-
Constructs a new Square with the specified sprite file path and texture ID.
- Square(String, MapElement) - Constructor for class com.bomber7.core.model.square.Square
-
Constructs a new Square with the specified texture file path and map element.
- Square(String, MapElement, boolean, boolean, boolean) - Constructor for class com.bomber7.core.model.square.Square
-
Constructs a new Square with the specified texture file path and map element.
- STANDING_STILL - Enum constant in enum class com.bomber7.core.model.entities.CharacterState
-
The character is not moving.
- start() - Method in class com.bomber7.core.BomberGame
-
Launches the game.
- stop() - Method in class com.bomber7.core.BomberGame
-
Stops the game.
- STUDENT - Enum constant in enum class com.bomber7.utils.GameCharacter
-
Default character.
- Subject - Interface in com.bomber7.core.model
-
Subject in the Observer design pattern.
- SUICIDE - Static variable in class com.bomber7.utils.Score
-
Points deducted when the player suicides.
T
- TEST - Enum constant in enum class com.bomber7.utils.GameCharacter
-
Default character.
- TEXTURE_PREFIX - Static variable in class com.bomber7.core.model.square.TimeBomb
-
The texture name prefix associated with the TimeBomb.
- TEXTURE_PREFIX - Static variable in class com.bomber7.core.model.square.TriggerBomb
-
The texture name prefix associated with the TriggerBomb.
- TEXTURE_SIZE - Static variable in class com.bomber7.utils.Constants
-
The size in pixels of map textures.
- tick() - Method in class com.bomber7.core.model.Game
-
Updates the game state.
- tick(LevelMap, float) - Method in class com.bomber7.core.model.square.TimeBomb
-
Decreases the countdown timer based on the time delta.
- TIME - Enum constant in enum class com.bomber7.core.model.square.BombType
-
Time-based bomb.
- TimeBomb - Class in com.bomber7.core.model.square
-
The Timebomb class is a special type of Bomb that has a countdown timer.
- TimeBomb(int, int, int, Character) - Constructor for class com.bomber7.core.model.square.TimeBomb
-
Constructs a TimeBomb with the specified explosion power, sprite file path and timer.
- toggle(boolean) - Method in class com.bomber7.core.components.DisableableTextButton
-
Enables or disables the component based on the given expression.
- toString() - Method in class com.bomber7.core.model.GameCandidate
- toString() - Method in class com.bomber7.core.model.map.LevelMap
- toString() - Method in class com.bomber7.core.model.square.BreakableWall
- toString() - Method in class com.bomber7.core.model.square.Square
- toString() - Method in class com.bomber7.core.model.square.UnbreakableWall
- toString() - Method in class com.bomber7.utils.PlayerBlueprint
-
Returns a string that describes the player with Name|Strategy|Character syntax.
- trigger(LevelMap) - Method in class com.bomber7.core.model.square.TriggerBomb
-
Manually triggers the bomb to activate its explosion on the specified map.
- TRIGGER - Enum constant in enum class com.bomber7.core.model.square.BombType
-
Trigger-based bomb.
- TRIGGER_BOMB - Enum constant in enum class com.bomber7.utils.BonusType
-
A trigger bomb.
- TRIGGER_BOMB - Static variable in class com.bomber7.core.model.square.Bomb
-
TRIGGER_BOMB is a bomb that can be manually triggered by the player.
- TriggerBomb - Class in com.bomber7.core.model.square
-
TriggerBomb is a type of bomb that can be manually activated by the player.
- TriggerBomb(int, int, int, Character) - Constructor for class com.bomber7.core.model.square.TriggerBomb
-
Constructs a TriggerBomb with the specified explosion, power, sprite file path and owner.
U
- UnbreakableWall - Class in com.bomber7.core.model.square
-
Represents an unbreakable wall in the game.
- UnbreakableWall(String) - Constructor for class com.bomber7.core.model.square.UnbreakableWall
-
Constructs an UnbreakbleWall without specifying flip options.
- UnbreakableWall(String, boolean, boolean, boolean) - Constructor for class com.bomber7.core.model.square.UnbreakableWall
-
Constructs an UnbreakableWall with the specified texture file path.
- uncheck() - Method in class com.bomber7.core.components.MapCheckBox
-
Unchecks the checkbox.
- UP - Enum constant in enum class com.bomber7.utils.Controls
-
Move upwards action.
- update() - Method in class com.bomber7.core.BomberGame
-
Function that is being called every render() of GameScreen to update the game.
- update(float) - Method in class com.bomber7.core.views.ViewEffect
-
Returns the effect associated with this ViewEffect.
- updateLanguage() - Method in class com.bomber7.core.ResourceManager
-
Updates the I18N bundle object accordingly to Config Manager's language.
- updateMusicVolume() - Method in class com.bomber7.utils.SoundManager
-
Updates music volume.
- updateSaveButtonState() - Method in class com.bomber7.core.screens.SettingsScreen
-
Updates the state of the "save" button.
V
- valueOf(String) - Static method in enum class com.bomber7.core.model.entities.CharacterState
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.bomber7.core.model.square.BombState
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.bomber7.core.model.square.BombType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.bomber7.utils.BonusType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.bomber7.utils.Controls
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.bomber7.utils.EffectType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.bomber7.utils.GameCharacter
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.bomber7.utils.GameMap
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.bomber7.utils.Language
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.bomber7.utils.PlayerStrategy
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.bomber7.utils.ScreenType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.bomber7.utils.SoundType
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class com.bomber7.core.model.entities.CharacterState
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.bomber7.core.model.square.BombState
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.bomber7.core.model.square.BombType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.bomber7.utils.BonusType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.bomber7.utils.Controls
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.bomber7.utils.EffectType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.bomber7.utils.GameCharacter
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.bomber7.utils.GameMap
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.bomber7.utils.Language
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.bomber7.utils.PlayerStrategy
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.bomber7.utils.ScreenType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.bomber7.utils.SoundType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- ViewCharacter - Class in com.bomber7.core.views
-
A view component for displaying a character in our game.
- ViewCharacter(Character, ResourceManager) - Constructor for class com.bomber7.core.views.ViewCharacter
-
Constructs a new ViewCharacter instance.
- ViewEffect - Class in com.bomber7.core.views
-
An actor used in
ViewMap
to draw animated game effects. - ViewEffect(Effect) - Constructor for class com.bomber7.core.views.ViewEffect
-
Constructs a ViewEffect with the specified effect.
- ViewMap - Class in com.bomber7.core.views
-
The view that shows the game map in GameScreen.
- ViewMap(LevelMap, List<ViewCharacter>, ResourceManager) - Constructor for class com.bomber7.core.views.ViewMap
-
Constructs a new ViewMap with the specified map grid and resource manager.
- VOLUME_CONVERT_RATIO - Static variable in class com.bomber7.utils.Constants
-
Sound convert ratio to convert slider value to libgdx volume value.
W
- Wall - Class in com.bomber7.core.model.square
-
Abstract class representing a wall in the game.
- Wall(String) - Constructor for class com.bomber7.core.model.square.Wall
-
Constructs a Wall without specifying flip options.
- Wall(String, boolean, boolean, boolean) - Constructor for class com.bomber7.core.model.square.Wall
-
Constructs a Wall with the specified texture file path.
- WIN - Static variable in class com.bomber7.utils.Score
-
Points awarded when the player wins.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form