![]() |
Space Fighter
A "shmup" game for Computer Programming C++
|
The first level of the game. More...
#include <Level01.h>

Public Member Functions | |
| Level01 () | |
| Instantiate a level object. | |
| virtual | ~Level01 () |
| virtual void | LoadContent (ResourceManager &resourceManager) |
| Load the content for the level, including game objects and resources. | |
Public Member Functions inherited from Level | |
| Level () | |
| Instantiate a level object. | |
| virtual | ~Level () |
| virtual void | UnloadContent () |
| Unload the content for the level. | |
| virtual void | HandleInput (const InputState &input) |
| Handle input for the level. | |
| virtual void | Update (const GameTime &gameTime) |
| Update the level. | |
| virtual void | Draw (SpriteBatch &spriteBatch) |
| Render the level, and all of the game objects within it. | |
| virtual void | AddGameObject (GameObject *pGameObject) |
| Add a game object to the level. This object will be updated, rendered, and checked for collisions. | |
| virtual void | UpdateSectorPosition (GameObject *pGameObject) |
| Update the position of a game object within the level, based on its collision sector (only objects within the same or adjacent sectors will be checked for collisions). | |
| virtual void | SetGameplayScreen (GameplayScreen *pGameplayScreen) |
| Set a reference to the gameplay screen. | |
| virtual void | SpawnExplosion (GameObject *pExplodingObject) |
| Spawn an explosion at a specific position. | |
| virtual void | SetBackground (Texture *pBackground) |
| Set the background texture for the level. | |
| virtual float | GetAlpha () const |
| Get the alpha value of the screen. | |
| virtual bool | IsScreenTransitioning () const |
| Check if the screen is transitioning. | |
| template<typename T > | |
| T * | GetClosestObject (const Vector2 position, const float range) |
| Get a pointer to the closest object of a specific type. | |
Additional Inherited Members | |
Protected Member Functions inherited from Level | |
| virtual CollisionManager * | GetCollisionManager () |
| Get a pointer to the collision manager. | |
| virtual GameplayScreen * | GetGameplayScreen () const |
| Get a pointer to the gameplay screen. | |
| virtual void | SetBackgroundAudio (AudioSample *pAudio) |
| Set the background audio for the level. | |
| virtual AudioSample * | GetBackgroundAudio () |
| Get the background audio for the level. | |
|
virtual |
Load the content for the level, including game objects and resources.
| resourceManager | A reference to the game's resource manager, used for loading and managing game assets (resources). |
Reimplemented from Level.
Definition at line 7 of file Level01.cpp.