altEngine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Public Attributes | List of all members
Player Class Reference

#include <player.h>

Collaboration diagram for Player:
Collaboration graph
[legend]

Public Member Functions

 Player (Entity *entity, Graphics &gfx, Audio &audio, int model, team_t team, entity_type_t ent_type, vector< Model * > &model_table)
 
 ~Player ()
 
void respawn ()
 
void reset ()
 
void kill ()
 
void render_weapon (Graphics &gfx)
 
void change_weapon_up ()
 
void change_weapon_down ()
 
void best_weapon ()
 
void handle_bot (vector< Entity * > &entity_list, int self)
 
int bot_search_for_items (vector< Entity * > &entity_list, int self)
 
void avoid_walls (Bsp &map)
 
int FindLookAt (vec3 &cameraOrigin, vec3 &cameraDir, vec3 *points, int numPoints)
 
float DistanceToLine (vec3 &direction, vec3 &origin, vec3 &point)
 

Public Attributes

Entityentity
 
char model_name [128]
 
int model_index
 
playertype_t type
 
int health
 
unsigned short int armor
 
unsigned char weapon_flags
 
unsigned short int current_weapon
 
unsigned short int last_weapon
 
unsigned short int ammo_rockets
 
unsigned short int ammo_grenades
 
unsigned short int ammo_slugs
 
unsigned short int ammo_shells
 
unsigned short int ammo_bullets
 
unsigned short int ammo_lightning
 
unsigned short int ammo_plasma
 
unsigned short int ammo_bfg
 
bool holdable_teleporter
 
bool holdable_medikit
 
bool holdable_flag
 
Entitytelefragged
 
unsigned short int reload_timer
 
unsigned short int fall_timer
 
unsigned short int drown_timer
 
unsigned short int flight_timer
 
unsigned short int regen_timer
 
unsigned short int haste_timer
 
unsigned short int quad_timer
 
unsigned short int click_timer
 
unsigned short int invisibility_timer
 
unsigned short int jumppad_timer
 
unsigned short int teleport_timer
 
unsigned short int excellent_timer
 
unsigned short int impressive_count
 
unsigned short int impressive_award_timer
 
unsigned short int excellent_award_timer
 
unsigned short int gauntlet_award_timer
 
unsigned short int pain_timer
 
unsigned short int alert_timer
 
unsigned short int idle_timer
 
unsigned short int dead_timer
 
unsigned short int alive_timer
 
unsigned int current_light
 
unsigned int current_face
 
unsigned short int flash_gauntlet
 
unsigned short int flash_machinegun
 
unsigned short int flash_shotgun
 
unsigned short int flash_grenade
 
unsigned short int flash_rocket
 
unsigned short int flash_railgun
 
unsigned short int flash_lightning
 
unsigned short int flash_plasma
 
float accel
 
float air_accel
 
float max_speed
 
float max_air_speed
 
float air_control
 
int weapon_source
 
int weapon_loop_source
 
bool godmode
 
bool local
 
bool quad_damage
 
bool falling
 
path_t path
 
char name [128]
 
stats_t stats
 
bool spawned
 
bot_state_t bot_state
 
bot_state_t last_state
 
player_state_t state
 
int get_item
 
char ignore [1024]
 
float zoom_level
 
team_t team
 
Model weapon_gauntlet
 
Model weapon_machinegun
 
Model weapon_shotgun
 
Model weapon_grenade
 
Model weapon_rocket
 
Model weapon_lightning
 
Model weapon_railgun
 
Model weapon_plasma
 

Constructor & Destructor Documentation

Player::Player ( Entity entity,
Graphics gfx,
Audio audio,
int  model,
team_t  team,
entity_type_t  ent_type,
vector< Model * > &  model_table 
)

Here is the call graph for this function:

Player::~Player ( )

Member Function Documentation

void Player::avoid_walls ( Bsp map)

Here is the call graph for this function:

void Player::best_weapon ( )

Here is the caller graph for this function:

int Player::bot_search_for_items ( vector< Entity * > &  entity_list,
int  self 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void Player::change_weapon_down ( )

Here is the caller graph for this function:

void Player::change_weapon_up ( )

Here is the caller graph for this function:

float Player::DistanceToLine ( vec3 direction,
vec3 origin,
vec3 point 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int Player::FindLookAt ( vec3 cameraOrigin,
vec3 cameraDir,
vec3 points,
int  numPoints 
)

Here is the call graph for this function:

void Player::handle_bot ( vector< Entity * > &  entity_list,
int  self 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void Player::kill ( )

Here is the caller graph for this function:

void Player::render_weapon ( Graphics gfx)

Here is the call graph for this function:

void Player::reset ( )

Here is the call graph for this function:

void Player::respawn ( )

Here is the caller graph for this function:

Member Data Documentation

float Player::accel
float Player::air_accel
float Player::air_control
unsigned short int Player::alert_timer
unsigned short int Player::alive_timer
unsigned short int Player::ammo_bfg
unsigned short int Player::ammo_bullets
unsigned short int Player::ammo_grenades
unsigned short int Player::ammo_lightning
unsigned short int Player::ammo_plasma
unsigned short int Player::ammo_rockets
unsigned short int Player::ammo_shells
unsigned short int Player::ammo_slugs
unsigned short int Player::armor
bot_state_t Player::bot_state
unsigned short int Player::click_timer
unsigned int Player::current_face
unsigned int Player::current_light
unsigned short int Player::current_weapon
unsigned short int Player::dead_timer
unsigned short int Player::drown_timer
Entity* Player::entity
unsigned short int Player::excellent_award_timer
unsigned short int Player::excellent_timer
unsigned short int Player::fall_timer
bool Player::falling
unsigned short int Player::flash_gauntlet
unsigned short int Player::flash_grenade
unsigned short int Player::flash_lightning
unsigned short int Player::flash_machinegun
unsigned short int Player::flash_plasma
unsigned short int Player::flash_railgun
unsigned short int Player::flash_rocket
unsigned short int Player::flash_shotgun
unsigned short int Player::flight_timer
unsigned short int Player::gauntlet_award_timer
int Player::get_item
bool Player::godmode
unsigned short int Player::haste_timer
int Player::health
bool Player::holdable_flag
bool Player::holdable_medikit
bool Player::holdable_teleporter
unsigned short int Player::idle_timer
char Player::ignore[1024]
unsigned short int Player::impressive_award_timer
unsigned short int Player::impressive_count
unsigned short int Player::invisibility_timer
unsigned short int Player::jumppad_timer
bot_state_t Player::last_state
unsigned short int Player::last_weapon
bool Player::local
float Player::max_air_speed
float Player::max_speed
int Player::model_index
char Player::model_name[128]
char Player::name[128]
unsigned short int Player::pain_timer
path_t Player::path
bool Player::quad_damage
unsigned short int Player::quad_timer
unsigned short int Player::regen_timer
unsigned short int Player::reload_timer
bool Player::spawned
player_state_t Player::state
stats_t Player::stats
team_t Player::team
Entity* Player::telefragged
unsigned short int Player::teleport_timer
playertype_t Player::type
unsigned char Player::weapon_flags
Model Player::weapon_gauntlet
Model Player::weapon_grenade
Model Player::weapon_lightning
int Player::weapon_loop_source
Model Player::weapon_machinegun
Model Player::weapon_plasma
Model Player::weapon_railgun
Model Player::weapon_rocket
Model Player::weapon_shotgun
int Player::weapon_source
float Player::zoom_level

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