OSDN Git Service

Loreによるマップ記憶に基づいた描画を実装。 / Implement drawing map by memory from Lore.
[deeangband/Deeangband-new.git] / Deeangband / Ability.h
1 /*!
2  * @file Ability.h
3  * @brief \94­\93®\8bZ\94\\82Ì\83v\83\8d\83g\83^\83C\83v
4  * @date 2014/06/09
5  * @author Deskull
6  * 2013 Sikabane Works.
7  */
8
9 #pragma once
10
11 #include "stdafx.h"
12 #include "Deeangband.h"
13 #include "GameElement.h"
14
15 namespace Deeangband
16 {
17
18         /*! 
19         * @class Ability
20         * @brief \94­\93®\8bZ\94\\82Ì\83N\83\89\83X
21         * @details
22         * <h1>\8aT\97v</h1>
23         * <p>Ability\82Í\83N\83\8a\81[\83`\83\83\81[\82ª\83Q\81[\83\80\92\86\82Ì\88ø\82«\8bN\82±\82·\82 \82ç\82ä\82é\94\\93®\93I\8cø\89Ê\82ð\92è\8b`\82·\82é\81B</p>
24         */
25         class Ability : public GameElement
26         {
27         private:
28
29                 friend class boost::serialization::access;
30
31                 /*!
32                 * @brief \83N\83\89\83X\82Ì\83V\83\8a\83A\83\89\83C\83Y\82ð\90Ý\92è\82·\82é
33                 * @param archive \83A\81[\83J\83C\83u\89»\82·\82é\83N\83\89\83X\82Ì\83A\83h\83\8c\83X
34                 * @param version \83t\83@\83C\83\8b\83o\81[\83W\83\87\83\93
35                 * @return XMLSerialize\83e\83\93\83v\83\8c\81[\83g
36                 */
37                 template<class Archive> void serialize(Archive &archive, const unsigned int version) 
38                 {
39                         if(version > 0)
40                         {
41                                 archive & boost::serialization::make_nvp("Name", name);
42                                 archive & boost::serialization::make_nvp("Description", description);
43                         }
44                 }
45
46         public:
47
48                 /*! 
49                 * @brief Ability\83N\83\89\83X\83R\83\93\83X\83g\83\89\83N\83^
50                 */
51                 Ability::Ability(void);
52
53                 /*! 
54                 * @brief Ability\83N\83\89\83X\83f\83X\83g\83\89\83N\83^
55                 */
56                 Ability::~Ability(void);
57
58                 /*! 
59                 * @brief Ability\83N\83\89\83X\82Ì\83f\81[\83^\8fÁ\8b\8e
60                 * @return \82È\82µ
61                 */
62                 void Ability::WipeData(void);
63
64         };
65
66 }
67
68 BOOST_CLASS_VERSION(Deeangband::Ability, 10);