OSDN Git Service

Add Get functions to Species class.
authorDeskull <deskull@users.sourceforge.jp>
Sun, 9 Mar 2014 12:37:49 +0000 (21:37 +0900)
committerDeskull <deskull@users.sourceforge.jp>
Sun, 9 Mar 2014 12:37:49 +0000 (21:37 +0900)
Deeangband/Species.cpp
Deeangband/Species.h

index ffcf7cb..ce8e7aa 100644 (file)
@@ -24,11 +24,28 @@ Species::Species(void)
        this->averageWeight = 50;
 
        this->baseStatus.Set(8, 8, 8, 8, 8, 8);
-
-       return;
 }
 
 Species::~Species(void)
 {
-       return;
+}
+
+const string Species::GetName(void)
+{
+       return this->name;
+}
+
+const SOUL Species::GetBaseSoul(void)
+{
+       return this->baseSoul;
+}
+
+const HEIGHT Species::GetAverageHeight(void)
+{
+       return this->averageHeight;
+}
+
+const WEIGHT Species::GetAverageWeight(void)
+{
+       return this->averageWeight;
 }
index 462d3b6..b797d84 100644 (file)
@@ -52,4 +52,28 @@ public:
         */
        Species::~Species(void);
 
+       /*! 
+        * @brief \83N\83\8a\81[\83`\83\83\81[\8eí\95Ê\82Ì\96¼\91O\82ð\95Ô\82·
+        * @return \96¼\91O
+        */
+       const string Species::GetName(void);
+
+       /*! 
+        * @brief \83N\83\8a\81[\83`\83\83\81[\8eí\95Ê\82Ì\8aî\96{\83\\83E\83\8b\97Ê\82ð\8bA\82·
+        * @return \83\\83E\83\8b\97Ê
+        */
+       const SOUL Species::GetBaseSoul(void);
+
+       /*! 
+        * @brief \83N\83\8a\81[\83`\83\83\81[\8eí\95Ê\82Ì\95½\8bÏ\90g\92·\82ð\95Ô\82·
+        * @return \95½\8bÏ\90g\92·
+        */
+       const HEIGHT Species::GetAverageHeight(void);
+
+       /*! 
+        * @brief \83N\83\8a\81[\83`\83\83\81[\8eí\95Ê\82Ì\95½\8bÏ\91Ì\8fd\82ð\95Ô\82·
+        * @return \95½\8bÏ\91Ì\8fd
+        */
+       const WEIGHT Species::GetAverageWeight(void);
+
 };