Move town-specific daved game data into the town record

Als, use bitsets for item_taken and maps.
This commit is contained in:
2016-08-21 16:09:58 -04:00
parent 9363ab2fcf
commit e9bf63afc7
18 changed files with 133 additions and 207 deletions

View File

@@ -91,6 +91,11 @@ public:
std::array<std::string,3> comment;
std::vector<std::string> spec_strs;
cSpeech talking;
// Persistent data for saved games
std::array<std::bitset<64>, 64> maps;
std::bitset<64> item_taken;
bool can_find;
long m_killed;
virtual ~cTown(){}
virtual void append(legacy::big_tr_type& old, int town_num);
@@ -103,7 +108,7 @@ public:
void init_start();
void set_up_lights();
short light_obscurity(short x,short y); // Obscurity function used for calculating lighting
bool is_cleaned_out(long m_killed);
bool is_cleaned_out();
explicit cTown(cScenario& scenario);
void append(legacy::town_record_type& old);