![]() |
Freeciv21
Develop your civilization from humble roots to a global empire
|
Include dependency graph for spaceship.cpp:Go to the source code of this file.
Functions | |
| void | spaceship_init (struct player_spaceship *ship) |
| Initialize spaceship struct; could also be used to "cancel" a spaceship (eg, if/when capital-capture effect implemented). More... | |
| int | num_spaceship_structurals_placed (const struct player_spaceship *ship) |
| Count the number of structurals placed; that is, in ship->structure[]. More... | |
| bool | next_spaceship_component (struct player *pplayer, struct player_spaceship *ship, struct spaceship_component *fill) |
| Find (default) place for next spaceship component. More... | |
Variables | |
| const struct sship_part_info | structurals_info [NUM_SS_STRUCTURALS] |
| const struct sship_part_info | components_info [NUM_SS_COMPONENTS] |
| const struct sship_part_info | modules_info [NUM_SS_MODULES] |
| 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 79 of file spaceship.cpp.
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 62 of file spaceship.cpp.
Referenced by do_spaceship_place(), and next_spaceship_component().
| void spaceship_init | ( | struct player_spaceship * | ship | ) |
Initialize spaceship struct; could also be used to "cancel" a spaceship (eg, if/when capital-capture effect implemented).
Definition at line 45 of file spaceship.cpp.
Referenced by kill_player(), player_defaults(), sg_load_player_main(), and spaceship_lost().
| const struct sship_part_info components_info[NUM_SS_COMPONENTS] |
Definition at line 1 of file spaceship.cpp.
Referenced by next_spaceship_component(), and spaceship_calc_derived().
| const struct sship_part_info modules_info[NUM_SS_MODULES] |
Definition at line 1 of file spaceship.cpp.
Referenced by next_spaceship_component(), and spaceship_calc_derived().
| const struct sship_part_info structurals_info[NUM_SS_STRUCTURALS] |
Definition at line 1 of file spaceship.cpp.
Referenced by do_spaceship_place(), and next_spaceship_component().