Freeciv21
Develop your civilization from humble roots to a global empire
spacerace.h
Go to the documentation of this file.
1 /**************************************************************************
2  Copyright (c) 1996-2020 Freeciv21 and Freeciv contributors. This file is
3  __ __ part of Freeciv21. Freeciv21 is free software: you can
4 / \\..// \ redistribute it and/or modify it under the terms of the GNU
5  ( oo ) General Public License as published by the Free Software
6  \__/ Foundation, either version 3 of the License, or (at your
7  option) any later version. You should have received
8  a copy of the GNU General Public License along with Freeciv21. If not,
9  see https://www.gnu.org/licenses/.
10 **************************************************************************/
11 #pragma once
12 
13 // common
14 #include "fc_types.h"
15 #include "packets.h"
16 
17 // server
18 #include "hand_gen.h"
19 
20 struct player_spaceship;
21 struct conn_list;
22 
23 void spaceship_calc_derived(struct player_spaceship *ship);
24 void send_spaceship_info(struct player *src, struct conn_list *dest);
25 void spaceship_arrived(struct player *pplayer);
26 void spaceship_lost(struct player *pplayer);
27 double spaceship_arrival(const struct player *pplayer);
28 int rank_spaceship_arrival(struct player **result);
29 
30 bool do_spaceship_place(struct player *pplayer, enum action_requester from,
31  enum spaceship_place_type type, int num);
spaceship_place_type
Definition: fc_types.h:1097
int rank_spaceship_arrival(struct player **result)
Rank launched player spaceships in order of arrival.
Definition: spacerace.cpp:451
void spaceship_lost(struct player *pplayer)
Handle spaceship loss.
Definition: spacerace.cpp:422
bool do_spaceship_place(struct player *pplayer, enum action_requester from, enum spaceship_place_type type, int num)
Place a spaceship part.
Definition: spacerace.cpp:206
double spaceship_arrival(const struct player *pplayer)
Return arrival year of player's spaceship (fractional, as one spaceship may arrive before another in ...
Definition: spacerace.cpp:437
void spaceship_calc_derived(struct player_spaceship *ship)
Calculate and fill in the derived quantities about the spaceship.
Definition: spacerace.cpp:37
void send_spaceship_info(struct player *src, struct conn_list *dest)
Send details of src's spaceship (or spaceships of all players if src is nullptr) to specified destina...
Definition: spacerace.cpp:120
void spaceship_arrived(struct player *pplayer)
Handle spaceship arrival.
Definition: spacerace.cpp:411
Definition: player.h:231