OSDN Git Service

Add Ability class.
authorDeskull <desull@users.sourceforge.jp>
Mon, 9 Jun 2014 14:02:36 +0000 (23:02 +0900)
committerDeskull <desull@users.sourceforge.jp>
Mon, 9 Jun 2014 14:02:36 +0000 (23:02 +0900)
Deeangband/Ability.cpp [new file with mode: 0644]
Deeangband/Ability.h [new file with mode: 0644]
Deeangband/Deeangband.vcxproj
Deeangband/MixedRace.cpp
Deeangband/MixedRace.h

diff --git a/Deeangband/Ability.cpp b/Deeangband/Ability.cpp
new file mode 100644 (file)
index 0000000..66cd10c
--- /dev/null
@@ -0,0 +1,73 @@
+/*!
+* @file Ability.h
+* @brief \83Q\81[\83\80\92\86\82Ì\83N\83\8a\81[\83`\83\83\81[\93Á\90«\82Ì\83v\83\8d\83g\83^\83C\83v
+* @date 2014/06/09
+* @author Deskull
+* 2013 Sikabane Works.
+*/
+
+#pragma once
+
+#include "stdafx.h"
+#include "Deeangband.h"
+#include "CreatureTemplate.h"
+
+namespace Deeangband
+{
+
+       /*! 
+       * @class Ability
+       * @brief \83N\83\8a\81[\83`\83\83\81[\93Á\90«\82Ì\83N\83\89\83X
+       * @details
+       * <h1>\8aT\97v</h1>
+       * <p>Ability\82Í\83N\83\8a\81[\83`\83\83\81[\82ª\95Û\8e\9d\82µ\82Ä\82¢\82é\82 \82ç\82ä\82é\8fó\91Ô\93I\97v\91f\82ð\92è\8b`\82µ\82½\82à\82Ì\82Å\82 \82é\81B
+       * \82±\82Ì\8fó\91Ô\93I\97v\91f\82Æ\82Í\81A\88«\96\82\91°\81A\83A\83\93\83f\83b\83h\91°\81A\82Æ\82¢\82½\82²\82­\90æ\93V\93I\82È\82à\82Ì\82©\82ç\81A\93Å\82â\8fj\95\9f\82Æ\82¢\82Á\82½
+       * \8e\9f\8c³\93I\82È\97v\91f\82Ü\82Å\91S\82Ä\82ð\8aÜ\82Ý\81A\82»\82Ì\82æ\82¤\82È\90«\8e¿\82©\82ç\81u\90æ\93V\93I\82É\93Å\8fó\91Ô\82ð\8e\9d\82Á\82Ä\82¢\82ÄHP\82ª\8c¸\82Á\82Ä\82¢\82­\8eí\91°\81v\82â
+       * \81u\88ê\8e\9e\93I\82É\83A\83\93\83f\83b\83h\82Ì\93Á\90«\82ð\93¾\82Ä\82¢\82é\81v\82Æ\82¢\82Á\82½\8eÀ\91\95\82ð\89Â\94\\82É\82µ\82Ä\82¢\82é\81B</p>
+       */
+       class Ability : public CreatureTemplate
+       {
+       private:
+
+               friend class boost::serialization::access;
+
+               /*!
+               * @brief \83N\83\89\83X\82Ì\83V\83\8a\83A\83\89\83C\83Y\82ð\90Ý\92è\82·\82é
+               * @param archive \83A\81[\83J\83C\83u\89»\82·\82é\83N\83\89\83X\82Ì\83A\83h\83\8c\83X
+               * @param version \83t\83@\83C\83\8b\83o\81[\83W\83\87\83\93
+               * @return XMLSerialize\83e\83\93\83v\83\8c\81[\83g
+               */
+               template<class Archive> void serialize(Archive &archive, const unsigned int version) 
+               {
+                       if(version > 0)
+                       {
+                               archive & boost::serialization::make_nvp("Name", name);
+                               archive & boost::serialization::make_nvp("Description", description);
+                               archive & boost::serialization::make_nvp("Status", statusPlus);
+                               archive & boost::serialization::make_nvp("Discipline", disciplinePlus);
+                       }
+               }
+
+       public:
+
+               /*! 
+               * @brief Ability\83N\83\89\83X\83R\83\93\83X\83g\83\89\83N\83^
+               */
+               Ability::Ability(void);
+
+               /*! 
+               * @brief Ability\83N\83\89\83X\83f\83X\83g\83\89\83N\83^
+               */
+               Ability::~Ability(void);
+
+               /*! 
+               * @brief Ability\83N\83\89\83X\82Ì\83f\81[\83^\8fÁ\8b\8e
+               * @return \82È\82µ
+               */
+               void Ability::WipeData(void);
+
+       };
+
+}
+
+BOOST_CLASS_VERSION(Deeangband::Ability, 10);
diff --git a/Deeangband/Ability.h b/Deeangband/Ability.h
new file mode 100644 (file)
index 0000000..e9afb0f
--- /dev/null
@@ -0,0 +1,69 @@
+/*!
+* @file Ability.h
+* @brief \94­\93®\8bZ\94\\82Ì\83v\83\8d\83g\83^\83C\83v
+* @date 2014/06/09
+* @author Deskull
+* 2013 Sikabane Works.
+*/
+
+#pragma once
+
+#include "stdafx.h"
+#include "Deeangband.h"
+
+namespace Deeangband
+{
+
+       /*! 
+       * @class Ability
+       * @brief \94­\93®\8bZ\94\\82Ì\83N\83\89\83X
+       * @details
+       * <h1>\8aT\97v</h1>
+       * <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>
+       */
+       class Ability
+       {
+       private:
+
+               friend class boost::serialization::access;
+
+               /*!
+               * @brief \83N\83\89\83X\82Ì\83V\83\8a\83A\83\89\83C\83Y\82ð\90Ý\92è\82·\82é
+               * @param archive \83A\81[\83J\83C\83u\89»\82·\82é\83N\83\89\83X\82Ì\83A\83h\83\8c\83X
+               * @param version \83t\83@\83C\83\8b\83o\81[\83W\83\87\83\93
+               * @return XMLSerialize\83e\83\93\83v\83\8c\81[\83g
+               */
+               template<class Archive> void serialize(Archive &archive, const unsigned int version) 
+               {
+                       if(version > 0)
+                       {
+                               archive & boost::serialization::make_nvp("Name", name);
+                               archive & boost::serialization::make_nvp("Description", description);
+                               archive & boost::serialization::make_nvp("Status", statusPlus);
+                               archive & boost::serialization::make_nvp("Discipline", disciplinePlus);
+                       }
+               }
+
+       public:
+
+               /*! 
+               * @brief Ability\83N\83\89\83X\83R\83\93\83X\83g\83\89\83N\83^
+               */
+               Ability::Ability(void);
+
+               /*! 
+               * @brief Ability\83N\83\89\83X\83f\83X\83g\83\89\83N\83^
+               */
+               Ability::~Ability(void);
+
+               /*! 
+               * @brief Ability\83N\83\89\83X\82Ì\83f\81[\83^\8fÁ\8b\8e
+               * @return \82È\82µ
+               */
+               void Ability::WipeData(void);
+
+       };
+
+}
+
+BOOST_CLASS_VERSION(Deeangband::Ability, 10);
index 1b2967a..aad73aa 100644 (file)
@@ -86,6 +86,7 @@
     <Text Include="ReadMe.txt" />
   </ItemGroup>
   <ItemGroup>
+    <ClInclude Include="Ability.h" />
     <ClInclude Include="BaseStatusTable.h" />
     <ClInclude Include="Color.h" />
     <ClInclude Include="Direction.h" />
     <ClInclude Include="TrapBase.h" />
   </ItemGroup>
   <ItemGroup>
+    <ClCompile Include="Ability.cpp" />
     <ClCompile Include="BaseStatusTable.cpp" />
     <ClCompile Include="Color.cpp" />
     <ClCompile Include="Direction.cpp" />
index 599d8d0..66a198d 100644 (file)
@@ -1,7 +1,7 @@
 /*!
 * @file MixedRace.cpp
 * @brief \83Q\81[\83\80\92\86\82Ì\8d¬\8c\8c\8eí\91°\93Á\90«\82ð\92è\8b`\82·\82é
-* @date 2014/03/01
+* @date 2014/06/09
 * @author Deskull
 * 2014 Sikabane Works.
 */
index cfdb657..e8014cc 100644 (file)
@@ -1,7 +1,7 @@
 /*!
 * @file MixedRace.h
 * @brief \83Q\81[\83\80\92\86\82Ì\8eí\91°\8fî\95ñ\82Ì\83v\83\8d\83g\83^\83C\83v
-* @date 2014/03/01
+* @date 2014/06/09
 * @author Deskull
 * 2014 Sikabane Works.
 */