Galactic Bloodshed
Macros | Functions
enroll.cc File Reference
#include "gb/enroll.h"
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include "gb/game_info.h"
#include "gb/racegen.h"
Include dependency graph for enroll.cc:

Go to the source code of this file.

Macros

#define DEFAULT_ENROLLMENT_FILENAME   "enroll.saves"
 
#define DEFAULT_ENROLLMENT_FAILURE_FILENAME   "failures.saves"
 

Functions

int enroll_valid_race ()
 
static int enroll_player_race (char *failure_filename)
 
int enroll (int argc, char *argv[])
 
void process (int argc, char *argv[])
 

Macro Definition Documentation

◆ DEFAULT_ENROLLMENT_FAILURE_FILENAME

#define DEFAULT_ENROLLMENT_FAILURE_FILENAME   "failures.saves"

Definition at line 17 of file enroll.cc.

◆ DEFAULT_ENROLLMENT_FILENAME

#define DEFAULT_ENROLLMENT_FILENAME   "enroll.saves"

Definition at line 16 of file enroll.cc.

Function Documentation

◆ enroll()

int enroll ( int  argc,
char *  argv[] 
)

Definition at line 138 of file enroll.cc.

References x::address, critique_to_file(), enroll_player_race(), enroll_valid_race(), and x::name.

Here is the call graph for this function:

◆ enroll_player_race()

static int enroll_player_race ( char *  failure_filename)
static

Definition at line 26 of file enroll.cc.

References x::address, critique_to_file(), Dialogue(), enroll_player_race(), enroll_valid_race(), modify_print_loop(), x::name, please_quit, print_to_file(), and x::status.

Referenced by enroll(), enroll_player_race(), and process().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ enroll_valid_race()

int enroll_valid_race ( )

Definition at line 48 of file GB_racegen.cc.

◆ process()

void process ( int  argc,
char *  argv[] 
)

Definition at line 167 of file enroll.cc.

References x::address, cost_of_race(), enroll_player_race(), last_npoints, load_from_file(), x::name, and npoints.

Here is the call graph for this function: