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
SSDAstronaut Class Reference

#include <GameSSDWindow.h>

Inheritance diagram for SSDAstronaut:
SSDMover SSDEntity

Public Member Functions

 SSDAstronaut ()
 
 ~SSDAstronaut ()
 
virtual void WriteToSaveGame (idFile *savefile)
 
virtual void ReadFromSaveGame (idFile *savefile, idGameSSDWindow *_game)
 
void Init (idGameSSDWindow *_game, const idVec3 &startPosition, float _speed, float rotate, int _health)
 
- Public Member Functions inherited from SSDMover
 SSDMover ()
 
virtual ~SSDMover ()
 
void MoverInit (const idVec3 &_speed, float _rotationSpeed)
 
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 SSDAstronautGetNewAstronaut (idGameSSDWindow *_game, const idVec3 &startPosition, float _speed, float rotate, int _health)
 
static SSDAstronautGetSpecificAstronaut (int id)
 
static void WriteAstronauts (idFile *savefile)
 
static void ReadAstronauts (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 SSDAstronaut astronautPool [MAX_ASTRONAUT]
 

Detailed Description

Definition at line 201 of file GameSSDWindow.h.

Constructor & Destructor Documentation

SSDAstronaut::SSDAstronaut ( )

Definition at line 497 of file GameSSDWindow.cpp.

SSDAstronaut::~SSDAstronaut ( )

Definition at line 500 of file GameSSDWindow.cpp.

Member Function Documentation

SSDAstronaut * SSDAstronaut::GetNewAstronaut ( idGameSSDWindow _game,
const idVec3 startPosition,
float  _speed,
float  rotate,
int  _health 
)
static

Definition at line 533 of file GameSSDWindow.cpp.

SSDAstronaut * SSDAstronaut::GetSpecificAstronaut ( int  id)
static

Definition at line 545 of file GameSSDWindow.cpp.

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

Definition at line 515 of file GameSSDWindow.cpp.

void SSDAstronaut::ReadAstronauts ( idFile savefile,
idGameSSDWindow _game 
)
static

Definition at line 566 of file GameSSDWindow.cpp.

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

Reimplemented from SSDMover.

Definition at line 509 of file GameSSDWindow.cpp.

void SSDAstronaut::WriteAstronauts ( idFile savefile)
static

Definition at line 550 of file GameSSDWindow.cpp.

void SSDAstronaut::WriteToSaveGame ( idFile savefile)
virtual

Reimplemented from SSDMover.

Definition at line 503 of file GameSSDWindow.cpp.

Member Data Documentation

SSDAstronaut SSDAstronaut::astronautPool
staticprotected

Definition at line 222 of file GameSSDWindow.h.

int SSDAstronaut::health

Definition at line 205 of file GameSSDWindow.h.


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