|
My Project
|
The Level2Scene class sets up and manages the second level of the game. More...
#include <Level2Scene.h>
Additional Inherited Members | |
Public Member Functions inherited from BaseScene | |
| BaseScene (SDL_Renderer *renderer, SDL_Window *window) | |
| Constructor for BaseScene. | |
| virtual | ~BaseScene () override |
| Destructor for BaseScene. | |
| void | Init () override |
| Initializes the scene. | |
| void | StartUp () override |
| Starts up the scene. | |
| void | Cleanup () override |
| Cleans up the scene. | |
| bool | IsCompleted () const override |
| Checks if the scene is completed. | |
| bool | IsWin () const override |
| Checks if the player has won the scene. | |
| void | HandleInput (float deltaTime) override |
| Handles player input for the scene. | |
| void | Render () override |
| Renders all entities in the scene. | |
| void | Update (float deltaTime) override |
| Updates the state of the scene. | |
Protected Attributes inherited from BaseScene | |
| std::vector< std::shared_ptr< EnemyGameEntity > > | enemies |
| std::vector< std::shared_ptr< FoodGameEntity > > | foods |
| std::unique_ptr< PlayerGameEntity > | mainCharacter |
| std::vector< std::shared_ptr< GroundGameEntity > > | Grounds |
| std::unique_ptr< BackGroundGameEntity > | backGround |
| bool | mRun {true} |
| float | mPoints {0.0f} |
| SDL_Window * | mWindow = nullptr |
| SDL_Renderer * | mRenderer = nullptr |
| bool | isCompleted = false |
| bool | isWin = false |
The Level2Scene class sets up and manages the second level of the game.
Inherits from BaseScene and implements the SetupLevel method to create a specific game level, including initializing enemies and food items at positions defined in a configuration file.