OSDN Git Service

Add SavingTable structure.
authorDeskull <deskull@users.sourceforge.jp>
Mon, 3 Mar 2014 03:46:37 +0000 (12:46 +0900)
committerDeskull <deskull@users.sourceforge.jp>
Mon, 3 Mar 2014 03:46:37 +0000 (12:46 +0900)
Deeangband/Creature.h

index 15670cf..7a2f9fa 100644 (file)
@@ -36,7 +36,7 @@ enum CREATURE_STATUS
 
 /*!
  * @struct StatusTable
- * @brief \83X\83e\81[\83^\83X\92l\82Ì\8d\\91¢\91Ì
+ * @brief \8aî\96{\83X\83e\81[\83^\83X\92l\82Ì\8d\\91¢\91Ì
  */
 struct StatusTable
 {
@@ -46,6 +46,18 @@ struct StatusTable
 };
 
 /*!
+ * @struct SavingTable
+ * @brief \83Z\81[\83r\83\93\83O\92l\82Ì\8d\\91¢\91Ì
+ */
+struct SavingTable
+{
+       Status armor;    /*!< \91\95\8db\83Z\81[\83u\92l */
+       Status evasion;  /*!< \89ñ\94ð\83Z\81[\83u\92l */
+       Status volition; /*!< \88Ó\8ev\83Z\81[\83u\92l */
+};
+
+
+/*!
  * @class Creature
  * @brief \83N\83\8a\81[\83`\83\83\81[\82Ì\83N\83\89\83X
  */
@@ -63,7 +75,9 @@ private:
        SOUL currentSoul; /*!< \8c»\8dÝ\82Ì\83\\83E\83\8b\92l */
        SOUL maxSoul;     /*!< \83\\83E\83\8b\8dÅ\91å\93\9e\92B\92l */
 
-       StatusTable status; /*!< \83X\83e\81[\83^\83X */
+       StatusTable status;  /*!< \83X\83e\81[\83^\83X */
+       SavingTable savings; /*!< \83Z\81[\83r\83\93\83O */
+
        ID floorID; /*!< \8c»\8dÝ\82¢\82é\83t\83\8d\83AID */
        Coordinates position; /*!< \8c»\8dÀ\95W */
        map<ID, Tag, Item> itemList; /*!< \8f\8a\8e\9d\83A\83C\83e\83\80\83\8a\83X\83g */