HoverRace
2.0
|
#include <Observer.h>
Public Member Functions | |
Observer () | |
~Observer () | |
void | EnlargeMargin () |
void | Home () |
void | MoreMessages () |
void | PlayersListPageDn () |
void | PlaySounds (const Model::Level *pLevel, MainCharacter::MainCharacter *pViewingCharacter) |
void | ReduceMargin () |
void | RenderDebugDisplay (VideoServices::VideoBuffer *pDest, const HoverRace::Client::ClientSession *pSession, const MainCharacter::MainCharacter *pViewingCharacter, MR_SimulationTime pTime, const MR_UInt8 *pBackImage) |
void | RenderNormalDisplay (VideoServices::VideoBuffer *pDest, const HoverRace::Client::ClientSession *pSession, const MainCharacter::MainCharacter *pViewingCharacter, MR_SimulationTime pTime, const MR_UInt8 *pBackImage) |
void | Scroll (int pOffset) |
void | SetCockpitView (BOOL pOn) |
void | SetHudVisible (bool visible) |
void | SetSplitMode (Display::HudCell pMode) |
void | StartDemoMode () |
Switch to demo mode. More... | |
void | ToggleHudVisible () |
void | Zoom (int factor) |
A positive factor zooms in; a negative factor zooms out. More... | |
Static Public Member Functions | |
static const std::string & | GetCraftName (int id) |
Private Member Functions | |
void | DrawWFSection (const Model::Level *pLevel, const Model::SectionId &pSectionId, MR_UInt8 pColor) |
void | Render2DDebugView (VideoServices::VideoBuffer *pDest, const Model::Level *pLevel, const MainCharacter::MainCharacter *pViewingCharacter) |
void | Render3DView (const HoverRace::Client::ClientSession *pSession, const MainCharacter::MainCharacter *pViewingCharacter, MR_SimulationTime pTime, const MR_UInt8 *pBackImage) |
void | RenderFeatureWalls (const Model::Level *pLevel, int pFeatureId, MR_SimulationTime pTime) |
void | RenderFloorOrCeiling (const Model::Level *pLevel, const Model::SectionId &pSectionId, BOOL pFloor, MR_SimulationTime pTime) |
void | RenderRoomWalls (const Model::Level *pLevel, int pRoomId, MR_SimulationTime pTime) |
void | RenderWireFrameView (const Model::Level *pLevel, const MainCharacter::MainCharacter *pViewingCharacter) |
Static Private Member Functions | |
static void | DrawBackground (VideoServices::VideoBuffer *pDest) |
Private Attributes | |
bool | demoMode |
bool | hudVisible |
VideoServices::Viewport2D | m2DDebugView |
VideoServices::Viewport3D | m3DView |
MR_Angle | mApperture |
std::shared_ptr< ObjFac1::SpriteHandle > | mBaseFont |
BOOL | mCockpitView |
int | mDispPlayers |
std::shared_ptr< ObjFac1::SpriteHandle > | mHoverIcons |
MR_3DCoordinate | mLastCameraPos |
BOOL | mLastCameraPosValid |
std::shared_ptr< ObjFac1::SpriteHandle > | mMineDisp |
std::shared_ptr< ObjFac1::SpriteHandle > | mMissileLevel |
BOOL | mMoreMessages |
std::shared_ptr< ObjFac1::SpriteHandle > | mPowerUpDisp |
int | mScroll |
VideoServices::Viewport3D | mWireFrameView |
int | mXMargin_1024 |
int | mYMargin_1024 |
Display::HudCell | splitMode |
HoverRace::Client::Observer::Observer | ( | ) |
|
inline |
|
staticprivate |
|
private |
void HoverRace::Client::Observer::EnlargeMargin | ( | ) |
|
static |
void HoverRace::Client::Observer::Home | ( | ) |
void HoverRace::Client::Observer::MoreMessages | ( | ) |
void HoverRace::Client::Observer::PlayersListPageDn | ( | ) |
void HoverRace::Client::Observer::PlaySounds | ( | const Model::Level * | pLevel, |
MainCharacter::MainCharacter * | pViewingCharacter | ||
) |
void HoverRace::Client::Observer::ReduceMargin | ( | ) |
|
private |
|
private |
void HoverRace::Client::Observer::RenderDebugDisplay | ( | VideoServices::VideoBuffer * | pDest, |
const HoverRace::Client::ClientSession * | pSession, | ||
const MainCharacter::MainCharacter * | pViewingCharacter, | ||
MR_SimulationTime | pTime, | ||
const MR_UInt8 * | pBackImage | ||
) |
|
private |
|
private |
void HoverRace::Client::Observer::RenderNormalDisplay | ( | VideoServices::VideoBuffer * | pDest, |
const HoverRace::Client::ClientSession * | pSession, | ||
const MainCharacter::MainCharacter * | pViewingCharacter, | ||
MR_SimulationTime | pTime, | ||
const MR_UInt8 * | pBackImage | ||
) |
|
private |
|
private |
void HoverRace::Client::Observer::Scroll | ( | int | pOffset | ) |
void HoverRace::Client::Observer::SetCockpitView | ( | BOOL | pOn | ) |
void HoverRace::Client::Observer::SetHudVisible | ( | bool | visible | ) |
void HoverRace::Client::Observer::SetSplitMode | ( | Display::HudCell | pMode | ) |
void HoverRace::Client::Observer::StartDemoMode | ( | ) |
Switch to demo mode.
While in demo mode, the camera switches to more "cinematic" views instead of just following behind the player's craft.
void HoverRace::Client::Observer::ToggleHudVisible | ( | ) |
void HoverRace::Client::Observer::Zoom | ( | int | factor | ) |
A positive factor zooms in; a negative factor zooms out.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |