• R/O
  • SSH
  • HTTPS

deeangband: Commit


Commit MetaInfo

Revision9206 (tree)
Time2014-02-20 19:36:40
Authordeskull

Log Message

Fix GameSurface class for inheritance.

Change Summary

Incremental Difference

--- source/branch/new_source/Deeangband/Deeangband/GameSurface.cpp (revision 9205)
+++ source/branch/new_source/Deeangband/Deeangband/GameSurface.cpp (revision 9206)
@@ -8,3 +8,11 @@
88
99 #include "stdafx.h"
1010 #include "GameSurface.h"
11+
12+GameSurface::GameSurface(void)
13+{
14+}
15+
16+GameSurface::~GameSurface(void)
17+{
18+}
--- source/branch/new_source/Deeangband/Deeangband/GameSurface.h (revision 9205)
+++ source/branch/new_source/Deeangband/Deeangband/GameSurface.h (revision 9206)
@@ -18,10 +18,10 @@
1818 class GameSurface
1919 {
2020 private:
21-
2221 /*! フロアの状況を描画する */
2322 bool viewFloor(Floor *floor_ptr, int y, int x, int width, int height);
2423
2524 public:
26-
25+ GameSurface();
26+ virtual ~GameSurface();
2727 };
--- source/branch/new_source/Deeangband/Deeangband/GameSurfaceSDL.h (revision 9205)
+++ source/branch/new_source/Deeangband/Deeangband/GameSurfaceSDL.h (revision 9206)
@@ -30,7 +30,7 @@
3030 * @class GameSurfaceSDL
3131 * @brief ゲームのメインインターフェイスクラス(SDL実装)
3232 */
33-class GameSurfaceSDL : GameSurface
33+class GameSurfaceSDL : public GameSurface
3434 {
3535 private:
3636 SDL_Renderer *renderer;
--- source/branch/new_source/Deeangband/Deeangband/Deeangband.cpp (revision 9205)
+++ source/branch/new_source/Deeangband/Deeangband/Deeangband.cpp (revision 9206)
@@ -14,9 +14,8 @@
1414 _In_ LPTSTR lpCmdLine,
1515 _In_ int nCmdShow)
1616 {
17- GameSurface gSurf;
1817 GameSurfaceSDL gSurface;
19- GameWorld gWorld(&gSurf);
18+ GameWorld gWorld(&gSurface);
2019 gSurface.test();
2120 return 0;
2221 }
Show on old repository browser