dxf::Model Class Reference

#include <dxf_model.h>

Inheritance diagram for dxf::Model:

dxf::StateManager List of all members.

Public Member Functions

void Load ()
void Unload ()
void OnFrameMove (IDirect3DDevice9 *pd3dDevice, double fTime, float fElapsedTime, void *pUserContext)
void RenderPre2D (double fTime, float fElapsedTime)
void Render3D (double fTime, float fElapsedTime)
void Render2D (double fTime, float fElapsedTime)

Static Public Member Functions

static Model *const Instance ()

Protected Member Functions

 Model ()
 Model (const Model &)
Modeloperator= (const Model &)

Detailed Description

Model can be thought of as the top-level state that the program is in while runnning, the program switches out of model when it exits back to the OS.

Model can also be thought of as a state machine container, a StateManager if you will.

Model is the top level location for handling program data and logic.

Definition at line 41 of file dxf_model.h.


Constructor & Destructor Documentation

dxf::Model::Model (  )  [protected]

Definition at line 40 of file dxf_model.cpp.

dxf::Model::Model ( const Model  )  [protected]


Member Function Documentation

Model *const dxf::Model::Instance (  )  [static]

Definition at line 43 of file dxf_model.cpp.

Referenced by dxf::DXFChangeState(), dxf::DXFRegisterState(), dxf::DXFRender2D(), dxf::DXFRender3D(), dxf::DXFRenderPre2D(), dxf::GetCurrentGameState(), dxf::View::OnCreateDevice(), dxf::View::OnDestroyDevice(), OnFrameMove(), dxf::View::OnFrameRender(), dxf::OnGameStateGUIEvent(), dxf::View::OnLostDevice(), and dxf::View::OnResetDevice().

void dxf::Model::Load (  ) 

Reimplemented from dxf::StateManager.

Definition at line 48 of file dxf_model.cpp.

References dxf::StateManager::Load(), and OnFrameMove().

Referenced by dxf::Game::Load().

void dxf::Model::OnFrameMove ( IDirect3DDevice9 *  pd3dDevice,
double  fTime,
float  fElapsedTime,
void *  pUserContext 
)

Handles the Update phase by polling input, updating the console, and then calling update on the current state.

Definition at line 58 of file dxf_model.cpp.

References dxf::DXFPollInput(), dxf::DXFUpdateConsole(), dxf::StateManager::pCurrentState, dxf::StateManager::Update(), and dxf::GameState::Update().

Referenced by Load().

Model* dxf::Model::operator= ( const Model  )  [protected]

void dxf::Model::Render2D ( double  fTime,
float  fElapsedTime 
)

Passes the render calls to the current state

Definition at line 74 of file dxf_model.cpp.

References dxf::Console::GetFont(), dxf::gFPS, dxf::Console::Instance(), dxf::StateManager::pCurrentState, dxf::Font::Render2D(), and dxf::GameState::Render2D().

Referenced by dxf::DXFRender2D().

void dxf::Model::Render3D ( double  fTime,
float  fElapsedTime 
)

Passes the render calls to the current state

Definition at line 70 of file dxf_model.cpp.

References dxf::StateManager::pCurrentState, and dxf::GameState::Render3D().

Referenced by dxf::DXFRender3D().

void dxf::Model::RenderPre2D ( double  fTime,
float  fElapsedTime 
)

Passes the render calls to the current state

Definition at line 66 of file dxf_model.cpp.

References dxf::StateManager::pCurrentState, and dxf::GameState::RenderPre2D().

Referenced by dxf::DXFRenderPre2D().

void dxf::Model::Unload (  ) 

Reimplemented from dxf::StateManager.

Definition at line 54 of file dxf_model.cpp.

References dxf::StateManager::Unload().

Referenced by dxf::Game::Run().


The documentation for this class was generated from the following files:
Generated on Fri Aug 18 12:01:28 2006 for DXFramework by  doxygen 1.4.7