MercuryScreen Class Reference

[actor] Base Screen More...

#include <MercuryScreen.h>

Inheritance diagram for MercuryScreen:

Inheritance graph
[legend]
Collaboration diagram for MercuryScreen:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MercuryScreen (const MercuryScreen &MercuryScreen)
 MercuryScreen ()
 MercuryScreen (const MString &name)
virtual ~MercuryScreen ()
virtual void Init ()
virtual void Update (const float dTime)
 [internal] Update (call this update last when abstracting because Update can destroy the object)
virtual void Message (int Message, PStack &data, const MString &name)
 Receive message (When subscribing to messages, you receive them via this command).
virtual void Render ()
virtual bool RemoveObject (MercuryObject *object, bool bAllowDelete=true)
void AddPerspObject (MercuryObject *object, bool bParentDelete=false)
void AddOrthoObject (MercuryObject *object, bool bParentDelete=false)
virtual MercuryObjectSpawn (const MString &sClass, const MString &sName, PROJECTIONTYPE projection=PERSPECTIVE)
MercuryCameraGetCamera ()
 CLASS_RTTI (MercuryScreen, MercuryObject)

Protected Member Functions

void UpdatePerspectiveObjects (float dTime)
void UpdateOrthoObjects (float dTime)
void RenderPerspectiveObjects ()
void RenderOrthoObjects ()
void CreateProjections ()

Protected Attributes

MercuryObjectm_pBackground
MercuryCameram_pCamera
bool m_useLighting
Projection m_perspProjection
Projection m_orthoProjection

Private Attributes

MercuryObject m_PerspObjects
MercuryObject m_OrthoObjects

Detailed Description

[actor] Base Screen

Definition at line 11 of file MercuryScreen.h.


Constructor & Destructor Documentation

MercuryScreen::MercuryScreen ( const MercuryScreen MercuryScreen  ) 

Definition at line 28 of file MercuryScreen.cpp.

MercuryScreen::MercuryScreen (  ) 

Definition at line 22 of file MercuryScreen.cpp.

MercuryScreen::MercuryScreen ( const MString name  ) 

Definition at line 34 of file MercuryScreen.cpp.

MercuryScreen::~MercuryScreen (  )  [virtual]

Definition at line 40 of file MercuryScreen.cpp.


Member Function Documentation

void MercuryScreen::Init (  )  [virtual]

Reimplemented from MercuryObject.

Reimplemented in ScreenCopper, ScreenDebugOverlay, ScreenExample2DSS, ScreenFPS, ScreenFPS2, ScreenGameForBlind, ScreenHelloWorld, ScreenJunq, ScreenMapEditor, ScreenNetTester, ScreenODETest, ScreenOutdoors, ScreenRallyRace, ScreenSound, ScreenTest, and ScreenHgTitle.

Definition at line 46 of file MercuryScreen.cpp.

void MercuryScreen::Update ( const float  dTime  )  [virtual]

[internal] Update (call this update last when abstracting because Update can destroy the object)

Reimplemented from MercuryObject.

Reimplemented in ScreenCopper, ScreenExample2DSS, ScreenFPS, ScreenFPS2, ScreenGameForBlind, ScreenHelloWorld, ScreenJunq, ScreenMapEditor, ScreenNetTester, ScreenODETest, ScreenRallyRace, ScreenSound, ScreenTest, and ScreenHgTitle.

Definition at line 83 of file MercuryScreen.cpp.

void MercuryScreen::Message ( int  Message,
PStack data,
const MString name 
) [virtual]

Receive message (When subscribing to messages, you receive them via this command).

Reimplemented from MercuryMessageHandler.

Reimplemented in ScreenCopper, ScreenDebugOverlay, ScreenExample2DSS, ScreenFPS, ScreenFPS2, ScreenGameForBlind, ScreenHelloWorld, ScreenJunq, ScreenMapEditor, ScreenRallyRace, ScreenSound, ScreenTest, and ScreenHgTitle.

Definition at line 72 of file MercuryScreen.cpp.

void MercuryScreen::Render (  )  [virtual]

Reimplemented from MercuryObject.

Reimplemented in ScreenMapEditor.

Definition at line 106 of file MercuryScreen.cpp.

bool MercuryScreen::RemoveObject ( MercuryObject object,
bool  bAllowDelete = true 
) [virtual]

Reimplemented from MercuryObject.

Definition at line 171 of file MercuryScreen.cpp.

void MercuryScreen::AddPerspObject ( MercuryObject object,
bool  bParentDelete = false 
)

Definition at line 182 of file MercuryScreen.cpp.

void MercuryScreen::AddOrthoObject ( MercuryObject object,
bool  bParentDelete = false 
)

Definition at line 187 of file MercuryScreen.cpp.

MercuryObject * MercuryScreen::Spawn ( const MString sClass,
const MString sName,
PROJECTIONTYPE  projection = PERSPECTIVE 
) [virtual]

Reimplemented from MercuryObject.

Definition at line 192 of file MercuryScreen.cpp.

MercuryCamera* MercuryScreen::GetCamera (  )  [inline]

Definition at line 30 of file MercuryScreen.h.

MercuryScreen::CLASS_RTTI ( MercuryScreen  ,
MercuryObject   
)

void MercuryScreen::UpdatePerspectiveObjects ( float  dTime  )  [protected]

Definition at line 141 of file MercuryScreen.cpp.

void MercuryScreen::UpdateOrthoObjects ( float  dTime  )  [protected]

Definition at line 161 of file MercuryScreen.cpp.

void MercuryScreen::RenderPerspectiveObjects (  )  [protected]

Definition at line 112 of file MercuryScreen.cpp.

void MercuryScreen::RenderOrthoObjects (  )  [protected]

Definition at line 131 of file MercuryScreen.cpp.

void MercuryScreen::CreateProjections (  )  [protected]

Definition at line 65 of file MercuryScreen.cpp.


Member Data Documentation

MercuryObject* MercuryScreen::m_pBackground [protected]

Definition at line 43 of file MercuryScreen.h.

MercuryCamera* MercuryScreen::m_pCamera [protected]

Definition at line 44 of file MercuryScreen.h.

bool MercuryScreen::m_useLighting [protected]

Definition at line 46 of file MercuryScreen.h.

Projection MercuryScreen::m_perspProjection [protected]

Definition at line 48 of file MercuryScreen.h.

Projection MercuryScreen::m_orthoProjection [protected]

Definition at line 49 of file MercuryScreen.h.

MercuryObject MercuryScreen::m_PerspObjects [private]

Definition at line 52 of file MercuryScreen.h.

MercuryObject MercuryScreen::m_OrthoObjects [private]

Definition at line 53 of file MercuryScreen.h.


The documentation for this class was generated from the following files:
Hosted by SourceForge.net Logo