make gamemap polymorphic
This commit is contained in:
parent
ec446aee22
commit
17ed111a90
2 changed files with 5 additions and 0 deletions
|
@ -325,6 +325,10 @@ gamemap::gamemap(const config& cfg, const std::string& data):
|
|||
read(data);
|
||||
}
|
||||
|
||||
gamemap::~gamemap()
|
||||
{
|
||||
}
|
||||
|
||||
//! Reads a map
|
||||
//!
|
||||
//! @param data the mapdata to load
|
||||
|
|
|
@ -165,6 +165,7 @@ public:
|
|||
//! Starting locations are represented by numbers,
|
||||
//! and will be of type keep.
|
||||
gamemap(const config& terrain_cfg, const std::string& data); //throw(incorrect_format_exception)
|
||||
virtual ~gamemap();
|
||||
void read(const std::string& data);
|
||||
|
||||
std::string write() const;
|
||||
|
|
Loading…
Add table
Reference in a new issue