16 #include "../clib/compilerspecifics.h" 17 #include "../clib/rawtypes.h" 51 Realms::Realm* realm,
unsigned short marker );
53 Realms::Realm* realm,
int b,
int n );
56 Realms::Realm* realm,
const std::string& propname );
75 void regenerate( time_t now );
87 typedef std::map<unsigned int, unsigned short>
Depletions;
110 void regenerate( time_t now );
111 void consume(
unsigned amount );
112 void produce(
unsigned amount );
void return_resources(u32 objtype, u16)
Bscript::BObjectImp * harvest_resource(const char *resource, xcoord x, ycoord y, Realms::Realm *realm, int b, int n)
std::map< unsigned int, unsigned short > Depletions
const unsigned int units_per_area_
unsigned int initial_units_
void write_resources_dat(Clib::StreamWriter &sw_resource)
void read_resources_dat()
ResourceDef * find_resource_def(const std::string &rname)
std::set< unsigned short > landtiles_
void remove_resources(u32 objtype, u16)
std::set< unsigned short > tiles_
const unsigned int seconds_per_regrow_
Bscript::BObjectImp * get_region_string(const char *resource, xcoord x, ycoord y, Realms::Realm *realm, const std::string &propname)
Bscript::BObjectImp * get_harvest_difficulty(const char *resource, xcoord x, ycoord y, Realms::Realm *realm, unsigned short marker)