OSDN Git Service

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

index 5ff27cb..7022c12 100644 (file)
@@ -29,3 +29,18 @@ Feature::Feature(void)
 Feature::~Feature(void)
 {
 }
+
+const ID Feature::GetTileID(void)
+{
+       return this->tileID;
+}
+
+const ID Feature::GetSymbol(void)
+{
+       return this->symbol;
+}
+
+const Color Feature::GetSymColor(void)
+{
+       return this->symColor;
+}
index 947ca09..a8dd70a 100644 (file)
@@ -33,8 +33,29 @@ public:
         */
        Feature::Feature(ID id, TAG tag, GameWorld *gameWorld);
 
+       /*! 
+        * @brief Feature\83N\83\89\83X\83R\83\93\83X\83g\83\89\83N\83^
+        */
        Feature::Feature(void);
 
+       /*! 
+        * @brief \83^\83C\83\8bID\82ð\95Ô\82·
+        * @brief \83^\83C\83\8bID
+        */
        Feature::~Feature(void);
 
+       const ID Feature::GetTileID(void);
+
+       /*! 
+        * @brief \92n\8c`\8bL\8d\86\82ð\95Ô\82·
+        * @return \92n\8c`\8bL\8d\86
+        */
+       const ID Feature::GetSymbol(void);
+
+       /*! 
+        * @brief \83V\83\93\83{\83\8b\83J\83\89\81[\82ð\95Ô\82·
+        * @brief \83V\83\93\83{\83\8b\83J\83\89\81[
+        */
+       const Color Feature::GetSymColor(void);
+
 };
index ef451aa..a8c67ae 100644 (file)
@@ -10,8 +10,6 @@
 
 #include "Deeangband.h"
 
-
-
 /*!
  * @struct Color
  * @brief \90F\8ew\92è\82Ì\8d\\91¢\91Ì
index ce8e7aa..2b800a6 100644 (file)
@@ -19,6 +19,7 @@ Species::Species(void)
 {
        this->name = "\83_\83~\81[";
        this->baseSoul = 100;
+       this->baseFeed = 20000;
 
        this->averageHeight = 160;
        this->averageWeight = 50;
@@ -49,3 +50,8 @@ const WEIGHT Species::GetAverageWeight(void)
 {
        return this->averageWeight;
 }
+
+const FEED Species::GetBaseFeed(void)
+{
+       return this->baseFeed;
+}
index b797d84..7ea6565 100644 (file)
@@ -76,4 +76,10 @@ public:
         */
        const WEIGHT Species::GetAverageWeight(void);
 
+       /*! 
+        * @brief \83N\83\8a\81[\83`\83\83\81[\8eí\95Ê\82Ì\8aî\96{\8e \97{\93x\82ð\95Ô\82·
+        * @return \8aî\96{\8e \97{\93x
+        */
+       const FEED Species::GetBaseFeed(void);
+
 };