Freeciv-3.2
|
Go to the source code of this file.
Functions | |
void | spaceship_init (struct player_spaceship *ship) |
int | num_spaceship_structurals_placed (const struct player_spaceship *ship) |
bool | next_spaceship_component (struct player *pplayer, struct player_spaceship *ship, struct spaceship_component *fill) |
bool next_spaceship_component | ( | struct player * | pplayer, |
struct player_spaceship * | ship, | ||
struct spaceship_component * | fill | ||
) |
Find (default) place for next spaceship component.
Definition at line 130 of file spaceship.c.
Referenced by adv_spaceship_autoplace(), and spaceship_autoplace().
int num_spaceship_structurals_placed | ( | const struct player_spaceship * | ship | ) |
Count the number of structurals placed; that is, in ship->structure[]
Definition at line 113 of file spaceship.c.
Referenced by do_spaceship_place(), and next_spaceship_component().
void spaceship_init | ( | struct player_spaceship * | ship | ) |
Initialize spaceship struct; can also be used to "cancel" a spaceship (eg, when capital captured).
Definition at line 96 of file spaceship.c.
Referenced by kill_player(), player_defaults(), sg_load_player_main(), sg_load_player_main(), and spaceship_lost().
const struct sship_part_info components_info[NUM_SS_COMPONENTS] |
Definition at line 58 of file spaceship.c.
Referenced by next_spaceship_component(), put_spaceship(), and spaceship_calc_derived().
const struct sship_part_info modules_info[NUM_SS_MODULES] |
Definition at line 77 of file spaceship.c.
Referenced by next_spaceship_component(), put_spaceship(), and spaceship_calc_derived().
const struct sship_part_info structurals_info[NUM_SS_STRUCTURALS] |
Definition at line 23 of file spaceship.c.
Referenced by do_spaceship_place(), next_spaceship_component(), and put_spaceship().