Leistungsstarkes Game Framework
The game framework based on game framework by Woei Kae Chen
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
game_framework::CGameState Class Referenceabstract

#include <gamecore.h>

Inheritance diagram for game_framework::CGameState:
game_framework::CGameStateInit game_framework::CGameStateOver game_framework::CGameStateRun

Public Member Functions

 CGameState (CGame *g)
 
void OnDraw ()
 
void OnCycle ()
 
virtual ~CGameState ()
 
virtual void OnBeginState ()
 
virtual void OnInit ()
 
virtual void OnKeyDown (UINT, UINT, UINT)
 
virtual void OnKeyUp (UINT, UINT, UINT)
 
virtual void OnLButtonDown (UINT nFlags, CPoint point)
 
virtual void OnLButtonUp (UINT nFlags, CPoint point)
 
virtual void OnMouseMove (UINT nFlags, CPoint point)
 
virtual void OnRButtonDown (UINT nFlags, CPoint point)
 
virtual void OnRButtonUp (UINT nFlags, CPoint point)
 

Protected Member Functions

void GotoGameState (int state)
 
void ShowInitProgress (int percent, string message)
 
virtual void OnMove ()
 
virtual void OnShow ()=0
 

Protected Attributes

CGamegame
 
CMovingBitmap loadingBitmap
 

Constructor & Destructor Documentation

◆ CGameState()

game_framework::CGameState::CGameState ( CGame g)

◆ ~CGameState()

virtual game_framework::CGameState::~CGameState ( )
inlinevirtual

Member Function Documentation

◆ GotoGameState()

void game_framework::CGameState::GotoGameState ( int  state)
protected

◆ OnBeginState()

virtual void game_framework::CGameState::OnBeginState ( )
inlinevirtual

◆ OnCycle()

void game_framework::CGameState::OnCycle ( )

◆ OnDraw()

void game_framework::CGameState::OnDraw ( )

◆ OnInit()

virtual void game_framework::CGameState::OnInit ( )
inlinevirtual

◆ OnKeyDown()

virtual void game_framework::CGameState::OnKeyDown ( UINT  ,
UINT  ,
UINT   
)
inlinevirtual

Reimplemented in game_framework::CGameStateRun.

◆ OnKeyUp()

virtual void game_framework::CGameState::OnKeyUp ( UINT  ,
UINT  ,
UINT   
)
inlinevirtual

◆ OnLButtonDown()

virtual void game_framework::CGameState::OnLButtonDown ( UINT  nFlags,
CPoint  point 
)
inlinevirtual

◆ OnLButtonUp()

virtual void game_framework::CGameState::OnLButtonUp ( UINT  nFlags,
CPoint  point 
)
inlinevirtual

Reimplemented in game_framework::CGameStateRun.

◆ OnMouseMove()

virtual void game_framework::CGameState::OnMouseMove ( UINT  nFlags,
CPoint  point 
)
inlinevirtual

Reimplemented in game_framework::CGameStateRun.

◆ OnMove()

virtual void game_framework::CGameState::OnMove ( )
inlineprotectedvirtual

◆ OnRButtonDown()

virtual void game_framework::CGameState::OnRButtonDown ( UINT  nFlags,
CPoint  point 
)
inlinevirtual

Reimplemented in game_framework::CGameStateRun.

◆ OnRButtonUp()

virtual void game_framework::CGameState::OnRButtonUp ( UINT  nFlags,
CPoint  point 
)
inlinevirtual

Reimplemented in game_framework::CGameStateRun.

◆ OnShow()

virtual void game_framework::CGameState::OnShow ( )
protectedpure virtual

◆ ShowInitProgress()

void game_framework::CGameState::ShowInitProgress ( int  percent,
string  message 
)
protected

Member Data Documentation

◆ game

CGame* game_framework::CGameState::game
protected

◆ loadingBitmap

CMovingBitmap game_framework::CGameState::loadingBitmap
protected

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