Freeciv21
Develop your civilization from humble roots to a global empire
startpos.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool create_start_positions (enum map_startpos mode, struct unit_type *initial_unit)
 where do the different nations start on the map? well this function tries to spread them out on the different islands. More...
 

Function Documentation

◆ create_start_positions()

bool create_start_positions ( enum map_startpos  mode,
struct unit_type initial_unit 
)

where do the different nations start on the map? well this function tries to spread them out on the different islands.

MAPSTARTPOS_SINGLE: one player per isle. MAPSTARTPOS_2or3: 2 players per isle (maybe one isle with 3). MAPSTARTPOS_ALL: all players in asingle isle. MAPSTARTPOS_VARIABLE: at least 2 player per isle.

Assumes assign_continent_numbers() has already been done! Returns true on success

Definition at line 310 of file startpos.cpp.

Referenced by map_generate().