1
// Copyright (C) 2008, Ben Asselstine
3
// This program is free software; you can redistribute it and/or modify
4
// it under the terms of the GNU General Public License as published by
5
// the Free Software Foundation; either version 2 of the License, or
6
// (at your option) any later version.
8
// This program is distributed in the hope that it will be useful,
9
// but WITHOUT ANY WARRANTY; without even the implied warranty of
10
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
// GNU Library General Public License for more details.
13
// You should have received a copy of the GNU General Public License
14
// along with this program; if not, write to the Free Software
15
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18
#ifndef CREATE_SCENARIO_RANDOMIZE_H
19
#define CREATE_SCENARIO_RANDOMIZE_H
25
#include "game-parameters.h"
32
class CreateScenarioRandomize
35
CreateScenarioRandomize();
36
~CreateScenarioRandomize();
38
/** take a random city name
40
std::string popRandomCityName();
42
/* give a random city name
44
void pushRandomCityName(std::string name);
45
std::string popRandomRuinName();
46
void pushRandomRuinName(std::string name);
47
std::string popRandomTempleName();
48
void pushRandomTempleName(std::string name);
49
std::string popRandomSignpost();
50
void pushRandomSignpost(std::string name);
51
Uint32 getRandomCityIncome(bool capital = false);
52
bool randomSignpostsEmpty() {return d_signposts.empty();}
53
std::string getDynamicSignpost(Signpost *signpost);
54
int getNumSignposts() {return d_signposts.size();}
55
Army * getRandomRuinKeeper(Player *p);
56
Reward *getNewRandomReward(bool hidden_ruins);
60
std::string popRandomListName(std::vector<std::string>& list);
62
bool loadNames(std::vector<std::string>& list, std::ifstream& file);
65
std::vector<std::string> d_citynames, d_signposts;
66
std::vector<std::string> d_templenames, d_ruinnames;
69
#endif //CREATE_SCENARIO_RANDOMIZE_H