Files
oboe/osx/classes/outdoors.h
Celtic Minstrel 28f4368651 Numerous changes to terrain and trim. The changes to the scneario editor work as expected.
- New way of drawing walkway (doesn't work yet)
- New way of drawing roads (doesn't yet work correctly)
- New way of drawing trim (not tested yet)
- New way of handling marked specials (works in editor but not in game)
- New way of handling two-space rubble in the editor (works as expected)
- Merged several terrain special properties
- Deprecated several terrain graphics
- Completed (probably) the import & convert code for old-format terrain
- Probably other things that I have forgotten that have something to do with terrain
- A few other little things, bugfixes, etc

git-svn-id: http://openexile.googlecode.com/svn/trunk@56 4ebdad44-0ea0-11de-aab3-ff745001d230
2009-05-09 14:11:39 +00:00

63 lines
1.5 KiB
C++

/*
* outdoors.h
* BoE
*
* Created by Celtic Minstrel on 22/04/09.
*
*/
#include "location.h"
namespace legacy {
struct out_wandering_type;
struct outdoor_record_type;
struct outdoor_creature_type;
};
class cOutdoors {
public:
class cWandering { // formerly out_wandering_type
public:
unsigned char monst[7];
unsigned char friendly[3];
short spec_on_meet,spec_on_win,spec_on_flee,cant_flee;
short end_spec1,end_spec2;
cWandering& operator = (legacy::out_wandering_type old);
void writeTo(ostream& file, string prefix = "");
void readAttrFrom(string cur, istream& sin);
};
class cCreature { // formerly outdoor_creature_type
public:
bool exists;
short direction;
cWandering what_monst;
location which_sector,m_loc,home_sector; // home_sector is the sector it was spawned in
cCreature& operator = (legacy::outdoor_creature_type old);
};
unsigned short terrain[48][48];
location special_locs[18];
unsigned char special_id[18];
location exit_locs[8];
char exit_dests[8];
location sign_locs[8];
cWandering wandering[4],special_enc[4];
location wandering_locs[4];
rectangle info_rect[8];
unsigned char strlens[180];
cSpecial specials[60];
//char strs[120][256];
char out_name[256];
char rect_names[8][256];
char comment[256];
char spec_strs[90][256];
char sign_strs[8][256];
char(& out_strs(short i))[256];
bool special_spot[48][48];
cOutdoors();
cOutdoors& operator = (legacy::outdoor_record_type& old);
void writeTo(ostream& file);
};