make gamemap polymorphic

This commit is contained in:
Tomasz Śniatowski 2008-07-13 19:47:58 +01:00
parent ec446aee22
commit 17ed111a90
2 changed files with 5 additions and 0 deletions

View file

@ -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

View file

@ -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;