Refactoring the display class quickly didn't work.

So now we'll do it the slow step-by-step way, starting by subclassing
display from an empty superclass and moving a little bit of stuff up
before each test.
This commit is contained in:
Eric S. Raymond 2007-06-22 10:19:02 +00:00
parent c13b07c569
commit 10f391919d
2 changed files with 17 additions and 1 deletions

View file

@ -48,6 +48,15 @@
#define ERR_DP LOG_STREAM(err, display)
#define INFO_DP LOG_STREAM(info, display)
map_display::map_display()
{
}
map_display::~map_display()
{
}
std::map<gamemap::location,fixed_t> display::debugHighlights_;
namespace {

View file

@ -50,7 +50,14 @@ class unit_map;
// currently moused over (highlighted)
// - the unit status, which displays an image for, and stats for, the
// current unit.
class display
class map_display
{
public:
map_display();
~map_display();
};
class display : public map_display
{
public:
display(unit_map& units, CVideo& video,