Deeangbandのフルスクラッチ新ソースコード。
BSD系ライセンスを採用予定。
リビジョン | 2f657f16bf691abf0c11153940a2749781f10505 (tree) |
---|---|
日時 | 2014-02-28 20:37:17 |
作者 | Deskull <deskull@user...> |
コミッター | Deskull |
Add constructor and destructor to Species class.
@@ -24,8 +24,8 @@ GameWorld::GameWorld(GameSurface *gSurface) | ||
24 | 24 | itemEgoList.insert(map<Tag, ItemEgo>::value_type("NONE", ItemEgo())); |
25 | 25 | itemTraitList.insert(map<Tag, ItemTrait>::value_type("NONE", ItemTrait())); |
26 | 26 | karmaList.insert(map<Tag, Karma>::value_type("NONE", Karma())); |
27 | - skillList.insert(map<Tag, Skill>::value_type("NONE", Skill())); | |
28 | - speciesList.insert(map<Tag, Species>::value_type("NONE", Species())); | |
27 | + skillList.insert(map<Tag, Skill>::value_type("NONE", Skill(0, "DAMMY", this))); | |
28 | + speciesList.insert(map<Tag, Species>::value_type("NONE", Species(0, "DAMMY", this))); | |
29 | 29 | trapBaseList.insert(map<Tag, TrapBase>::value_type("NONE", TrapBase())); |
30 | 30 | buildingList.insert(map<Tag, Building>::value_type("NONE", Building(0, "DAMMY", this))); |
31 | 31 | campList.insert(map<Tag, Camp>::value_type("NONE", Camp(0, "DAMMY", this))); |
@@ -8,3 +8,18 @@ | ||
8 | 8 | |
9 | 9 | #include "stdafx.h" |
10 | 10 | #include "Species.h" |
11 | + | |
12 | +Species::Species(ID id, Tag tag, GameWorld *gameWorld) : GameElement(id, tag, gameWorld) | |
13 | +{ | |
14 | + return; | |
15 | +} | |
16 | + | |
17 | +Species::Species(void) | |
18 | +{ | |
19 | + return; | |
20 | +} | |
21 | + | |
22 | +Species::~Species(void) | |
23 | +{ | |
24 | + return; | |
25 | +} |
@@ -18,6 +18,11 @@ class Species : public GameElement | ||
18 | 18 | { |
19 | 19 | |
20 | 20 | private: |
21 | + | |
21 | 22 | public: |
22 | 23 | |
24 | + Species::Species(ID id, Tag tag, GameWorld *gameWorld); | |
25 | + Species::Species(void); | |
26 | + Species::~Species(void); | |
27 | + | |
23 | 28 | }; |