this->floorTag = SPECIAL_TAG_UNKNOWN;
this->spaceTag = SPECIAL_TAG_UNKNOWN;
this->airTag = SPECIAL_TAG_UNKNOWN;
- this->hitPoint = this->maxPoint = 100;
}
Square::~Square()
{
if(effectPtr)
{
- this->hitPoint -= amount;
}
return false;
}
return NULL;
}
- const HP Square::GetCurrentHP(void)
- {
- return this->hitPoint;
- }
-
- const HP Square::GetMaxHP(void)
- {
- return this->maxPoint;
- }
-
}
\ No newline at end of file
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)
*/
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);
-
};
}