Files
oboe/osx/classes/outdoors.h
Celtic Minstrel c6d960d078 Remove the string forwarders that were introduced to allow use of the original string indices
(A few things might be broken, probably just related to recording talk/encounter notes.)
2014-12-15 13:55:00 -05:00

77 lines
1.9 KiB
C++

/*
* outdoors.h
* BoE
*
* Created by Celtic Minstrel on 22/04/09.
*
*/
#ifndef BOE_DATA_OUTDOORS_H
#define BOE_DATA_OUTDOORS_H
#include <string>
#include <iosfwd>
#include <array>
#include "location.h"
#include "special.h"
#include "simpletypes.h"
#include "monster.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:
m_num_t monst[7];
m_num_t friendly[3];
short spec_on_meet,spec_on_win,spec_on_flee,cant_flee;
short end_spec1,end_spec2;
bool isNull();
cWandering& operator = (legacy::out_wandering_type old);
void writeTo(std::ostream& file, std::string prefix = "");
void readFrom(std::istream& sin);
template<class type> type get(m_num_t who,bool hostile,type cMonster::* what);
};
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);
};
short x,y; // Used while loading legacy scenarios.
ter_num_t terrain[48][48];
location special_locs[18];
unsigned short 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];
std::string out_name;
// Using std::array here so we can have .size()
// This'll make the transition smoother once it becomes a vector.
std::array<std::string,8> rect_names;
std::string comment;
std::array<std::string,90> spec_strs;
std::array<std::string,8> sign_strs;
bool special_spot[48][48];
cOutdoors();
cOutdoors& operator = (legacy::outdoor_record_type& old);
};
#endif