doom3-gpl
Doom 3 GPL source release
|
Powerups work in two phases: 1.) Closed container hurls at you If you shoot the container it open 3.) If an opened powerup hits the player he aquires the powerup Powerup Types: Health - Give a specific amount of health Super Blaster - Increases the power of the blaster (lasts a specific amount of time) Asteroid Nuke - Destroys all asteroids on screen as soon as it is aquired Rescue Powerup - Rescues all astronauts as soon as it is acquited Bonus Points - Gives some bonus points when acquired. More...
#include <GameSSDWindow.h>
Static Public Member Functions | |
static SSDPowerup * | GetNewPowerup (idGameSSDWindow *_game, float _speed, float _rotation) |
static SSDPowerup * | GetSpecificPowerup (int id) |
static void | WritePowerups (idFile *savefile) |
static void | ReadPowerups (idFile *savefile, idGameSSDWindow *_game) |
Static Protected Attributes | |
static SSDPowerup | powerupPool [MAX_POWERUPS] |
Private Types | |
enum | { POWERUP_STATE_CLOSED = 0, POWERUP_STATE_OPEN } |
enum | { POWERUP_TYPE_HEALTH = 0, POWERUP_TYPE_SUPER_BLASTER, POWERUP_TYPE_ASTEROID_NUKE, POWERUP_TYPE_RESCUE_ALL, POWERUP_TYPE_BONUS_POINTS, POWERUP_TYPE_DAMAGE, POWERUP_TYPE_MAX } |
Private Attributes | |
int | powerupState |
int | powerupType |
Additional Inherited Members | |
Public Attributes inherited from SSDMover | |
idVec3 | speed |
float | rotationSpeed |
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 |
Powerups work in two phases: 1.) Closed container hurls at you If you shoot the container it open 3.) If an opened powerup hits the player he aquires the powerup Powerup Types: Health - Give a specific amount of health Super Blaster - Increases the power of the blaster (lasts a specific amount of time) Asteroid Nuke - Destroys all asteroids on screen as soon as it is aquired Rescue Powerup - Rescues all astronauts as soon as it is acquited Bonus Points - Gives some bonus points when acquired.
Definition at line 351 of file GameSSDWindow.h.
|
private |
Enumerator | |
---|---|
POWERUP_STATE_CLOSED | |
POWERUP_STATE_OPEN |
Definition at line 353 of file GameSSDWindow.h.
|
private |
Enumerator | |
---|---|
POWERUP_TYPE_HEALTH | |
POWERUP_TYPE_SUPER_BLASTER | |
POWERUP_TYPE_ASTEROID_NUKE | |
POWERUP_TYPE_RESCUE_ALL | |
POWERUP_TYPE_BONUS_POINTS | |
POWERUP_TYPE_DAMAGE | |
POWERUP_TYPE_MAX |
Definition at line 358 of file GameSSDWindow.h.
SSDPowerup::SSDPowerup | ( | ) |
Definition at line 1023 of file GameSSDWindow.cpp.
|
virtual |
Definition at line 1027 of file GameSSDWindow.cpp.
|
static |
Definition at line 1152 of file GameSSDWindow.cpp.
|
static |
Definition at line 1164 of file GameSSDWindow.cpp.
void SSDPowerup::Init | ( | idGameSSDWindow * | _game, |
float | _speed, | ||
float | _rotation | ||
) |
Definition at line 1119 of file GameSSDWindow.cpp.
void SSDPowerup::OnActivatePowerup | ( | ) |
Definition at line 1080 of file GameSSDWindow.cpp.
Reimplemented from SSDEntity.
Definition at line 1044 of file GameSSDWindow.cpp.
void SSDPowerup::OnOpenPowerup | ( | ) |
Definition at line 1077 of file GameSSDWindow.cpp.
|
virtual |
Reimplemented from SSDEntity.
Definition at line 1066 of file GameSSDWindow.cpp.
|
virtual |
Reimplemented from SSDMover.
Definition at line 1037 of file GameSSDWindow.cpp.
|
static |
Definition at line 1184 of file GameSSDWindow.cpp.
Definition at line 1168 of file GameSSDWindow.cpp.
Reimplemented from SSDMover.
Definition at line 1030 of file GameSSDWindow.cpp.
|
staticprotected |
Definition at line 398 of file GameSSDWindow.h.
|
private |
Definition at line 368 of file GameSSDWindow.h.
|
private |
Definition at line 369 of file GameSSDWindow.h.