OSDN Git Service

Lore クラス追加。 / Add Lore class.
authorDeskull <desull@users.sourceforge.jp>
Sun, 4 Jan 2015 03:19:43 +0000 (12:19 +0900)
committerDeskull <desull@users.sourceforge.jp>
Sun, 4 Jan 2015 03:19:43 +0000 (12:19 +0900)
Deeangband/Ability.cpp
Deeangband/Ability.h
Deeangband/Deeangband.vcxproj
Deeangband/Lore.cpp [new file with mode: 0644]
Deeangband/Lore.h [new file with mode: 0644]

index df8b912..d3ba751 100644 (file)
@@ -1,10 +1,10 @@
 /*!
-* @file Ability.cpp
-* @brief Ability\83N\83\89\83X\82Ì\92è\8b`
-* @date 2014/06/10
-* @author Deskull
-* 2013 Sikabane Works.
-*/
+ * @file Ability.cpp
+ * @brief Ability\83N\83\89\83X\82Ì\92è\8b`
+ * @date 2014/06/10
+ * @author Deskull
+ * 2013 Sikabane Works.
+ */
 
 #include "stdafx.h"
 #include "Ability.h"
index 1db2592..f45ebd4 100644 (file)
@@ -1,10 +1,10 @@
 /*!
-* @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.
-*/
+ * @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
 
index a021aa1..cc5ce68 100644 (file)
     <ClInclude Include="ItemTemplate.h" />
     <ClInclude Include="ItemTrait.h" />
     <ClInclude Include="Karma.h" />
+    <ClInclude Include="Lore.h" />
     <ClInclude Include="MixedRace.h" />
     <ClInclude Include="ProbabilityTable.h" />
     <ClInclude Include="Quest.h" />
     <ClCompile Include="ItemTemplate.cpp" />
     <ClCompile Include="ItemTrait.cpp" />
     <ClCompile Include="Karma.cpp" />
+    <ClCompile Include="Lore.cpp" />
     <ClCompile Include="MixedRace.cpp" />
     <ClCompile Include="ProbabilityTable.cpp" />
     <ClCompile Include="Quest.cpp" />
diff --git a/Deeangband/Lore.cpp b/Deeangband/Lore.cpp
new file mode 100644 (file)
index 0000000..6d7d2bc
--- /dev/null
@@ -0,0 +1,29 @@
+/*!
+ * @file Lore.cpp
+ * @brief Lore\83N\83\89\83X\82Ì\92è\8b`
+ * @date 2015/01/04
+ * @author Deskull
+ * 2015 Sikabane Works.
+ */
+
+#include "stdafx.h"
+#include "Lore.h"
+
+namespace Deeangband
+{
+
+       Lore::Lore(void)
+       {
+               this->WipeData();
+       }
+
+       Lore::~Lore(void)
+       {
+               this->WipeData();
+       }
+
+       void Lore::WipeData(void)
+       {
+       }
+
+}
\ No newline at end of file
diff --git a/Deeangband/Lore.h b/Deeangband/Lore.h
new file mode 100644 (file)
index 0000000..b59f31b
--- /dev/null
@@ -0,0 +1,67 @@
+/*!
+ * @file Lore.h
+ * @brief \8bL\89¯\8fî\95ñ\82Ì\83v\83\8d\83g\83^\83C\83v
+ * @date 2015/01/04
+ * @author Deskull
+ * 2015 Sikabane Works.
+ */
+
+#pragma once
+
+#include "stdafx.h"
+#include "Deeangband.h"
+
+namespace Deeangband
+{
+
+       /*! 
+        * @class Lore
+        * @brief \8bL\89¯\8fî\95ñ\82Ì\83N\83\89\83X
+        * @details
+        * <h1>\8aT\97v</h1>
+        * <p>Lore\82Í\83N\83\8a\81[\83`\83\83\81[\8cÂ\91Ì\82 \82é\82¢\82Í\8fW\92c\82ª\8e\9d\82Â\8bL\89¯\8fî\95ñ\82ð\92è\8b`\82µ\82½\83N\83\89\83X\82Å\82 \82é\81B</p>
+        */
+       class Lore
+       {
+       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);
+                       }
+               }
+
+       public:
+
+               /*! 
+                * @brief Lore\83N\83\89\83X\83R\83\93\83X\83g\83\89\83N\83^
+                */
+               Lore::Lore(void);
+
+               /*! 
+                * @brief Lore\83N\83\89\83X\83f\83X\83g\83\89\83N\83^
+                */
+               Lore::~Lore(void);
+
+               /*! 
+                * @brief Lore\83N\83\89\83X\82Ì\83f\81[\83^\8fÁ\8b\8e
+                * @return \82È\82µ
+                */
+               void Lore::WipeData(void);
+
+       };
+
+}
+
+BOOST_CLASS_VERSION(Deeangband::Lore, 10);