Files
oboe/src/scenario/area.hpp
Celtic Minstrel 82abdab695 Major code reorganization
This commit only updates the XCode project for the changes.
A later commit each will update it for scons and MSVC.

A few actual changes are mixed in:
- Add a prefix header for a handful of common definitions
- Moved current_cursor into the Cursor class as a static member
- Removed the make_cursor_sword and make_cursor_watch functions
- Include tests in the All target
- Remove redundant -l flags for Common and Common-Party (since they're included in the Link phases anyway)
2017-04-14 00:24:29 -04:00

47 lines
792 B
C++

/*
* area.hpp
* BoE
*
* Created by Celtic Minstrel on 02/09/16.
*
*/
#ifndef BOE_DATA_AREA_HPP
#define BOE_DATA_AREA_HPP
#include <vector>
#include <string>
#include <boost/dynamic_bitset.hpp>
#include "vector2d.hpp"
#include "location.hpp"
#include "special.hpp"
enum {
AREA_TINY = 24,
AREA_SMALL = 32,
AREA_MEDIUM = 48,
AREA_LARGE = 64,
AREA_HUGE = 128,
};
class cArea {
public:
const size_t max_dim;
vector2d<ter_num_t> terrain;
std::vector<spec_loc_t> special_locs;
std::vector<sign_loc_t> sign_locs;
std::vector<info_rect_t> area_desc;
std::string name;
// Persistent data for saved games
std::vector<boost::dynamic_bitset<>> maps;
explicit cArea(size_t dim)
: max_dim(dim)
, terrain(dim, dim)
, maps(dim, boost::dynamic_bitset<>(dim))
{}
};
#endif