- Made add_string_to_buf accept a string rather than a char*, and began to take advantage of this.

- Added an operator[] to cParty; I intend to get rid of the ADVEN macro eventually in favour of accessing PCs with the operator
- Added using cMonster::operator= to cCreature, because this will be needed once I rearrange these two structures.
- Added an operator= to the cPopulation type, so that the "monst.dudes[...]" redundancy can be avoide.
- Added outdoors and towns members to the scenario class for future use (they will old all the outdoor sections and towns, respectively, from the current scenario)

git-svn-id: http://openexile.googlecode.com/svn/trunk@81 4ebdad44-0ea0-11de-aab3-ff745001d230
This commit is contained in:
2009-05-30 03:36:41 +00:00
parent 5c91bc4062
commit d2d88311db
11 changed files with 31 additions and 31 deletions

View File

@@ -112,14 +112,15 @@ public:
bool add_to_journal(short event, short day);
bool record(short what, short where);
bool start_timer(short time, short node, short type);
cPlayer& operator[](unsigned short n);
void writeTo(std::ostream& file);
void readFrom(std::istream& file);
typedef std::vector<cEncNote>::iterator encIter;
typedef std::vector<cJournal>::iterator journalIter;
typedef std::vector<cConvers>::iterator talkIter;
typedef std::vector<cTimer>::iterator timerIter;
typedef std::map<std::string,std::vector<int> >::iterator campIter;
void writeTo(std::ostream& file);
void readFrom(std::istream& file);
};
#endif