Space Fighter
A "shmup" game for Computer Programming C++
Loading...
Searching...
No Matches
Level02 Class Reference

The second level of the game. More...

#include <Level02.h>

Inheritance diagram for Level02:

Public Member Functions

 Level02 ()
 Instantiate a level object.
 
virtual ~Level02 ()
 
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 >
TGetClosestObject (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 CollisionManagerGetCollisionManager ()
 Get a pointer to the collision manager.
 
virtual GameplayScreenGetGameplayScreen () const
 Get a pointer to the gameplay screen.
 
virtual void SetBackgroundAudio (AudioSample *pAudio)
 Set the background audio for the level.
 
virtual AudioSampleGetBackgroundAudio ()
 Get the background audio for the level.
 

Detailed Description

The second level of the game.

Definition at line 6 of file Level02.h.

Constructor & Destructor Documentation

◆ Level02()

Level02::Level02 ( )
inline

Instantiate a level object.

Definition at line 12 of file Level02.h.

◆ ~Level02()

virtual Level02::~Level02 ( )
inlinevirtual

Definition at line 13 of file Level02.h.

Member Function Documentation

◆ LoadContent()

void Level02::LoadContent ( ResourceManager & resourceManager)
virtual

Load the content for the level, including game objects and resources.

Parameters
resourceManagerA reference to the game's resource manager, used for loading and managing game assets (resources).

Reimplemented from Level.

Definition at line 7 of file Level02.cpp.


The documentation for this class was generated from the following files: