• R/O
  • SSH
  • HTTPS

deeangband: Commit


Commit MetaInfo

Revision9205 (tree)
Time2014-02-20 13:05:51
Authordeskull

Log Message

Implementing Constructor and Destructor of GameWorld class.

Change Summary

Incremental Difference

--- source/branch/new_source/Deeangband/Deeangband/GameWorld.h (revision 9204)
+++ source/branch/new_source/Deeangband/Deeangband/GameWorld.h (revision 9205)
@@ -27,6 +27,7 @@
2727 #include "Skill.h"
2828 #include "Species.h"
2929 #include "TrapBase.h"
30+#include "GameSurface.h"
3031
3132 /*!
3233 * ゲームコマンド定義
@@ -68,13 +69,9 @@
6869
6970 public:
7071
71- GameWorld()
72- {
73- }
72+ GameWorld(GameSurface *gSurface);
7473
75- ~GameWorld()
76- {
77- }
74+ ~GameWorld();
7875
7976 /*
8077 * @brief 受け取ったゲームコマンドを処理する
--- source/branch/new_source/Deeangband/Deeangband/GameWorld.cpp (revision 9204)
+++ source/branch/new_source/Deeangband/Deeangband/GameWorld.cpp (revision 9205)
@@ -9,6 +9,14 @@
99 #include "stdafx.h"
1010 #include "GameWorld.h"
1111
12+GameWorld::GameWorld(GameSurface *gSurface)
13+{
14+}
15+
16+GameWorld::~GameWorld(void)
17+{
18+}
19+
1220 void GameWorld::DoGameCommand(GameCommand command)
1321 {
1422 switch(command)
--- source/branch/new_source/Deeangband/Deeangband/GameSurface.h (revision 9204)
+++ source/branch/new_source/Deeangband/Deeangband/GameSurface.h (revision 9205)
@@ -6,6 +6,8 @@
66 * 2013 Sikabane Works.
77 */
88
9+#pragma once
10+
911 #include "stdafx.h"
1012 #include "Floor.h"
1113
--- source/branch/new_source/Deeangband/Deeangband/Deeangband.cpp (revision 9204)
+++ source/branch/new_source/Deeangband/Deeangband/Deeangband.cpp (revision 9205)
@@ -3,6 +3,7 @@
33
44 #include "stdafx.h"
55 #include "Deeangband.h"
6+#include "GameWorld.h"
67 #include "GameSurfaceSDL.h"
78
89 #include <iostream>
@@ -13,7 +14,9 @@
1314 _In_ LPTSTR lpCmdLine,
1415 _In_ int nCmdShow)
1516 {
17+ GameSurface gSurf;
1618 GameSurfaceSDL gSurface;
19+ GameWorld gWorld(&gSurf);
1720 gSurface.test();
1821 return 0;
1922 }
Show on old repository browser