7 #include "gb/utils/rand.h" 11 os <<
"Efficiency: " << s.eff << std::endl;
12 os <<
"Fertility: " << s.fert << std::endl;
13 os <<
"Mobilization: " << s.mobilization << std::endl;
14 os <<
"Crystals: " << s.crystals << std::endl;
15 os <<
"Resource: " << s.resource << std::endl;
16 os <<
"Population: " << s.popn << std::endl;
17 os <<
"Troops: " << s.troops << std::endl;
18 os <<
"Owner: " << s.owner << std::endl;
19 os <<
"Race: " << s.race << std::endl;
20 os <<
"Type: " << s.type << std::endl;
21 os <<
"Condition: " << s.condition << std::endl;
25 Sector &SectorMap::get_random() {
26 return get(int_rand(0, maxx_ - 1), int_rand(0, maxy_ - 1));
std::ostream & operator<<(std::ostream &os, const Sector &s)