OSDN Git Service

Add members and comment about them to TrapBase class.
authorDeskull <deskull@users.sourceforge.jp>
Wed, 14 May 2014 11:55:19 +0000 (20:55 +0900)
committerDeskull <deskull@users.sourceforge.jp>
Wed, 14 May 2014 11:55:19 +0000 (20:55 +0900)
Deeangband/Deeangband.h
Deeangband/TrapBase.h

index 610485c..5d4ff01 100644 (file)
@@ -147,6 +147,7 @@ typedef std::string DESCRIPTION; //!< 
 typedef int HEIGHT; //!< \92·\82³
 typedef int WEIGHT; //!< \8fd\97Ê
 typedef int DEPTH;  //!< \8aK\91w\90[\93x
+typedef int RARITY;  //!< \83\8c\83A\83\8a\83e\83B
 typedef int NUMBER; //!< \8cÂ\90\94
 typedef int PPM;    //!< \95S\96\9c\95ª\97¦
 typedef int MAP_LENGTH;   //!<\83}\83b\83v\8b\97\97£
index f2ea2a4..43f6704 100644 (file)
@@ -15,10 +15,23 @@ namespace Deeangband
        /*!
        * @class TrapBase
        * @brief \83g\83\89\83b\83v\83x\81[\83X\82Ì\83N\83\89\83X
+       * @details
+       * <H1>\8aT\97v</H1>
+       * TrapBase\83N\83\89\83X\82Í\81A\83g\83\89\83b\83v\82Ì\8eí\97Þ\82ð\92è\8b`\82·\82é\81B\82±\82Ì\8fî\95ñ\82ð\8c³\82É\8eÀ\8dÛ\82É\83t\83\8d\83A\93à\82Å\90\90¬\82³\82ê\82é\82Ì\82ªTrap\83N\83\89\83X\82Å\82 \82é\81B
+       * <H2>\83X\83e\81[\83^\83X\97v\91f</H2>
+       * \83g\83\89\83b\83v\83x\81[\83X\82Í\88È\89º\82Ì\83X\83e\81[\83^\83X\97v\91f\82ð\8e\9d\82Á\82Ä\82¢\82é\81B
+       * <ul>
+       * <li>\8dÅ\92á\90\90¬\8aK\91w/MinDepth</li>
+       * <li>\8dÅ\91å\90\90¬\8aK\91w/MaxDepth</li>
+       * <li>\90\90¬\83\8c\83A\83\8a\83e\83B/Rarity</li>
+       * </ul>
        */
        class TrapBase : public GameElement
        {
                friend class boost::serialization::access;
+               DEPTH minDepth; //!<\90\90¬\8dÅ\92á\8aK\91w
+               DEPTH maxDepth; //!<\90\90¬\8dÅ\91å\8aK\91w
+               RARITY rarity;  //!<\90\90¬\83\8c\83A\83\8a\83e\83B
 
                /*!
                * @brief \83N\83\89\83X\82Ì\83V\83\8a\83A\83\89\83C\83Y\82ð\90Ý\92è\82·\82é