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

#include <GameSSDWindow.h>

Inheritance diagram for SSDEntity:
SSDExplosion SSDMover SSDPoints SSDProjectile SSDAsteroid SSDAstronaut SSDPowerup

Public Member Functions

 SSDEntity ()
 
virtual ~SSDEntity ()
 
virtual void WriteToSaveGame (idFile *savefile)
 
virtual void ReadFromSaveGame (idFile *savefile, idGameSSDWindow *_game)
 
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 EntityUpdate ()
 
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)
 

Public Attributes

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
 

Detailed Description

Definition at line 66 of file GameSSDWindow.h.

Constructor & Destructor Documentation

SSDEntity::SSDEntity ( )

Definition at line 106 of file GameSSDWindow.cpp.

SSDEntity::~SSDEntity ( )
virtual

Definition at line 110 of file GameSSDWindow.cpp.

Member Function Documentation

void SSDEntity::DestroyEntity ( )
virtual

Definition at line 296 of file GameSSDWindow.cpp.

void SSDEntity::Draw ( idDeviceContext *  dc)
virtual

Definition at line 269 of file GameSSDWindow.cpp.

void SSDEntity::EntityInit ( )

Definition at line 170 of file GameSSDWindow.cpp.

virtual void SSDEntity::EntityUpdate ( )
inlinevirtual

Reimplemented in SSDProjectile, SSDPoints, SSDExplosion, SSDAsteroid, and SSDMover.

Definition at line 118 of file GameSSDWindow.h.

bool SSDEntity::HitTest ( const idVec2 &  pt)

Definition at line 244 of file GameSSDWindow.cpp.

virtual void SSDEntity::OnHit ( int  key)
inlinevirtual

Reimplemented in SSDPowerup.

Definition at line 122 of file GameSSDWindow.h.

virtual void SSDEntity::OnStrikePlayer ( )
inlinevirtual

Reimplemented in SSDPowerup.

Definition at line 123 of file GameSSDWindow.h.

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

Reimplemented in SSDPowerup, SSDProjectile, SSDPoints, SSDExplosion, SSDAstronaut, SSDAsteroid, and SSDMover.

Definition at line 141 of file GameSSDWindow.cpp.

idVec3 SSDEntity::ScreenToWorld ( const idVec3 &  screenPos)

Definition at line 327 of file GameSSDWindow.cpp.

void SSDEntity::SetGame ( idGameSSDWindow *  _game)

Definition at line 200 of file GameSSDWindow.cpp.

void SSDEntity::SetMaterial ( const char *  _name)

Definition at line 204 of file GameSSDWindow.cpp.

void SSDEntity::SetPosition ( const idVec3 &  _position)

Definition at line 210 of file GameSSDWindow.cpp.

void SSDEntity::SetRadius ( float  _radius,
float  _hitFactor = 1.0f 
)

Definition at line 218 of file GameSSDWindow.cpp.

void SSDEntity::SetRotation ( float  _rotation)

Definition at line 223 of file GameSSDWindow.cpp.

void SSDEntity::SetSize ( const idVec2 &  _size)

Definition at line 214 of file GameSSDWindow.cpp.

void SSDEntity::Update ( void  )

Definition at line 227 of file GameSSDWindow.cpp.

idBounds SSDEntity::WorldToScreen ( const idBounds  worldBounds)

Definition at line 300 of file GameSSDWindow.cpp.

idVec3 SSDEntity::WorldToScreen ( const idVec3 &  worldPos)

Definition at line 309 of file GameSSDWindow.cpp.

void SSDEntity::WriteToSaveGame ( idFile *  savefile)
virtual

Reimplemented in SSDPowerup, SSDProjectile, SSDPoints, SSDExplosion, SSDAstronaut, SSDAsteroid, and SSDMover.

Definition at line 113 of file GameSSDWindow.cpp.

Member Data Documentation

int SSDEntity::currentTime

Definition at line 87 of file GameSSDWindow.h.

bool SSDEntity::destroyed

Definition at line 91 of file GameSSDWindow.h.

int SSDEntity::elapsed

Definition at line 89 of file GameSSDWindow.h.

idVec4 SSDEntity::foreColor

Definition at line 84 of file GameSSDWindow.h.

idGameSSDWindow* SSDEntity::game

Definition at line 86 of file GameSSDWindow.h.

float SSDEntity::hitRadius

Definition at line 77 of file GameSSDWindow.h.

int SSDEntity::id

Definition at line 71 of file GameSSDWindow.h.

bool SSDEntity::inUse

Definition at line 95 of file GameSSDWindow.h.

int SSDEntity::lastUpdate

Definition at line 88 of file GameSSDWindow.h.

idVec4 SSDEntity::matColor

Definition at line 80 of file GameSSDWindow.h.

const idMaterial* SSDEntity::material

Definition at line 73 of file GameSSDWindow.h.

idStr SSDEntity::materialName

Definition at line 72 of file GameSSDWindow.h.

bool SSDEntity::noHit

Definition at line 92 of file GameSSDWindow.h.

bool SSDEntity::noPlayerDamage

Definition at line 93 of file GameSSDWindow.h.

idVec3 SSDEntity::position

Definition at line 74 of file GameSSDWindow.h.

float SSDEntity::radius

Definition at line 76 of file GameSSDWindow.h.

float SSDEntity::rotation

Definition at line 78 of file GameSSDWindow.h.

idVec2 SSDEntity::size

Definition at line 75 of file GameSSDWindow.h.

idStr SSDEntity::text

Definition at line 82 of file GameSSDWindow.h.

float SSDEntity::textScale

Definition at line 83 of file GameSSDWindow.h.

int SSDEntity::type

Definition at line 70 of file GameSSDWindow.h.


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