Implementing Constructor and Destructor in Dungeon class.
@@ -11,6 +11,7 @@ | ||
11 | 11 | #include "Species.h" |
12 | 12 | #include "Feature.h" |
13 | 13 | #include "GameElement.h" |
14 | +#include "Deeangband.h" | |
14 | 15 | |
15 | 16 | #pragma once |
16 | 17 |
@@ -47,6 +48,11 @@ | ||
47 | 48 | ID gurdianSpecies; //!< ダンジョンの守護者ID |
48 | 49 | public: |
49 | 50 | |
51 | + Dungeon::Dungeon(void); | |
52 | + Dungeon::Dungeon(GameWorld *gameWorld); | |
53 | + | |
54 | + Dungeon::~Dungeon(void); | |
55 | + | |
50 | 56 | DEPTH GetMinDepth(void); |
51 | 57 | |
52 | 58 | DEPTH GetMaxDepth(void); |
@@ -8,3 +8,16 @@ | ||
8 | 8 | |
9 | 9 | #include "stdafx.h" |
10 | 10 | #include "Dungeon.h" |
11 | + | |
12 | +Dungeon::Dungeon(void) | |
13 | +{ | |
14 | +} | |
15 | + | |
16 | +Dungeon::Dungeon(GameWorld *gameWorld) | |
17 | +{ | |
18 | + //this->gameWorld = gameWorld; | |
19 | +} | |
20 | + | |
21 | +Dungeon::~Dungeon(void) | |
22 | +{ | |
23 | +} |
@@ -30,7 +30,7 @@ | ||
30 | 30 | buildingList.insert(map<ID, Building>::value_type(0, Building())); |
31 | 31 | campList.insert(map<ID, Camp>::value_type(0, Camp())); |
32 | 32 | creatureList.insert(map<ID, Creature>::value_type(0, Creature())); |
33 | - dungeonList.insert(map<ID, Dungeon>::value_type(0, Dungeon())); | |
33 | + dungeonList.insert(map<ID, Dungeon>::value_type(0, Dungeon(this))); | |
34 | 34 | itemList.insert(map<ID, Item>::value_type(0, Item())); |
35 | 35 | floorList.insert(map<ID, Floor>::value_type(0, Floor())); |
36 | 36 |