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

#include <GameSSDWindow.h>

Inheritance diagram for SSDProjectile:
SSDEntity

Public Member Functions

 SSDProjectile ()
 
 ~SSDProjectile ()
 
virtual void WriteToSaveGame (idFile *savefile)
 
virtual void ReadFromSaveGame (idFile *savefile, idGameSSDWindow *_game)
 
void Init (idGameSSDWindow *_game, const idVec3 &_beginPosition, const idVec3 &_endPosition, float _speed, float _size)
 
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 SSDProjectileGetNewProjectile (idGameSSDWindow *_game, const idVec3 &_beginPosition, const idVec3 &_endPosition, float _speed, float _size)
 
static SSDProjectileGetSpecificProjectile (int id)
 
static void WriteProjectiles (idFile *savefile)
 
static void ReadProjectiles (idFile *savefile, idGameSSDWindow *_game)
 

Static Protected Attributes

static SSDProjectile projectilePool [MAX_PROJECTILES]
 

Private Attributes

idVec3 dir
 
idVec3 speed
 
int beginTime
 
int endTime
 
idVec3 endPosition
 

Additional Inherited Members

- Public Attributes inherited from SSDEntity
int type
 
int id
 
idStr materialName
 
const idMaterialmaterial
 
idVec3 position
 
idVec2 size
 
float radius
 
float hitRadius
 
float rotation
 
idVec4 matColor
 
idStr text
 
float textScale
 
idVec4 foreColor
 
idGameSSDWindowgame
 
int currentTime
 
int lastUpdate
 
int elapsed
 
bool destroyed
 
bool noHit
 
bool noPlayerDamage
 
bool inUse
 

Detailed Description

Definition at line 308 of file GameSSDWindow.h.

Constructor & Destructor Documentation

SSDProjectile::SSDProjectile ( )

Definition at line 897 of file GameSSDWindow.cpp.

SSDProjectile::~SSDProjectile ( )

Definition at line 901 of file GameSSDWindow.cpp.

Member Function Documentation

void SSDProjectile::EntityUpdate ( )
virtual

Reimplemented from SSDEntity.

Definition at line 947 of file GameSSDWindow.cpp.

SSDProjectile * SSDProjectile::GetNewProjectile ( idGameSSDWindow _game,
const idVec3 _beginPosition,
const idVec3 _endPosition,
float  _speed,
float  _size 
)
static

Definition at line 961 of file GameSSDWindow.cpp.

SSDProjectile * SSDProjectile::GetSpecificProjectile ( int  id)
static

Definition at line 972 of file GameSSDWindow.cpp.

void SSDProjectile::Init ( idGameSSDWindow _game,
const idVec3 _beginPosition,
const idVec3 _endPosition,
float  _speed,
float  _size 
)

Definition at line 926 of file GameSSDWindow.cpp.

void SSDProjectile::ReadFromSaveGame ( idFile savefile,
idGameSSDWindow _game 
)
virtual

Reimplemented from SSDEntity.

Definition at line 915 of file GameSSDWindow.cpp.

void SSDProjectile::ReadProjectiles ( idFile savefile,
idGameSSDWindow _game 
)
static

Definition at line 992 of file GameSSDWindow.cpp.

void SSDProjectile::WriteProjectiles ( idFile savefile)
static

Definition at line 976 of file GameSSDWindow.cpp.

void SSDProjectile::WriteToSaveGame ( idFile savefile)
virtual

Reimplemented from SSDEntity.

Definition at line 904 of file GameSSDWindow.cpp.

Member Data Documentation

int SSDProjectile::beginTime
private

Definition at line 312 of file GameSSDWindow.h.

idVec3 SSDProjectile::dir
private

Definition at line 310 of file GameSSDWindow.h.

idVec3 SSDProjectile::endPosition
private

Definition at line 315 of file GameSSDWindow.h.

int SSDProjectile::endTime
private

Definition at line 313 of file GameSSDWindow.h.

SSDProjectile SSDProjectile::projectilePool
staticprotected

Definition at line 333 of file GameSSDWindow.h.

idVec3 SSDProjectile::speed
private

Definition at line 311 of file GameSSDWindow.h.


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