OSDN Git Service

インクルードファイル指定と未使用変数警告の修正。 / Fix loading include files and unused value warnings,
[deeangband/Deeangband-new.git] / Deeangband / Trap.cpp
1 /*!
2 * @file Trap.cpp
3 * @brief \83Q\81[\83\80\92\86\82Ì\83g\83\89\83b\83v\82ð\92è\8b`\82·\82é
4 * @date 2014/01/26
5 * @author Deskull
6 * 2014 Sikabane Works.
7 */
8
9 #include "stdafx.h"
10 #include "Trap.h"
11
12 namespace Deeangband
13 {
14         Trap::Trap(void) : GameInstance()
15         {
16                 this->WipeData();
17         }
18
19         Trap::Trap(std::map<TAG, boost::shared_ptr<TrapBase>>::iterator trapBaseIt, Coordinates *position) : GameInstance()
20         {
21                 this->WipeData();
22                 this->position = *position;
23                 this->trapBaseTag = trapBaseIt->first;
24         }
25
26         void Trap::WipeData(void)
27         {
28                 this->trapBaseTag = "";
29                 this->position.Set(0, 0);
30                 this->curHP = this->maxHP = 10;
31                 this->difficulty = 20;
32                 return;
33         }
34
35         Trap::~Trap(void)
36         {
37                 return;
38         }
39
40 }