OSDN Git Service

Remove duplicated member in Square class.
authorDeskull <desull@users.sourceforge.jp>
Fri, 20 Jun 2014 13:17:01 +0000 (22:17 +0900)
committerDeskull <desull@users.sourceforge.jp>
Fri, 20 Jun 2014 13:17:01 +0000 (22:17 +0900)
Deeangband/Square.cpp
Deeangband/Square.h

index 6b851c0..7a0dffa 100644 (file)
@@ -22,7 +22,6 @@ namespace Deeangband
                this->floorTag = SPECIAL_TAG_UNKNOWN;
                this->spaceTag = SPECIAL_TAG_UNKNOWN;
                this->airTag = SPECIAL_TAG_UNKNOWN;
-               this->hitPoint = this->maxPoint = 100;
        }
 
        Square::~Square()
@@ -33,7 +32,6 @@ namespace Deeangband
        {
                if(effectPtr)
                {
-                       this->hitPoint -= amount;
                }
                return false;
        }
@@ -64,14 +62,4 @@ namespace Deeangband
                return NULL;
        }
 
-       const HP Square::GetCurrentHP(void)
-       {
-               return this->hitPoint;
-       }
-
-       const HP Square::GetMaxHP(void)
-       {
-               return this->maxPoint;
-       }
-
 }
\ No newline at end of file
index 0b308d6..d45664d 100644 (file)
@@ -27,8 +27,6 @@ namespace Deeangband
                TAG floorTag;     //!<\8f°\92n\8c`\83^\83O
                TAG spaceTag;     //!<\8bó\8aÔ\92n\8c`\83^\83O
                TAG airTag;       //!<\91å\8bC\92n\8c`\83^\83O
-               HP hitPoint;      //!<\92n\8c`\8c»HP
-               HP maxPoint;      //!<\92n\8c`\8dÅ\91åHP
 
                friend class boost::serialization::access;
                template<class Archive> void serialize(Archive &archive, const unsigned int) 
@@ -101,18 +99,6 @@ namespace Deeangband
                */
                bool Square::TakeEffect(Effect *effectPtr, POWER amount);
 
-               /*!
-               * @brief \8c»\8dÝ\82Ì\92n\8c`HP\82ð\95Ô\82·
-               * @return \8c»\92n\8c`HP
-               */
-               const HP Square::GetCurrentHP(void);
-
-               /*!
-               * @brief \8dÅ\91å\82Ì\92n\8c`HP\82ð\95Ô\82·
-               * @return \8dÅ\91å\92n\8c`HP
-               */
-               const HP Square::GetMaxHP(void);
-
        };
 
 }