Arcade Shooter
Public Member Functions | List of all members
Sample::Game Class Reference

Class for sample game. More...

#include <Game.h>

Inheritance diagram for Sample::Game:
ShooterLibrary::Game KatanaEngine::Game

Public Member Functions

virtual std::string GetName () const
 Gets the name of the game. More...
 
virtual void LoadContent (ResourceManager *pResourceManager)
 Called when resources need to be loaded. More...
 
- Public Member Functions inherited from ShooterLibrary::Game
virtual void Draw (SpriteBatch *pSpriteBatch)
 Called when the game determines it is time to draw a frame. More...
 
- Public Member Functions inherited from KatanaEngine::Game
virtual int Run ()
 Runs the game instance. More...
 
virtual ResourceManagerGetResourceManager () const
 Gets a pointer to the ResourceManager, for loading and managing resources. More...
 
virtual ScreenManagerGetScreenManager () const
 Gets a pointer to the ScreenManager, for managing game screens. More...
 
virtual ParticleManagerGetParticleManager () const
 Gets a pointer to the ParticleManager, for managing particle effects. More...
 
virtual SpriteBatchGetSpriteBatch () const
 Gets a pointer to the SpriteBatch, for rendering. More...
 
virtual void LoadContent (ResourceManager *pResourceManager)
 Called when resources need to be loaded. More...
 
virtual void UnloadContent ()
 Called when resources need to be unloaded. Override this method to unload any game-specific resources.
 
virtual void Update (const GameTime *pGameTime)
 Called when the game has determined that game logic needs to be processed. More...
 
virtual void Draw (SpriteBatch *pSpriteBatch)
 Called when the game determines it is time to draw a frame. More...
 
virtual void Quit ()
 Quits the game.
 

Additional Inherited Members

- Static Public Member Functions inherited from KatanaEngine::Game
static int GetScreenWidth ()
 Gets the screen width in pixels. More...
 
static int GetScreenHeight ()
 Gets the screen width in pixels. More...
 
static Vector2 GetScreenCenter ()
 Gets the screen size in pixels. More...
 
- Protected Member Functions inherited from KatanaEngine::Game
virtual void SetResourceDirectory (const std::string &path)
 Sets the location of the directory where the game's resources are stored. More...
 
virtual void SetTargetFramesPerSecond (int const frames)
 Sets the target frame rate for the game. More...
 
virtual void SetFrameCounterFont (Font *pFont)
 Sets the font for the frame counter. More...
 
virtual void InitializeScreenManager ()
 Initializes the game's ScreenManager.
 
virtual void InitializeParticleManager ()
 Initializes the game's ParticleManager.
 
virtual void DisplayFrameRate ()
 Displays the game's current frame rate.
 
virtual void SetFullScreen (bool isFullScreen)
 Sets the game to display in fullscreen mode.
 
virtual void SetOpenGLFlag ()
 Sets the OpenGL flag, which forces OpenGL rendering.
 
virtual void ResetGameTime ()
 Resets the game's timing values.
 
- Static Protected Member Functions inherited from KatanaEngine::Game
static void SetScreenResolution (int width, int height)
 Sets the screen resolution. More...
 
static void SetWindowTitle (std::string title)
 Sets the title of the game window. More...
 

Detailed Description

Class for sample game.

Member Function Documentation

◆ GetName()

virtual std::string Sample::Game::GetName ( ) const
inlinevirtual

Gets the name of the game.

Returns
The name of the game.

Implements KatanaEngine::Game.

◆ LoadContent()

virtual void Sample::Game::LoadContent ( ResourceManager *  pResourceManager)
virtual

Called when resources need to be loaded.

Parameters
pResourceManagerThe game's resource manager, used for loading and managing game resources.

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