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 | Public Attributes | Static Protected Attributes | List of all members
SSDAsteroid Class Reference

#include <GameSSDWindow.h>

Inheritance diagram for SSDAsteroid:
SSDMover SSDEntity

Public Member Functions

 SSDAsteroid ()
 
 ~SSDAsteroid ()
 
virtual void WriteToSaveGame (idFile *savefile)
 
virtual void ReadFromSaveGame (idFile *savefile, idGameSSDWindow *_game)
 
void Init (idGameSSDWindow *_game, const idVec3 &startPosition, const idVec2 &_size, float _speed, float rotate, int _health)
 
virtual void EntityUpdate ()
 
- Public Member Functions inherited from SSDMover
 SSDMover ()
 
virtual ~SSDMover ()
 
void MoverInit (const idVec3 &_speed, float _rotationSpeed)
 
- 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 SSDAsteroidGetNewAsteroid (idGameSSDWindow *_game, const idVec3 &startPosition, const idVec2 &_size, float _speed, float rotate, int _health)
 
static SSDAsteroidGetSpecificAsteroid (int id)
 
static void WriteAsteroids (idFile *savefile)
 
static void ReadAsteroids (idFile *savefile, idGameSSDWindow *_game)
 

Public Attributes

int health
 
- Public Attributes inherited from SSDMover
idVec3 speed
 
float rotationSpeed
 
- 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
 

Static Protected Attributes

static SSDAsteroid asteroidPool [MAX_ASTEROIDS]
 

Detailed Description

Definition at line 166 of file GameSSDWindow.h.

Constructor & Destructor Documentation

SSDAsteroid::SSDAsteroid ( )

Definition at line 399 of file GameSSDWindow.cpp.

SSDAsteroid::~SSDAsteroid ( )

Definition at line 402 of file GameSSDWindow.cpp.

Member Function Documentation

void SSDAsteroid::EntityUpdate ( )
virtual

Reimplemented from SSDMover.

Definition at line 437 of file GameSSDWindow.cpp.

SSDAsteroid * SSDAsteroid::GetNewAsteroid ( idGameSSDWindow _game,
const idVec3 startPosition,
const idVec2 _size,
float  _speed,
float  rotate,
int  _health 
)
static

Definition at line 442 of file GameSSDWindow.cpp.

SSDAsteroid * SSDAsteroid::GetSpecificAsteroid ( int  id)
static

Definition at line 455 of file GameSSDWindow.cpp.

void SSDAsteroid::Init ( idGameSSDWindow _game,
const idVec3 startPosition,
const idVec2 _size,
float  _speed,
float  rotate,
int  _health 
)

Definition at line 417 of file GameSSDWindow.cpp.

void SSDAsteroid::ReadAsteroids ( idFile savefile,
idGameSSDWindow _game 
)
static

Definition at line 475 of file GameSSDWindow.cpp.

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

Reimplemented from SSDMover.

Definition at line 411 of file GameSSDWindow.cpp.

void SSDAsteroid::WriteAsteroids ( idFile savefile)
static

Definition at line 459 of file GameSSDWindow.cpp.

void SSDAsteroid::WriteToSaveGame ( idFile savefile)
virtual

Reimplemented from SSDMover.

Definition at line 405 of file GameSSDWindow.cpp.

Member Data Documentation

SSDAsteroid SSDAsteroid::asteroidPool
staticprotected

Definition at line 190 of file GameSSDWindow.h.

int SSDAsteroid::health

Definition at line 170 of file GameSSDWindow.h.


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