ScreenFPS Class Reference

#include <ScreenFPS.h>

Inheritance diagram for ScreenFPS:

Inheritance graph
[legend]
Collaboration diagram for ScreenFPS:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ScreenFPS ()
 ScreenFPS (const MString &name)
virtual ~ScreenFPS ()
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 bool Command (PStack &ret, const char *command, PStack &args)
 Handle a message, by default, it returns false, meaning the command was not handled.
 CLASS_RTTI (ScreenFPS, ScreenOutdoors)

Private Member Functions

void CalculateLook (int x, int y, MercuryODEObject *control)
void TweenCamera (int x, int y, MercuryODEObject *control)
void CalculateMovement (MercuryODEObject *control)
void PlayRobotAnimations (int dx)
void ObjectHit (const MercuryPoint &position, dBodyID id, const MercuryPoint &ray)

Private Attributes

MercuryINI m_pINI
MercuryLoadableModel m_pPlayer
MercuryODEWorld m_pWorld
MercuryCamera m_fCamera
MercuryPoint pTarget
MercuryPoint m_pGun
Projectile pBullet
MercurySprite m_sprCrosshairsCenter
MercurySprite m_sprCrosshairs
VirtualProjectile m_Aimer
bool m_interactable
bool m_oldInter
float fClosestAimerObject
MercuryPoint m_aimPos
float m_closestHitObjectDistance
dBodyID m_closestHitObject
MercuryPoint m_closestHitPosition
MercuryPoint m_closestHitRay
bool m_runObjectHitCode
Projectile pPhysics
int iPhysicsObject
float fClosestPhysicsObject
MercuryPoint pLookAt
bool m_bFirstUpdate
int m_iSlidingF
float m_fTimeSinceLastShot
float m_fForwardMovement
MVector< MercuryLoadableModel::LoadableModelAnimationInfopTweenCommands
bool m_bFPS
bool m_fistExplosion
bool m_donefirst
float m_slowDown

Detailed Description

Definition at line 11 of file ScreenFPS.h.


Constructor & Destructor Documentation

ScreenFPS::ScreenFPS (  )  [inline]

Definition at line 14 of file ScreenFPS.h.

ScreenFPS::ScreenFPS ( const MString name  )  [inline]

Definition at line 15 of file ScreenFPS.h.

ScreenFPS::~ScreenFPS (  )  [virtual]

Definition at line 26 of file ScreenFPS.cpp.


Member Function Documentation

void ScreenFPS::Init (  )  [virtual]

Reimplemented from ScreenOutdoors.

Definition at line 31 of file ScreenFPS.cpp.

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

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

Reimplemented from MercuryScreen.

Definition at line 203 of file ScreenFPS.cpp.

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

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

Reimplemented from MercuryScreen.

Definition at line 378 of file ScreenFPS.cpp.

bool ScreenFPS::Command ( PStack ret,
const char *  command,
PStack args 
) [virtual]

Handle a message, by default, it returns false, meaning the command was not handled.

Reimplemented from MercuryCommandHandler.

Definition at line 444 of file ScreenFPS.cpp.

ScreenFPS::CLASS_RTTI ( ScreenFPS  ,
ScreenOutdoors   
)

void ScreenFPS::CalculateLook ( int  x,
int  y,
MercuryODEObject control 
) [private]

Definition at line 327 of file ScreenFPS.cpp.

void ScreenFPS::TweenCamera ( int  x,
int  y,
MercuryODEObject control 
) [private]

Definition at line 346 of file ScreenFPS.cpp.

void ScreenFPS::CalculateMovement ( MercuryODEObject control  )  [private]

Definition at line 144 of file ScreenFPS.cpp.

void ScreenFPS::PlayRobotAnimations ( int  dx  )  [private]

Definition at line 179 of file ScreenFPS.cpp.

void ScreenFPS::ObjectHit ( const MercuryPoint position,
dBodyID  id,
const MercuryPoint ray 
) [private]

Definition at line 518 of file ScreenFPS.cpp.


Member Data Documentation

MercuryINI ScreenFPS::m_pINI [private]

Definition at line 30 of file ScreenFPS.h.

MercuryLoadableModel ScreenFPS::m_pPlayer [private]

Definition at line 31 of file ScreenFPS.h.

MercuryODEWorld ScreenFPS::m_pWorld [private]

Definition at line 32 of file ScreenFPS.h.

MercuryCamera ScreenFPS::m_fCamera [private]

Definition at line 33 of file ScreenFPS.h.

MercuryPoint ScreenFPS::pTarget [private]

Definition at line 34 of file ScreenFPS.h.

MercuryPoint ScreenFPS::m_pGun [private]

Definition at line 35 of file ScreenFPS.h.

Projectile ScreenFPS::pBullet [private]

Definition at line 36 of file ScreenFPS.h.

MercurySprite ScreenFPS::m_sprCrosshairsCenter [private]

Definition at line 38 of file ScreenFPS.h.

MercurySprite ScreenFPS::m_sprCrosshairs [private]

Definition at line 39 of file ScreenFPS.h.

VirtualProjectile ScreenFPS::m_Aimer [private]

Definition at line 40 of file ScreenFPS.h.

bool ScreenFPS::m_interactable [private]

Definition at line 41 of file ScreenFPS.h.

bool ScreenFPS::m_oldInter [private]

Definition at line 42 of file ScreenFPS.h.

float ScreenFPS::fClosestAimerObject [private]

Definition at line 43 of file ScreenFPS.h.

MercuryPoint ScreenFPS::m_aimPos [private]

Definition at line 44 of file ScreenFPS.h.

float ScreenFPS::m_closestHitObjectDistance [private]

Definition at line 46 of file ScreenFPS.h.

dBodyID ScreenFPS::m_closestHitObject [private]

Definition at line 47 of file ScreenFPS.h.

MercuryPoint ScreenFPS::m_closestHitPosition [private]

Definition at line 48 of file ScreenFPS.h.

MercuryPoint ScreenFPS::m_closestHitRay [private]

Definition at line 49 of file ScreenFPS.h.

bool ScreenFPS::m_runObjectHitCode [private]

Definition at line 50 of file ScreenFPS.h.

Projectile ScreenFPS::pPhysics [private]

Definition at line 54 of file ScreenFPS.h.

int ScreenFPS::iPhysicsObject [private]

Definition at line 55 of file ScreenFPS.h.

float ScreenFPS::fClosestPhysicsObject [private]

Definition at line 56 of file ScreenFPS.h.

MercuryPoint ScreenFPS::pLookAt [private]

Definition at line 58 of file ScreenFPS.h.

bool ScreenFPS::m_bFirstUpdate [private]

Definition at line 59 of file ScreenFPS.h.

int ScreenFPS::m_iSlidingF [private]

Definition at line 60 of file ScreenFPS.h.

float ScreenFPS::m_fTimeSinceLastShot [private]

Definition at line 61 of file ScreenFPS.h.

float ScreenFPS::m_fForwardMovement [private]

Definition at line 63 of file ScreenFPS.h.

MVector< MercuryLoadableModel::LoadableModelAnimationInfo > ScreenFPS::pTweenCommands [private]

Definition at line 64 of file ScreenFPS.h.

bool ScreenFPS::m_bFPS [private]

Definition at line 66 of file ScreenFPS.h.

bool ScreenFPS::m_fistExplosion [private]

Definition at line 68 of file ScreenFPS.h.

bool ScreenFPS::m_donefirst [private]

Definition at line 69 of file ScreenFPS.h.

float ScreenFPS::m_slowDown [private]

Definition at line 71 of file ScreenFPS.h.


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