Starshatter_Open
Open source Starshatter engine
|
#include <Player.h>
Public Member Functions | |
Player (const char *name) | |
virtual | ~Player () |
int | operator== (const Player &u) const |
int | Identity () const |
const Text & | Name () const |
const Text & | Password () const |
const Text & | Squadron () const |
const Text & | Signature () const |
const Text & | ChatMacro (int n) const |
int | CreateDate () const |
int | Rank () const |
int | Medal (int n) const |
int | Points () const |
int | Medals () const |
int | FlightTime () const |
int | Missions () const |
int | Kills () const |
int | Losses () const |
int | Campaigns () const |
int | Trained () const |
int | FlightModel () const |
int | FlyingStart () const |
int | LandingModel () const |
int | AILevel () const |
int | HUDMode () const |
int | HUDColor () const |
int | FriendlyFire () const |
int | GridMode () const |
int | Gunsight () const |
bool | ShowAward () const |
Text | AwardName () const |
Text | AwardDesc () const |
Bitmap * | AwardImage () const |
Sound * | AwardSound () const |
bool | CanCommand (int ship_class) |
void | SetName (const char *n) |
void | SetPassword (const char *p) |
void | SetSquadron (const char *s) |
void | SetSignature (const char *s) |
void | SetChatMacro (int n, const char *m) |
void | SetCreateDate (int d) |
void | SetRank (int r) |
void | SetPoints (int p) |
void | SetMedals (int m) |
void | SetCampaigns (int n) |
void | SetTrained (int n) |
void | SetFlightTime (int t) |
void | SetMissions (int m) |
void | SetKills (int k) |
void | SetLosses (int l) |
void | AddFlightTime (int t) |
void | AddPoints (int p) |
void | AddMedal (int m) |
void | AddMissions (int m) |
void | AddKills (int k) |
void | AddLosses (int l) |
bool | HasTrained (int n) const |
bool | HasCompletedCampaign (int id) const |
void | SetCampaignComplete (int id) |
void | SetFlightModel (int n) |
void | SetFlyingStart (int n) |
void | SetLandingModel (int n) |
void | SetAILevel (int n) |
void | SetHUDMode (int n) |
void | SetHUDColor (int n) |
void | SetFriendlyFire (int n) |
void | SetGridMode (int n) |
void | SetGunsight (int n) |
void | ClearShowAward () |
Text | EncodeStats () |
void | DecodeStats (const char *stats) |
int | GetMissionPoints (ShipStats *stats, DWORD start_time) |
void | ProcessStats (ShipStats *stats, DWORD start_time) |
bool | EarnedAward (AwardInfo *a, ShipStats *s) |
Static Public Member Functions | |
static const char * | TYPENAME () |
static const char * | RankName (int rank) |
static const char * | RankAbrv (int rank) |
static int | RankFromName (const char *name) |
static Bitmap * | RankInsignia (int rank, int size) |
static const char * | RankDescription (int rank) |
static const char * | MedalName (int medal) |
static Bitmap * | MedalInsignia (int medal, int size) |
static const char * | MedalDescription (int medal) |
static int | CommandRankRequired (int ship_class) |
static List< Player > & | GetRoster () |
static Player * | GetCurrentPlayer () |
static void | SelectPlayer (Player *p) |
static Player * | Create (const char *name) |
static void | Destroy (Player *p) |
static Player * | Find (const char *name) |
static void | Initialize () |
static void | Close () |
static void | Load () |
static void | Save () |
static bool | ConfigExists () |
static void | LoadAwardTables () |
Protected Member Functions | |
Player () | |
void | CreateUniqueID () |
Protected Attributes | |
int | uid |
Text | name |
Text | pass |
Text | squadron |
Text | signature |
Text | chat_macros [10] |
int | mfd [4] |
int | create_date |
int | points |
int | medals |
int | flight_time |
int | missions |
int | kills |
int | losses |
int | campaigns |
int | trained |
int | flight_model |
int | flying_start |
int | landing_model |
int | ai_level |
int | hud_mode |
int | hud_color |
int | ff_level |
int | grid |
int | gunsight |
AwardInfo * | award |
Player::Player | ( | const char * | name | ) |
Definition at line 106 of file Player.cpp.
|
virtual |
Definition at line 136 of file Player.cpp.
|
protected |
Definition at line 121 of file Player.cpp.
void Player::AddFlightTime | ( | int | t | ) |
Definition at line 286 of file Player.cpp.
void Player::AddKills | ( | int | k | ) |
Definition at line 307 of file Player.cpp.
void Player::AddLosses | ( | int | l | ) |
Definition at line 314 of file Player.cpp.
void Player::AddMedal | ( | int | m | ) |
void Player::AddMissions | ( | int | m | ) |
Definition at line 300 of file Player.cpp.
void Player::AddPoints | ( | int | p | ) |
Definition at line 293 of file Player.cpp.
Text Player::AwardDesc | ( | ) | const |
Definition at line 407 of file Player.cpp.
Bitmap * Player::AwardImage | ( | ) | const |
Definition at line 416 of file Player.cpp.
Text Player::AwardName | ( | ) | const |
Definition at line 398 of file Player.cpp.
Sound * Player::AwardSound | ( | ) | const |
Definition at line 425 of file Player.cpp.
bool Player::CanCommand | ( | int | ship_class | ) |
Definition at line 606 of file Player.cpp.
const Text & Player::ChatMacro | ( | int | n | ) | const |
Definition at line 174 of file Player.cpp.
void Player::ClearShowAward | ( | ) |
Definition at line 392 of file Player.cpp.
|
static |
Definition at line 908 of file Player.cpp.
|
static |
Definition at line 622 of file Player.cpp.
|
static |
Definition at line 923 of file Player.cpp.
|
static |
Definition at line 854 of file Player.cpp.
|
protected |
Definition at line 1542 of file Player.cpp.
void Player::DecodeStats | ( | const char * | stats | ) |
Definition at line 1246 of file Player.cpp.
|
static |
Definition at line 873 of file Player.cpp.
Definition at line 718 of file Player.cpp.
Text Player::EncodeStats | ( | ) |
Definition at line 1219 of file Player.cpp.
|
static |
Definition at line 842 of file Player.cpp.
|
static |
Definition at line 799 of file Player.cpp.
int Player::GetMissionPoints | ( | ShipStats * | stats, |
DWORD | start_time | ||
) |
Definition at line 637 of file Player.cpp.
Definition at line 793 of file Player.cpp.
bool Player::HasCompletedCampaign | ( | int | id | ) | const |
Definition at line 231 of file Player.cpp.
bool Player::HasTrained | ( | int | n | ) | const |
Definition at line 222 of file Player.cpp.
|
static |
Definition at line 893 of file Player.cpp.
|
static |
Definition at line 935 of file Player.cpp.
|
static |
Definition at line 1333 of file Player.cpp.
int Player::Medal | ( | int | n | ) | const |
Definition at line 534 of file Player.cpp.
|
static |
Definition at line 591 of file Player.cpp.
|
static |
Definition at line 573 of file Player.cpp.
|
static |
Definition at line 560 of file Player.cpp.
void Player::ProcessStats | ( | ShipStats * | stats, |
DWORD | start_time | ||
) |
Definition at line 671 of file Player.cpp.
int Player::Rank | ( | ) | const |
Definition at line 511 of file Player.cpp.
|
static |
Definition at line 454 of file Player.cpp.
|
static |
Definition at line 485 of file Player.cpp.
|
static |
Definition at line 498 of file Player.cpp.
|
static |
Definition at line 467 of file Player.cpp.
|
static |
Definition at line 441 of file Player.cpp.
|
static |
Definition at line 1131 of file Player.cpp.
|
static |
Definition at line 805 of file Player.cpp.
void Player::SetAILevel | ( | int | n | ) |
Definition at line 347 of file Player.cpp.
void Player::SetCampaignComplete | ( | int | id | ) |
Definition at line 240 of file Player.cpp.
void Player::SetCampaigns | ( | int | n | ) |
Definition at line 203 of file Player.cpp.
void Player::SetChatMacro | ( | int | n, |
const char * | m | ||
) |
Definition at line 183 of file Player.cpp.
void Player::SetCreateDate | ( | int | d | ) |
Definition at line 249 of file Player.cpp.
void Player::SetFlightModel | ( | int | n | ) |
Definition at line 323 of file Player.cpp.
void Player::SetFlightTime | ( | int | t | ) |
Definition at line 256 of file Player.cpp.
void Player::SetFlyingStart | ( | int | n | ) |
Definition at line 332 of file Player.cpp.
void Player::SetFriendlyFire | ( | int | n | ) |
Definition at line 367 of file Player.cpp.
void Player::SetGridMode | ( | int | n | ) |
Definition at line 376 of file Player.cpp.
void Player::SetGunsight | ( | int | n | ) |
Definition at line 384 of file Player.cpp.
void Player::SetHUDColor | ( | int | n | ) |
Definition at line 360 of file Player.cpp.
void Player::SetHUDMode | ( | int | n | ) |
Definition at line 353 of file Player.cpp.
void Player::SetKills | ( | int | k | ) |
Definition at line 270 of file Player.cpp.
void Player::SetLandingModel | ( | int | n | ) |
Definition at line 338 of file Player.cpp.
void Player::SetLosses | ( | int | l | ) |
Definition at line 277 of file Player.cpp.
void Player::SetMedals | ( | int | m | ) |
Definition at line 197 of file Player.cpp.
void Player::SetMissions | ( | int | m | ) |
Definition at line 263 of file Player.cpp.
void Player::SetName | ( | const char * | n | ) |
Definition at line 142 of file Player.cpp.
void Player::SetPassword | ( | const char * | p | ) |
Definition at line 149 of file Player.cpp.
void Player::SetPoints | ( | int | p | ) |
Definition at line 190 of file Player.cpp.
void Player::SetRank | ( | int | r | ) |
Definition at line 523 of file Player.cpp.
void Player::SetSignature | ( | const char * | s | ) |
Definition at line 167 of file Player.cpp.
void Player::SetSquadron | ( | const char * | s | ) |
Definition at line 160 of file Player.cpp.
void Player::SetTrained | ( | int | n | ) |
Definition at line 209 of file Player.cpp.