Freeciv-3.3
|
Go to the source code of this file.
Data Structures | |
struct | player_spaceship |
struct | sship_part_info |
struct | spaceship_component |
Macros | |
#define | NUM_SS_STRUCTURALS 32 /* Used in the network protocol. */ |
#define | NUM_SS_COMPONENTS 16 |
#define | NUM_SS_MODULES 12 |
Enumerations | |
enum | spaceship_state { SSHIP_NONE , SSHIP_STARTED , SSHIP_LAUNCHED , SSHIP_ARRIVED } |
#define NUM_SS_COMPONENTS 16 |
Definition at line 88 of file spaceship.h.
#define NUM_SS_MODULES 12 |
Definition at line 89 of file spaceship.h.
Definition at line 87 of file spaceship.h.
Enumerator | |
---|---|
SSHIP_NONE | |
SSHIP_STARTED | |
SSHIP_LAUNCHED | |
SSHIP_ARRIVED |
Definition at line 84 of file spaceship.h.
BV_DEFINE | ( | bv_spaceship_structure | , |
NUM_SS_STRUCTURALS | |||
) |
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().
|
extern |
Definition at line 58 of file spaceship.c.
Referenced by next_spaceship_component(), put_spaceship(), and spaceship_calc_derived().
|
extern |
Definition at line 77 of file spaceship.c.
Referenced by next_spaceship_component(), put_spaceship(), and spaceship_calc_derived().
|
extern |
Definition at line 23 of file spaceship.c.
Referenced by do_spaceship_place(), next_spaceship_component(), and put_spaceship().