Open source remastering of the Freespace 2 engine
pilotfile Class Reference

#include <pilotfile.h>

Public Member Functions

 pilotfile ()
 ~pilotfile ()
bool load_player (const char *callsign, player *_p=NULL)
bool load_savefile (const char *campaign)
bool save_player (player *_p=NULL)
bool save_savefile ()
void update_stats (scoring_struct *stats, bool training=false)
void update_stats_backout (scoring_struct *stats, bool training=false)
void reset_stats ()
bool verify (const char *fname, int *rank=NULL, char *valid_language=NULL)
bool is_invalid ()

Detailed Description

Definition at line 33 of file pilotfile.h.

Constructor & Destructor Documentation

pilotfile::pilotfile ( )

Definition at line 10 of file pilotfile.cpp.

pilotfile::~pilotfile ( )

Definition at line 23 of file pilotfile.cpp.

Member Function Documentation

bool pilotfile::is_invalid ( )

Definition at line 53 of file pilotfile.h.

bool pilotfile::load_player ( const char *  callsign,
player _p = NULL 

Definition at line 779 of file plr.cpp.

bool pilotfile::load_savefile ( const char *  campaign)

Definition at line 1347 of file csg.cpp.

void pilotfile::reset_stats ( )

Reset stats stored in the .plr file; all_time_stats & multi_stats

Definition at line 302 of file pilotfile.cpp.

bool pilotfile::save_player ( player _p = NULL)

Definition at line 935 of file plr.cpp.

bool pilotfile::save_savefile ( )

Definition at line 1524 of file csg.cpp.

void pilotfile::update_stats ( scoring_struct stats,
bool  training = false 

Definition at line 66 of file pilotfile.cpp.

void pilotfile::update_stats_backout ( scoring_struct stats,
bool  training = false 

Definition at line 185 of file pilotfile.cpp.

bool pilotfile::verify ( const char *  fname,
int rank = NULL,
char *  valid_language = NULL 

Definition at line 1006 of file plr.cpp.

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