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

#include <GameSSDWindow.h>

Inheritance diagram for SSDExplosion:
SSDEntity

Public Types

enum  { EXPLOSION_NORMAL = 0, EXPLOSION_TELEPORT = 1 }
 

Public Member Functions

 SSDExplosion ()
 
 ~SSDExplosion ()
 
virtual void WriteToSaveGame (idFile *savefile)
 
virtual void ReadFromSaveGame (idFile *savefile, idGameSSDWindow *_game)
 
void Init (idGameSSDWindow *_game, const idVec3 &_position, const idVec2 &_size, int _length, int _type, SSDEntity *_buddy, bool _killBuddy=true, bool _followBuddy=true)
 
virtual void EntityUpdate ()
 
- Public Member Functions inherited from SSDEntity
 SSDEntity ()
 
virtual ~SSDEntity ()
 
void EntityInit ()
 
void SetGame (idGameSSDWindow *_game)
 
void SetMaterial (const char *_name)
 
void SetPosition (const idVec3 &_position)
 
void SetSize (const idVec2 &_size)
 
void SetRadius (float _radius, float _hitFactor=1.0f)
 
void SetRotation (float _rotation)
 
void Update ()
 
bool HitTest (const idVec2 &pt)
 
virtual void Draw (idDeviceContext *dc)
 
virtual void DestroyEntity ()
 
virtual void OnHit (int key)
 
virtual void OnStrikePlayer ()
 
idBounds WorldToScreen (const idBounds worldBounds)
 
idVec3 WorldToScreen (const idVec3 &worldPos)
 
idVec3 ScreenToWorld (const idVec3 &screenPos)
 

Static Public Member Functions

static SSDExplosion * GetNewExplosion (idGameSSDWindow *_game, const idVec3 &_position, const idVec2 &_size, int _length, int _type, SSDEntity *_buddy, bool _killBuddy=true, bool _followBuddy=true)
 
static SSDExplosion * GetSpecificExplosion (int id)
 
static void WriteExplosions (idFile *savefile)
 
static void ReadExplosions (idFile *savefile, idGameSSDWindow *_game)
 

Public Attributes

idVec2 finalSize
 
int length
 
int beginTime
 
int endTime
 
int explosionType
 
SSDEntity * buddy
 
bool killBuddy
 
bool followBuddy
 
- Public Attributes inherited from SSDEntity
int type
 
int id
 
idStr materialName
 
const idMaterial * material
 
idVec3 position
 
idVec2 size
 
float radius
 
float hitRadius
 
float rotation
 
idVec4 matColor
 
idStr text
 
float textScale
 
idVec4 foreColor
 
idGameSSDWindow * game
 
int currentTime
 
int lastUpdate
 
int elapsed
 
bool destroyed
 
bool noHit
 
bool noPlayerDamage
 
bool inUse
 

Static Protected Attributes

static SSDExplosion explosionPool [MAX_EXPLOSIONS]
 

Detailed Description

Definition at line 233 of file GameSSDWindow.h.

Member Enumeration Documentation

anonymous enum
Enumerator
EXPLOSION_NORMAL 
EXPLOSION_TELEPORT 

Definition at line 247 of file GameSSDWindow.h.

Constructor & Destructor Documentation

SSDExplosion::SSDExplosion ( )

Definition at line 597 of file GameSSDWindow.cpp.

SSDExplosion::~SSDExplosion ( )

Definition at line 601 of file GameSSDWindow.cpp.

Member Function Documentation

void SSDExplosion::EntityUpdate ( )
virtual

Reimplemented from SSDEntity.

Definition at line 670 of file GameSSDWindow.cpp.

SSDExplosion * SSDExplosion::GetNewExplosion ( idGameSSDWindow *  _game,
const idVec3 &  _position,
const idVec2 &  _size,
int  _length,
int  _type,
SSDEntity *  _buddy,
bool  _killBuddy = true,
bool  _followBuddy = true 
)
static

Definition at line 697 of file GameSSDWindow.cpp.

SSDExplosion * SSDExplosion::GetSpecificExplosion ( int  id)
static

Definition at line 708 of file GameSSDWindow.cpp.

void SSDExplosion::Init ( idGameSSDWindow *  _game,
const idVec3 &  _position,
const idVec2 &  _size,
int  _length,
int  _type,
SSDEntity *  _buddy,
bool  _killBuddy = true,
bool  _followBuddy = true 
)

Definition at line 641 of file GameSSDWindow.cpp.

void SSDExplosion::ReadExplosions ( idFile *  savefile,
idGameSSDWindow *  _game 
)
static

Definition at line 728 of file GameSSDWindow.cpp.

void SSDExplosion::ReadFromSaveGame ( idFile *  savefile,
idGameSSDWindow *  _game 
)
virtual

Reimplemented from SSDEntity.

Definition at line 621 of file GameSSDWindow.cpp.

void SSDExplosion::WriteExplosions ( idFile *  savefile)
static

Definition at line 712 of file GameSSDWindow.cpp.

void SSDExplosion::WriteToSaveGame ( idFile *  savefile)
virtual

Reimplemented from SSDEntity.

Definition at line 604 of file GameSSDWindow.cpp.

Member Data Documentation

int SSDExplosion::beginTime

Definition at line 238 of file GameSSDWindow.h.

SSDEntity* SSDExplosion::buddy

Definition at line 243 of file GameSSDWindow.h.

int SSDExplosion::endTime

Definition at line 239 of file GameSSDWindow.h.

SSDExplosion SSDExplosion::explosionPool
staticprotected

Definition at line 268 of file GameSSDWindow.h.

int SSDExplosion::explosionType

Definition at line 240 of file GameSSDWindow.h.

idVec2 SSDExplosion::finalSize

Definition at line 236 of file GameSSDWindow.h.

bool SSDExplosion::followBuddy

Definition at line 245 of file GameSSDWindow.h.

bool SSDExplosion::killBuddy

Definition at line 244 of file GameSSDWindow.h.

int SSDExplosion::length

Definition at line 237 of file GameSSDWindow.h.


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