|
Galactic Bloodshed
|
#include <cstdio>Go to the source code of this file.
Classes | |
| struct | attribute |
| struct | x |
Functions | |
| int | Dialogue (const char *,...) |
| int | critique_to_file (FILE *f, int rigorous_checking, int is_player_race) |
| void | print_to_file (FILE *f, int verbose) |
| int | load_from_file (FILE *g) |
| int | cost_of_race () |
| void | modify_print_loop (int level) |
Variables | |
| const char * | planet_print_name [N_HOME_PLANET_TYPES] |
| const int | planet_cost [N_HOME_PLANET_TYPES] |
| const char * | race_print_name [N_RACE_TYPES] |
| const int | race_cost [N_RACE_TYPES] |
| const char * | priv_print_name [N_PRIV_TYPES] |
| const char * | sector_print_name [N_SECTOR_TYPES] |
| const int | n_sector_types_cost [N_SECTOR_TYPES] |
| const double | compat_cov [N_SECTOR_TYPES][N_SECTOR_TYPES] |
| const double | planet_compat_cov [N_HOME_PLANET_TYPES][N_SECTOR_TYPES] |
| struct x race_info cost_info | last |
| int | npoints |
| int | last_npoints |
| int | altered |
| int | changed |
| int | please_quit |
| #define ADVENT FIRST_ATTRIBUTE |
| #define H_EARTH FIRST_HOME_PLANET_TYPE |
| #define LAST_RACE_TYPE R_METAMORPH |
| #define N_ATTRIBUTES (LAST_ATTRIBUTE + 1) |
| #define N_HOME_PLANET_TYPES (LAST_HOME_PLANET_TYPE + 1) |
| #define N_PRIV_TYPES (LAST_PRIV_TYPE + 1) |
| #define N_RACE_TYPES (LAST_RACE_TYPE + 1) |
| #define N_SECTOR_TYPES (LAST_SECTOR_TYPE + 1) |
| #define P_GOD (FIRST_PRIV_TYPE) |
| #define R_NORMAL FIRST_RACE_TYPE |
| #define S_GAS (S_MOUNTAIN + 1) |
| #define S_WATER FIRST_SECTOR_TYPE |
| #define TMP "/tmp/racegen.save" |
| int cost_of_race | ( | ) |
Definition at line 332 of file racegen.cc.
References attr, x::attr, blah, x::compat, compat_cov, attribute::cov, attribute::e_factor, attribute::e_fudge, attribute::e_hinge, x::home_planet_type, attribute::l_factor, attribute::l_fudge, x::n_sector_types, planet_compat_cov, planet_cost, race_cost, and x::race_type.
Referenced by initialize(), modify_print_loop(), and process().
| int critique_to_file | ( | FILE * | f, |
| int | rigorous_checking, | ||
| int | is_player_race | ||
| ) |
Definition at line 440 of file racegen.cc.
References x::address, attr, x::attr, x::compat, x::home_planet_type, attribute::is_integral, attribute::maximum, attribute::minimum, x::n_sector_types, npoints, x::password, planet_compat_cov, attribute::print_name, priv_print_name, x::priv_type, x::race_type, x::rejection, and x::status.
Referenced by critique_modification(), enroll(), enroll_player_race(), and send2().
| int Dialogue | ( | const char * | , |
| ... | |||
| ) |
Definition at line 1213 of file racegen.cc.
Referenced by do_racegen(), enroll_player_race(), load(), and quit().
| int load_from_file | ( | FILE * | g | ) |
Definition at line 843 of file racegen.cc.
References x::address, x::attr, x::compat, fix_up_iq(), x::home_planet_type, metamorph(), x::name, normal(), x::password, x::priv_type, x::race_type, and x::status.
Referenced by load_from_filename(), and process().
| void modify_print_loop | ( | int | level | ) |
Definition at line 1329 of file racegen.cc.
References changed, cost_of_race(), execute(), last_npoints, npoints, please_quit, and print_to_file().
Referenced by do_racegen(), and enroll_player_race().
| void print_to_file | ( | FILE * | f, |
| int | verbose | ||
| ) |
Definition at line 1061 of file racegen.cc.
References x::address, attr, x::attr, x::compat, x::home_planet_type, attribute::is_integral, last_npoints, x::n_sector_types, x::name, npoints, x::password, planet_compat_cov, planet_print_name, attribute::print_name, x::priv_type, race_print_name, x::race_type, and sector_print_name.
Referenced by enroll_player_race(), modify_print_loop(), print(), print_to_filename(), and send2().
| int altered |
Definition at line 323 of file racegen.cc.
Referenced by critique_modification(), load(), quit(), and save().
| int changed |
Definition at line 324 of file racegen.cc.
Referenced by critique_modification(), load(), and modify_print_loop().
| const double compat_cov[N_SECTOR_TYPES][N_SECTOR_TYPES] |
Definition at line 264 of file racegen.cc.
Referenced by cost_of_race().
| struct x race_info cost_info last |
Definition at line 319 of file racegen.cc.
| int last_npoints |
Definition at line 322 of file racegen.cc.
Referenced by modify_print_loop(), print_to_file(), and process().
| const int n_sector_types_cost[N_SECTOR_TYPES] |
| int npoints |
Definition at line 321 of file racegen.cc.
Referenced by critique_to_file(), modify_print_loop(), print_to_file(), and process().
| const double planet_compat_cov[N_HOME_PLANET_TYPES][N_SECTOR_TYPES] |
Definition at line 299 of file racegen.cc.
Referenced by cost_of_race(), critique_to_file(), and print_to_file().
| const int planet_cost[N_HOME_PLANET_TYPES] |
Definition at line 252 of file racegen.cc.
Referenced by cost_of_race().
| const char* planet_print_name[N_HOME_PLANET_TYPES] |
Definition at line 250 of file racegen.cc.
Referenced by help(), and print_to_file().
| int please_quit |
Definition at line 325 of file racegen.cc.
Referenced by enroll_player_race(), modify_print_loop(), and quit().
| const char* priv_print_name[N_PRIV_TYPES] |
Definition at line 257 of file racegen.cc.
Referenced by critique_to_file().
| const int race_cost[N_RACE_TYPES] |
Definition at line 255 of file racegen.cc.
Referenced by cost_of_race().
| const char* race_print_name[N_RACE_TYPES] |
Definition at line 254 of file racegen.cc.
Referenced by help(), and print_to_file().
| const char* sector_print_name[N_SECTOR_TYPES] |
Definition at line 259 of file racegen.cc.
Referenced by help(), and print_to_file().
1.8.13