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

#include <GameBustOutWindow.h>

Inheritance diagram for idGameBustOutWindow:
idWindow

Public Member Functions

 idGameBustOutWindow (idUserInterfaceLocal *gui)
 
 idGameBustOutWindow (idDeviceContext *d, idUserInterfaceLocal *gui)
 
 ~idGameBustOutWindow ()
 
virtual void WriteToSaveGame (idFile *savefile)
 
virtual void ReadFromSaveGame (idFile *savefile)
 
virtual const char * HandleEvent (const sysEvent_t *event, bool *updateVisuals)
 
virtual void PostParse ()
 
virtual void Draw (int time, float x, float y)
 
virtual const char * Activate (bool activate)
 
virtual idWinVarGetWinVarByName (const char *_name, bool winLookup=false, drawWin_t **owner=NULL)
 
- 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 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

idList< BOEntity * > entities
 
- Public Attributes inherited from idWindow
idStr cmd
 

Private Member Functions

void CommonInit ()
 
void ResetGameState ()
 
void ClearBoard ()
 
void ClearPowerups ()
 
void ClearBalls ()
 
void LoadBoardFiles ()
 
void SetCurrentBoard ()
 
void UpdateGame ()
 
void UpdatePowerups ()
 
void UpdatePaddle ()
 
void UpdateBall ()
 
void UpdateScore ()
 
BOEntityCreateNewBall ()
 
BOEntityCreatePowerup (BOBrick *brick)
 
virtual bool ParseInternalVar (const char *name, idParser *src)
 

Private Attributes

idWinBool gamerunning
 
idWinBool onFire
 
idWinBool onContinue
 
idWinBool onNewGame
 
idWinBool onNewLevel
 
float timeSlice
 
bool gameOver
 
int numLevels
 
bytelevelBoardData
 
bool boardDataLoaded
 
int numBricks
 
int currentLevel
 
bool updateScore
 
int gameScore
 
int nextBallScore
 
int bigPaddleTime
 
float paddleVelocity
 
float ballSpeed
 
int ballsRemaining
 
int ballsInPlay
 
bool ballHitCeiling
 
idList< BOEntity * > balls
 
idList< BOEntity * > powerUps
 
BOBrickpaddle
 
idList< BOBrick * > board [BOARD_ROWS]
 

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
}
 
- Static Public Attributes inherited from idWindow
static const char * ScriptNames [SCRIPT_COUNT]
 
static const idRegEntry RegisterVars []
 
static const int NumRegisterVars = sizeof(RegisterVars) / sizeof(idRegEntry)
 
- 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 111 of file GameBustOutWindow.h.

Constructor & Destructor Documentation

idGameBustOutWindow::idGameBustOutWindow ( idUserInterfaceLocal gui)

Definition at line 416 of file GameBustOutWindow.cpp.

idGameBustOutWindow::idGameBustOutWindow ( idDeviceContext d,
idUserInterfaceLocal gui 
)

Definition at line 410 of file GameBustOutWindow.cpp.

idGameBustOutWindow::~idGameBustOutWindow ( )

Definition at line 421 of file GameBustOutWindow.cpp.

Member Function Documentation

const char * idGameBustOutWindow::Activate ( bool  activate)
virtual

Definition at line 779 of file GameBustOutWindow.cpp.

void idGameBustOutWindow::ClearBalls ( void  )
private

Definition at line 860 of file GameBustOutWindow.cpp.

void idGameBustOutWindow::ClearBoard ( void  )
private

Definition at line 825 of file GameBustOutWindow.cpp.

void idGameBustOutWindow::ClearPowerups ( void  )
private

Definition at line 848 of file GameBustOutWindow.cpp.

void idGameBustOutWindow::CommonInit ( )
private

Definition at line 617 of file GameBustOutWindow.cpp.

BOEntity * idGameBustOutWindow::CreateNewBall ( void  )
private

Definition at line 975 of file GameBustOutWindow.cpp.

BOEntity * idGameBustOutWindow::CreatePowerup ( BOBrick brick)
private

Definition at line 998 of file GameBustOutWindow.cpp.

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

Reimplemented from idWindow.

Definition at line 763 of file GameBustOutWindow.cpp.

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

Reimplemented from idWindow.

Definition at line 727 of file GameBustOutWindow.cpp.

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

Reimplemented from idWindow.

Definition at line 652 of file GameBustOutWindow.cpp.

void idGameBustOutWindow::LoadBoardFiles ( void  )
private

Definition at line 874 of file GameBustOutWindow.cpp.

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

Reimplemented from idWindow.

Definition at line 690 of file GameBustOutWindow.cpp.

void idGameBustOutWindow::PostParse ( )
virtual

Reimplemented from idWindow.

Definition at line 754 of file GameBustOutWindow.cpp.

void idGameBustOutWindow::ReadFromSaveGame ( idFile savefile)
virtual

Reimplemented from idWindow.

Definition at line 505 of file GameBustOutWindow.cpp.

void idGameBustOutWindow::ResetGameState ( )
private

Definition at line 589 of file GameBustOutWindow.cpp.

void idGameBustOutWindow::SetCurrentBoard ( void  )
private

Definition at line 918 of file GameBustOutWindow.cpp.

void idGameBustOutWindow::UpdateBall ( void  )
private

Definition at line 1126 of file GameBustOutWindow.cpp.

void idGameBustOutWindow::UpdateGame ( )
private

Definition at line 1287 of file GameBustOutWindow.cpp.

void idGameBustOutWindow::UpdatePaddle ( void  )
private

Definition at line 1098 of file GameBustOutWindow.cpp.

void idGameBustOutWindow::UpdatePowerups ( void  )
private

Definition at line 1034 of file GameBustOutWindow.cpp.

void idGameBustOutWindow::UpdateScore ( )
private

Definition at line 789 of file GameBustOutWindow.cpp.

void idGameBustOutWindow::WriteToSaveGame ( idFile savefile)
virtual

Reimplemented from idWindow.

Definition at line 432 of file GameBustOutWindow.cpp.

Member Data Documentation

bool idGameBustOutWindow::ballHitCeiling
private

Definition at line 177 of file GameBustOutWindow.h.

idList<BOEntity*> idGameBustOutWindow::balls
private

Definition at line 179 of file GameBustOutWindow.h.

int idGameBustOutWindow::ballsInPlay
private

Definition at line 176 of file GameBustOutWindow.h.

float idGameBustOutWindow::ballSpeed
private

Definition at line 174 of file GameBustOutWindow.h.

int idGameBustOutWindow::ballsRemaining
private

Definition at line 175 of file GameBustOutWindow.h.

int idGameBustOutWindow::bigPaddleTime
private

Definition at line 171 of file GameBustOutWindow.h.

idList<BOBrick*> idGameBustOutWindow::board[BOARD_ROWS]
private

Definition at line 183 of file GameBustOutWindow.h.

bool idGameBustOutWindow::boardDataLoaded
private

Definition at line 162 of file GameBustOutWindow.h.

int idGameBustOutWindow::currentLevel
private

Definition at line 165 of file GameBustOutWindow.h.

idList<BOEntity*> idGameBustOutWindow::entities

Definition at line 126 of file GameBustOutWindow.h.

bool idGameBustOutWindow::gameOver
private

Definition at line 158 of file GameBustOutWindow.h.

idWinBool idGameBustOutWindow::gamerunning
private

Definition at line 151 of file GameBustOutWindow.h.

int idGameBustOutWindow::gameScore
private

Definition at line 168 of file GameBustOutWindow.h.

byte* idGameBustOutWindow::levelBoardData
private

Definition at line 161 of file GameBustOutWindow.h.

int idGameBustOutWindow::nextBallScore
private

Definition at line 169 of file GameBustOutWindow.h.

int idGameBustOutWindow::numBricks
private

Definition at line 164 of file GameBustOutWindow.h.

int idGameBustOutWindow::numLevels
private

Definition at line 160 of file GameBustOutWindow.h.

idWinBool idGameBustOutWindow::onContinue
private

Definition at line 153 of file GameBustOutWindow.h.

idWinBool idGameBustOutWindow::onFire
private

Definition at line 152 of file GameBustOutWindow.h.

idWinBool idGameBustOutWindow::onNewGame
private

Definition at line 154 of file GameBustOutWindow.h.

idWinBool idGameBustOutWindow::onNewLevel
private

Definition at line 155 of file GameBustOutWindow.h.

BOBrick* idGameBustOutWindow::paddle
private

Definition at line 182 of file GameBustOutWindow.h.

float idGameBustOutWindow::paddleVelocity
private

Definition at line 172 of file GameBustOutWindow.h.

idList<BOEntity*> idGameBustOutWindow::powerUps
private

Definition at line 180 of file GameBustOutWindow.h.

float idGameBustOutWindow::timeSlice
private

Definition at line 157 of file GameBustOutWindow.h.

bool idGameBustOutWindow::updateScore
private

Definition at line 167 of file GameBustOutWindow.h.


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