doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | Static Public Attributes | Private Member Functions | List of all members
idGameSSDWindow Class Reference

#include <GameSSDWindow.h>

Inheritance diagram for idGameSSDWindow:
idWindow

Public Member Functions

 idGameSSDWindow (idUserInterfaceLocal *gui)
 
 idGameSSDWindow (idDeviceContext *d, idUserInterfaceLocal *gui)
 
 ~idGameSSDWindow ()
 
virtual void WriteToSaveGame (idFile *savefile)
 
virtual void ReadFromSaveGame (idFile *savefile)
 
virtual const char * HandleEvent (const sysEvent_t *event, bool *updateVisuals)
 
virtual idWinVarGetWinVarByName (const char *_name, bool winLookup=false, drawWin_t **owner=NULL)
 
virtual void Draw (int time, float x, float y)
 
void AddHealth (int health)
 
void AddScore (SSDEntity *ent, int points)
 
void AddDamage (int damage)
 
void OnNuke ()
 
void OnRescueAll ()
 
void OnSuperBlaster ()
 
SSDEntityGetSpecificEntity (int type, int id)
 
void PlaySound (const char *sound)
 
- Public Member Functions inherited from idWindow
 idWindow (idUserInterfaceLocal *gui)
 
 idWindow (idDeviceContext *d, idUserInterfaceLocal *gui)
 
virtual ~idWindow ()
 
void SetDC (idDeviceContext *d)
 
idDeviceContextGetDC (void)
 
idWindowSetFocus (idWindow *w, bool scripts=true)
 
idWindowSetCapture (idWindow *w)
 
void SetParent (idWindow *w)
 
void SetFlag (unsigned int f)
 
void ClearFlag (unsigned int f)
 
unsigned GetFlags ()
 
void Move (float x, float y)
 
void BringToTop (idWindow *w)
 
void Adjust (float xd, float yd)
 
void SetAdjustMode (idWindow *child)
 
void Size (float x, float y, float w, float h)
 
void SetupFromState ()
 
void SetupBackground ()
 
drawWin_tFindChildByName (const char *name)
 
idSimpleWindowFindSimpleWinByName (const char *_name)
 
idWindowGetParent ()
 
idUserInterfaceLocalGetGui ()
 
bool Contains (float x, float y)
 
size_t Size ()
 
virtual size_t Allocated ()
 
idStrGetStrPtrByName (const char *_name)
 
int GetWinVarOffset (idWinVar *wv, drawWin_t *dw)
 
float GetMaxCharHeight ()
 
float GetMaxCharWidth ()
 
void SetFont ()
 
void SetInitialState (const char *_name)
 
void AddChild (idWindow *win)
 
void DebugDraw (int time, float x, float y)
 
void CalcClientRect (float xofs, float yofs)
 
void CommonInit ()
 
void CleanUp ()
 
void DrawBorderAndCaption (const idRectangle &drawRect)
 
void DrawCaption (int time, float x, float y)
 
void SetupTransforms (float x, float y)
 
bool Contains (const idRectangle &sr, float x, float y)
 
const char * GetName ()
 
virtual bool Parse (idParser *src, bool rebuild=true)
 
void CalcRects (float x, float y)
 
virtual void Redraw (float x, float y)
 
virtual void ArchiveToDictionary (idDict *dict, bool useNames=true)
 
virtual void InitFromDictionary (idDict *dict, bool byName=true)
 
virtual void PostParse ()
 
virtual void Activate (bool activate, idStr &act)
 
virtual void Trigger ()
 
virtual void GainFocus ()
 
virtual void LoseFocus ()
 
virtual void GainCapture ()
 
virtual void LoseCapture ()
 
virtual void Sized ()
 
virtual void Moved ()
 
virtual void MouseExit ()
 
virtual void MouseEnter ()
 
virtual void DrawBackground (const idRectangle &drawRect)
 
virtual const char * RouteMouseCoords (float xd, float yd)
 
virtual void SetBuddy (idWindow *buddy)
 
virtual void HandleBuddyUpdate (idWindow *buddy)
 
virtual void StateChanged (bool redraw)
 
virtual void ReadFromDemoFile (class idDemoFile *f, bool rebuild=true)
 
virtual void WriteToDemoFile (class idDemoFile *f)
 
void WriteSaveGameString (const char *string, idFile *savefile)
 
void WriteSaveGameTransition (idTransitionData &trans, idFile *savefile)
 
void ReadSaveGameString (idStr &string, idFile *savefile)
 
void ReadSaveGameTransition (idTransitionData &trans, idFile *savefile)
 
void FixupTransitions ()
 
virtual void HasAction ()
 
virtual void HasScripts ()
 
void FixupParms ()
 
void GetScriptString (const char *name, idStr &out)
 
void SetScriptParams ()
 
bool HasOps ()
 
float EvalRegs (int test=-1, bool force=false)
 
void StartTransition ()
 
void AddTransition (idWinVar *dest, idVec4 from, idVec4 to, int time, float accelTime, float decelTime)
 
void ResetTime (int time)
 
void ResetCinematics ()
 
int NumTransitions ()
 
bool ParseScript (idParser *src, idGuiScriptList &list, int *timeParm=NULL, bool allowIf=false)
 
bool RunScript (int n)
 
bool RunScriptList (idGuiScriptList *src)
 
void SetRegs (const char *key, const char *val)
 
int ParseExpression (idParser *src, idWinVar *var=NULL, int component=0)
 
int ExpressionConstant (float f)
 
idRegisterListRegList ()
 
void AddCommand (const char *cmd)
 
void AddUpdateVar (idWinVar *var)
 
bool Interactive ()
 
bool ContainsStateVars ()
 
void SetChildWinVarVal (const char *name, const char *var, const char *val)
 
idWindowGetFocusedChild ()
 
idWindowGetCaptureChild ()
 
const char * GetComment ()
 
void SetComment (const char *p)
 
virtual void RunNamedEvent (const char *eventName)
 
void AddDefinedVar (idWinVar *var)
 
idWindowFindChildByPoint (float x, float y, idWindow *below=NULL)
 
int GetChildIndex (idWindow *window)
 
int GetChildCount (void)
 
idWindowGetChild (int index)
 
void RemoveChild (idWindow *win)
 
bool InsertChild (idWindow *win, idWindow *before)
 
void ScreenToClient (idRectangle *rect)
 
void ClientToScreen (idRectangle *rect)
 
bool UpdateFromDictionary (idDict &dict)
 

Public Attributes

int ssdTime
 
idWinBool beginLevel
 
idWinBool resetGame
 
idWinBool continueGame
 
idWinBool refreshGuiData
 
SSDCrossHair crosshair
 
idBounds screenBounds
 
int levelCount
 
idList< SSDLevelData_tlevelData
 
idList< SSDAsteroidData_tasteroidData
 
idList< SSDAstronautData_tastronautData
 
idList< SSDPowerupData_tpowerupData
 
int weaponCount
 
idList< SSDWeaponData_tweaponData
 
int superBlasterTimeout
 
SSDGameStats_t gameStats
 
idList< SSDEntity * > entities
 
int currentSound
 
- Public Attributes inherited from idWindow
idStr cmd
 

Static Public Attributes

static idRandom random
 
- Static Public Attributes inherited from idWindow
static const char * ScriptNames [SCRIPT_COUNT]
 
static const idRegEntry RegisterVars []
 
static const int NumRegisterVars = sizeof(RegisterVars) / sizeof(idRegEntry)
 

Private Member Functions

virtual bool ParseInternalVar (const char *name, idParser *src)
 
void ParseLevelData (int level, const idStr &levelDataString)
 
void ParseAsteroidData (int level, const idStr &asteroidDataString)
 
void ParseWeaponData (int weapon, const idStr &weaponDataString)
 
void ParseAstronautData (int level, const idStr &astronautDataString)
 
void ParsePowerupData (int level, const idStr &powerupDataString)
 
void CommonInit ()
 
void ResetGameStats ()
 
void ResetLevelStats ()
 
void ResetEntities ()
 
void StartGame ()
 
void StopGame ()
 
void GameOver ()
 
void BeginLevel (int level)
 
void ContinueGame ()
 Continue game resets the players health. More...
 
void LevelComplete ()
 
void GameComplete ()
 
void UpdateGame ()
 
void CheckForHits ()
 
void ZOrderEntities ()
 
void SpawnAsteroid ()
 
void FireWeapon (int key)
 
SSDEntityEntityHitTest (const idVec2 &pt)
 
void HitAsteroid (SSDAsteroid *asteroid, int key)
 
void AsteroidStruckPlayer (SSDAsteroid *asteroid)
 
void RefreshGuiData ()
 
idVec2 GetCursorWorld ()
 
void SpawnAstronaut ()
 
void HitAstronaut (SSDAstronaut *astronaut, int key)
 
void AstronautStruckPlayer (SSDAstronaut *astronaut)
 
void SpawnPowerup ()
 
void StartSuperBlaster ()
 
void StopSuperBlaster ()
 

Additional Inherited Members

- Public Types inherited from idWindow
enum  {
  ON_MOUSEENTER = 0, ON_MOUSEEXIT, ON_ACTION, ON_ACTIVATE,
  ON_DEACTIVATE, ON_ESC, ON_FRAME, ON_TRIGGER,
  ON_ACTIONRELEASE, ON_ENTER, ON_ENTERRELEASE, SCRIPT_COUNT
}
 
enum  {
  ADJUST_MOVE = 0, ADJUST_TOP, ADJUST_RIGHT, ADJUST_BOTTOM,
  ADJUST_LEFT, ADJUST_TOPLEFT, ADJUST_BOTTOMRIGHT, ADJUST_TOPRIGHT,
  ADJUST_BOTTOMLEFT
}
 
- Protected Member Functions inherited from idWindow
idWindowFindChildByPoint (float x, float y, idWindow **below)
 
void SetDefaults (void)
 
bool IsSimple ()
 
void UpdateWinVars ()
 
void DisableRegister (const char *_name)
 
void Transition ()
 
void Time ()
 
bool RunTimeEvents (int time)
 
void Dump ()
 
int ExpressionTemporary ()
 
wexpOp_tExpressionOp ()
 
int EmitOp (int a, int b, wexpOpType_t opType, wexpOp_t **opp=NULL)
 
int ParseEmitOp (idParser *src, int a, wexpOpType_t opType, int priority, wexpOp_t **opp=NULL)
 
int ParseTerm (idParser *src, idWinVar *var=NULL, int component=0)
 
int ParseExpressionPriority (idParser *src, int priority, idWinVar *var=NULL, int component=0)
 
void EvaluateRegisters (float *registers)
 
void SaveExpressionParseState ()
 
void RestoreExpressionParseState ()
 
void ParseBracedExpression (idParser *src)
 
bool ParseScriptEntry (const char *name, idParser *src)
 
bool ParseRegEntry (const char *name, idParser *src)
 
void ParseString (idParser *src, idStr &out)
 
void ParseVec4 (idParser *src, idVec4 &out)
 
void ConvertRegEntry (const char *name, idParser *src, idStr &out, int tabs)
 
- Protected Attributes inherited from idWindow
float actualX
 
float actualY
 
int childID
 
unsigned int flags
 
int lastTimeRun
 
idRectangle drawRect
 
idRectangle clientRect
 
idVec2 origin
 
int timeLine
 
float xOffset
 
float yOffset
 
float forceAspectWidth
 
float forceAspectHeight
 
float matScalex
 
float matScaley
 
float borderSize
 
float textAlignx
 
float textAligny
 
idStr name
 
idStr comment
 
idVec2 shear
 
signed char textShadow
 
unsigned char fontNum
 
unsigned char cursor
 
signed char textAlign
 
idWinBool noTime
 
idWinBool visible
 
idWinBool noEvents
 
idWinRectangle rect
 
idWinVec4 backColor
 
idWinVec4 matColor
 
idWinVec4 foreColor
 
idWinVec4 hoverColor
 
idWinVec4 borderColor
 
idWinFloat textScale
 
idWinFloat rotate
 
idWinStr text
 
idWinBackground backGroundName
 
idList< idWinVar * > definedVars
 
idList< idWinVar * > updateVars
 
idRectangle textRect
 
const idMaterialbackground
 
idWindowparent
 
idList< idWindow * > children
 
idList< drawWin_tdrawWindows
 
idWindowfocusedChild
 
idWindowcaptureChild
 
idWindowoverChild
 
bool hover
 
idDeviceContextdc
 
idUserInterfaceLocalgui
 
idGuiScriptListscripts [SCRIPT_COUNT]
 
boolsaveTemps
 
idList< idTimeLineEvent * > timeLineEvents
 
idList< idTransitionDatatransitions
 
idList< wexpOp_tops
 
idList< floatexpressionRegisters
 
idList< wexpOp_t > * saveOps
 
idList< rvNamedEvent * > namedEvents
 
idList< float > * saveRegs
 
idRegisterList regList
 
idWinBool hideCursor
 
- Static Protected Attributes inherited from idWindow
static idCVar gui_debug
 
static idCVar gui_edit
 
static bool registerIsTemporary [MAX_EXPRESSION_REGISTERS]
 

Detailed Description

Definition at line 483 of file GameSSDWindow.h.

Constructor & Destructor Documentation

idGameSSDWindow::idGameSSDWindow ( idUserInterfaceLocal gui)

Definition at line 1210 of file GameSSDWindow.cpp.

idGameSSDWindow::idGameSSDWindow ( idDeviceContext d,
idUserInterfaceLocal gui 
)

Definition at line 1204 of file GameSSDWindow.cpp.

idGameSSDWindow::~idGameSSDWindow ( )

Definition at line 1215 of file GameSSDWindow.cpp.

Member Function Documentation

void idGameSSDWindow::AddDamage ( int  damage)

Definition at line 2030 of file GameSSDWindow.cpp.

void idGameSSDWindow::AddHealth ( int  health)

Definition at line 2042 of file GameSSDWindow.cpp.

void idGameSSDWindow::AddScore ( SSDEntity ent,
int  points 
)

Definition at line 2015 of file GameSSDWindow.cpp.

void idGameSSDWindow::AsteroidStruckPlayer ( SSDAsteroid asteroid)
private

Definition at line 2003 of file GameSSDWindow.cpp.

void idGameSSDWindow::AstronautStruckPlayer ( SSDAstronaut astronaut)
private

Definition at line 2210 of file GameSSDWindow.cpp.

void idGameSSDWindow::BeginLevel ( int  level)
private

Definition at line 1686 of file GameSSDWindow.cpp.

void idGameSSDWindow::CheckForHits ( )
private

Definition at line 1822 of file GameSSDWindow.cpp.

void idGameSSDWindow::CommonInit ( )
private

Definition at line 1600 of file GameSSDWindow.cpp.

void idGameSSDWindow::ContinueGame ( )
private

Continue game resets the players health.

Definition at line 1698 of file GameSSDWindow.cpp.

void idGameSSDWindow::Draw ( int  time,
float  x,
float  y 
)
virtual

Reimplemented from idWindow.

Definition at line 1386 of file GameSSDWindow.cpp.

SSDEntity * idGameSSDWindow::EntityHitTest ( const idVec2 pt)
private

Definition at line 1961 of file GameSSDWindow.cpp.

void idGameSSDWindow::FireWeapon ( int  key)
private

Definition at line 1904 of file GameSSDWindow.cpp.

void idGameSSDWindow::GameComplete ( )
private

Definition at line 1753 of file GameSSDWindow.cpp.

void idGameSSDWindow::GameOver ( )
private

Definition at line 1678 of file GameSSDWindow.cpp.

idVec2 idGameSSDWindow::GetCursorWorld ( )
private

Definition at line 2146 of file GameSSDWindow.cpp.

SSDEntity * idGameSSDWindow::GetSpecificEntity ( int  type,
int  id 
)

Definition at line 2264 of file GameSSDWindow.cpp.

idWinVar * idGameSSDWindow::GetWinVarByName ( const char *  _name,
bool  winLookup = false,
drawWin_t **  owner = NULL 
)
virtual

Reimplemented from idWindow.

Definition at line 1358 of file GameSSDWindow.cpp.

const char * idGameSSDWindow::HandleEvent ( const sysEvent_t event,
bool updateVisuals 
)
virtual

Reimplemented from idWindow.

Definition at line 1332 of file GameSSDWindow.cpp.

void idGameSSDWindow::HitAsteroid ( SSDAsteroid asteroid,
int  key 
)
private

Definition at line 1973 of file GameSSDWindow.cpp.

void idGameSSDWindow::HitAstronaut ( SSDAstronaut astronaut,
int  key 
)
private

Definition at line 2182 of file GameSSDWindow.cpp.

void idGameSSDWindow::LevelComplete ( )
private

Definition at line 1704 of file GameSSDWindow.cpp.

void idGameSSDWindow::OnNuke ( )

Definition at line 2048 of file GameSSDWindow.cpp.

void idGameSSDWindow::OnRescueAll ( )

Definition at line 2078 of file GameSSDWindow.cpp.

void idGameSSDWindow::OnSuperBlaster ( )

Definition at line 2092 of file GameSSDWindow.cpp.

void idGameSSDWindow::ParseAsteroidData ( int  level,
const idStr asteroidDataString 
)
private

Definition at line 1529 of file GameSSDWindow.cpp.

void idGameSSDWindow::ParseAstronautData ( int  level,
const idStr astronautDataString 
)
private

Definition at line 1580 of file GameSSDWindow.cpp.

bool idGameSSDWindow::ParseInternalVar ( const char *  name,
idParser src 
)
privatevirtual

Reimplemented from idWindow.

Definition at line 1413 of file GameSSDWindow.cpp.

void idGameSSDWindow::ParseLevelData ( int  level,
const idStr levelDataString 
)
private

Definition at line 1518 of file GameSSDWindow.cpp.

void idGameSSDWindow::ParsePowerupData ( int  level,
const idStr powerupDataString 
)
private

Definition at line 1552 of file GameSSDWindow.cpp.

void idGameSSDWindow::ParseWeaponData ( int  weapon,
const idStr weaponDataString 
)
private

Definition at line 1569 of file GameSSDWindow.cpp.

void idGameSSDWindow::PlaySound ( const char *  sound)

Definition at line 2291 of file GameSSDWindow.cpp.

void idGameSSDWindow::ReadFromSaveGame ( idFile savefile)
virtual

Reimplemented from idWindow.

Definition at line 1264 of file GameSSDWindow.cpp.

void idGameSSDWindow::RefreshGuiData ( )
private

Definition at line 2099 of file GameSSDWindow.cpp.

void idGameSSDWindow::ResetEntities ( )
private

Definition at line 1660 of file GameSSDWindow.cpp.

void idGameSSDWindow::ResetGameStats ( )
private

Definition at line 1639 of file GameSSDWindow.cpp.

void idGameSSDWindow::ResetLevelStats ( )
private

Definition at line 1650 of file GameSSDWindow.cpp.

void idGameSSDWindow::SpawnAsteroid ( )
private

Definition at line 1877 of file GameSSDWindow.cpp.

void idGameSSDWindow::SpawnAstronaut ( )
private

Definition at line 2157 of file GameSSDWindow.cpp.

void idGameSSDWindow::SpawnPowerup ( )
private

Definition at line 2231 of file GameSSDWindow.cpp.

void idGameSSDWindow::StartGame ( )
private

Definition at line 1668 of file GameSSDWindow.cpp.

void idGameSSDWindow::StartSuperBlaster ( )
private

Definition at line 2250 of file GameSSDWindow.cpp.

void idGameSSDWindow::StopGame ( )
private

Definition at line 1673 of file GameSSDWindow.cpp.

void idGameSSDWindow::StopSuperBlaster ( )
private

Definition at line 2257 of file GameSSDWindow.cpp.

void idGameSSDWindow::UpdateGame ( )
private

Definition at line 1759 of file GameSSDWindow.cpp.

void idGameSSDWindow::WriteToSaveGame ( idFile savefile)
virtual

Reimplemented from idWindow.

Definition at line 1219 of file GameSSDWindow.cpp.

void idGameSSDWindow::ZOrderEntities ( )
private

Definition at line 1857 of file GameSSDWindow.cpp.

Member Data Documentation

idList<SSDAsteroidData_t> idGameSSDWindow::asteroidData

Definition at line 597 of file GameSSDWindow.h.

idList<SSDAstronautData_t> idGameSSDWindow::astronautData

Definition at line 598 of file GameSSDWindow.h.

idWinBool idGameSSDWindow::beginLevel

Definition at line 586 of file GameSSDWindow.h.

idWinBool idGameSSDWindow::continueGame

Definition at line 588 of file GameSSDWindow.h.

SSDCrossHair idGameSSDWindow::crosshair

Definition at line 591 of file GameSSDWindow.h.

int idGameSSDWindow::currentSound

Definition at line 612 of file GameSSDWindow.h.

idList<SSDEntity*> idGameSSDWindow::entities

Definition at line 610 of file GameSSDWindow.h.

SSDGameStats_t idGameSSDWindow::gameStats

Definition at line 609 of file GameSSDWindow.h.

int idGameSSDWindow::levelCount

Definition at line 595 of file GameSSDWindow.h.

idList<SSDLevelData_t> idGameSSDWindow::levelData

Definition at line 596 of file GameSSDWindow.h.

idList<SSDPowerupData_t> idGameSSDWindow::powerupData

Definition at line 599 of file GameSSDWindow.h.

idRandom idGameSSDWindow::random
static

Definition at line 513 of file GameSSDWindow.h.

idWinBool idGameSSDWindow::refreshGuiData

Definition at line 589 of file GameSSDWindow.h.

idWinBool idGameSSDWindow::resetGame

Definition at line 587 of file GameSSDWindow.h.

idBounds idGameSSDWindow::screenBounds

Definition at line 592 of file GameSSDWindow.h.

int idGameSSDWindow::ssdTime

Definition at line 514 of file GameSSDWindow.h.

int idGameSSDWindow::superBlasterTimeout

Definition at line 606 of file GameSSDWindow.h.

int idGameSSDWindow::weaponCount

Definition at line 603 of file GameSSDWindow.h.

idList<SSDWeaponData_t> idGameSSDWindow::weaponData

Definition at line 604 of file GameSSDWindow.h.


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