OSDN Git Service

[Modify] boostライブラリに依存した処理をコメントアウトによる一時的措置を含めて完了.
[deeangband/Deeangband-new.git] / Deeangband / ItemBase.cpp
1 /*!
2 * @file ItemBase.cpp
3 * @brief \83Q\81[\83\80\92\86\82Ì\83A\83C\83e\83\80\83x\81[\83X\82ð\92è\8b`\82·\82é
4 * @date 2014/02/01
5 * @author Deskull
6 * 2014 Sikabane Works.
7 */
8
9 #include "stdafx.h"
10 #include "ItemBase.h"
11
12 namespace Deeangband
13 {
14
15         ItemBase::ItemBase(void) : ItemTemplate()
16         {
17                 this->WipeData();
18         }
19
20         ItemBase::~ItemBase(void)
21         {
22         }
23
24         void ItemBase::WipeData(void)
25         {
26                 this->name = "\89½\82©\96ó\82Ì\95ª\82©\82ç\82È\82¢\82à\82Ì";
27                 this->weight = 0;
28         }
29
30         WEIGHT ItemBase::GetWeight(void)
31         {
32                 return this->weight;
33         }
34
35         Dice ItemBase::GetDamageDice(void)
36         {
37                 return this->baseDamage;
38         }
39
40
41         void ItemBase::XMLSave(std::string filename)
42         {
43                 ItemBase itemBase = *this;
44                 std::ofstream ofs(filename);
45                 assert(ofs);
46                 //boost::archive::xml_oarchive oa(ofs);
47                 //oa << BOOST_SERIALIZATION_NVP(itemBase);
48         }
49
50 }