Author: esr
Date: Fri Jun 22 12:19:02 2007
New Revision: 18369
URL: http://svn.gna.org/viewcvs/wesnoth?rev=18369&view=rev
Log:
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.
Modified:
trunk/src/display.cpp
trunk/src/display.hpp
Modified: trunk/src/display.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/display.cpp?rev=18369&r1=18368&r2=18369&view=diff
==============================================================================
--- trunk/src/display.cpp (original)
+++ trunk/src/display.cpp Fri Jun 22 12:19:02 2007
@@ -47,6 +47,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_;
Modified: trunk/src/display.hpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/display.hpp?rev=18369&r1=18368&r2=18369&view=diff
==============================================================================
--- trunk/src/display.hpp (original)
+++ trunk/src/display.hpp Fri Jun 22 12:19:02 2007
@@ -50,7 +50,14 @@
// 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,
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits