Freeciv21
Develop your civilization from humble roots to a global empire
gamehand.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 struct section_file;
14 struct connection;
15 struct conn_list;
16 
17 void init_new_game();
19 void send_game_info(struct conn_list *dest);
20 
21 void send_scenario_info(struct conn_list *dest);
22 void send_scenario_description(struct conn_list *dest);
23 
24 enum unit_role_id crole_to_role_id(char crole);
25 struct unit_type *crole_to_unit_type(char crole, struct player *pplayer);
26 
27 int update_timeout();
29 
30 const char *new_challenge_filename(struct connection *pc);
const char * new_challenge_filename(struct connection *pc)
Find a file that we can write too, and return it's name.
Definition: gamehand.cpp:1099
void init_new_game()
Initialize a new game: place the players' units onto the map, etc.
Definition: gamehand.cpp:416
void send_scenario_description(struct conn_list *dest)
Send description of the current scenario.
Definition: gamehand.cpp:967
void send_scenario_info(struct conn_list *dest)
Send current scenario info.
Definition: gamehand.cpp:950
struct unit_type * crole_to_unit_type(char crole, struct player *pplayer)
Get unit_type for given role character.
Definition: gamehand.cpp:108
void send_game_info(struct conn_list *dest)
Send game_info packet; some server options and various stuff...
Definition: gamehand.cpp:905
void increase_timeout_because_unit_moved()
adjusts game.seconds_to_turn_done when enemy moves a unit, we see it and the remaining timeout is sma...
Definition: gamehand.cpp:1040
void send_year_to_clients()
Tell clients the year, and also update turn_done and nturns_idle fields for all players.
Definition: gamehand.cpp:880
enum unit_role_id crole_to_role_id(char crole)
Get role_id for given role character.
Definition: gamehand.cpp:77
int update_timeout()
adjusts game.info.timeout based on various server options
Definition: gamehand.cpp:989
Definition: player.h:231