OSDN Git Service

Add abilityLiat and that's property function to GameWorld class.
authorDeskull <desull@users.sourceforge.jp>
Mon, 9 Jun 2014 14:10:57 +0000 (23:10 +0900)
committerDeskull <desull@users.sourceforge.jp>
Mon, 9 Jun 2014 14:10:57 +0000 (23:10 +0900)
Deeangband/GameWorld.cpp
Deeangband/GameWorld.h

index 0ead317..1720db7 100644 (file)
@@ -504,6 +504,11 @@ namespace Deeangband
                return &(*creatureList[id]);
        }
 
+       std::map<TAG, boost::shared_ptr<Ability>> *GameWorld::GetAbilityList(void)
+       {
+               return &(this->abilityList);
+       }
+
        std::map<ID, boost::shared_ptr<Creature>> *GameWorld::GetCreatureList(void)
        {
                return &(this->creatureList);
index 86e2659..e7141ea 100644 (file)
@@ -11,6 +11,7 @@
 #include "stdafx.h"
 #include "Deeangband.h"
 
+#include "Ability.h"
 #include "Authority.h"
 #include "Building.h"
 #include "Camp.h"
@@ -50,6 +51,7 @@ namespace Deeangband
        private:
 
                //\90Ã\93I\83f\81[\83^\83\8a\83X\83g
+               std::map<TAG, boost::shared_ptr<Ability>> abilityList;              /*!<\91S\94­\93®\8bZ\94\\83\8a\83X\83g*/
                std::map<TAG, boost::shared_ptr<Authority>> authorityList;          /*!<\91S\8c \94\\83\8a\83X\83g*/
                std::map<TAG, boost::shared_ptr<Building>> buildingList;            /*!<\91S\8e{\90Ý\83\8a\83X\83g*/
                std::map<TAG, boost::shared_ptr<Camp>> campList;                    /*!<\91S\90w\89c\83\8a\83X\83g*/
@@ -58,7 +60,8 @@ namespace Deeangband
                std::map<TAG, boost::shared_ptr<Effect>> effectList;                /*!<\91S\8cø\89Ê\91®\90«\83\8a\83X\83g*/
                std::map<TAG, boost::shared_ptr<Feature>> featureList;              /*!<\91S\92n\8c`\83\8a\83X\83g*/
                std::map<TAG, boost::shared_ptr<FixedArtifact>> fixedArtifactList;  /*!<\91S\8cÅ\92è\83A\81[\83e\83B\83t\83@\83N\83g\83\8a\83X\83g*/
-               std::map<TAG, boost::shared_ptr<ItemBase>> itemBaseList;            /*!<\91S\83A\83C\83e\83\80\83x\81[\83X\83\8a\83X\83g*/                std::map<TAG, boost::shared_ptr<ItemEgo>> itemEgoList;              /*!<\91S\83A\83C\83e\83\80\83G\83S\83\8a\83X\83g*/
+               std::map<TAG, boost::shared_ptr<ItemBase>> itemBaseList;            /*!<\91S\83A\83C\83e\83\80\83x\81[\83X\83\8a\83X\83g*/
+               std::map<TAG, boost::shared_ptr<ItemEgo>> itemEgoList;              /*!<\91S\83A\83C\83e\83\80\83G\83S\83\8a\83X\83g*/
                std::map<TAG, boost::shared_ptr<ItemTrait>> itemTraitList;          /*!<\91S\83A\83C\83e\83\80\93Á\90«\83\8a\83X\83g*/
                std::map<TAG, boost::shared_ptr<Karma>> karmaList;                  /*!<\91S\83J\83\8b\83}\83\8a\83X\83g*/
                std::map<TAG, boost::shared_ptr<Quest>> questList;                  /*!<\91S\83N\83G\83X\83g\93Á\90«\83\8a\83X\83g*/
@@ -398,8 +401,14 @@ namespace Deeangband
                Creature *GameWorld::GetCreature(ID id);
 
                /*!
+               * @brief GameWorld\92\86\82É\91\8dÝ\82·\82é\94­\93®\8bZ\94\\82ð\95Ô\82·
+               * @return \91S\94­\93®\8bZ\94\\82Ì\83\8a\83X\83g
+               */
+               std::map<TAG, boost::shared_ptr<Ability>> *GameWorld::GetAbilityList(void);
+
+               /*!
                * @brief GameWorld\92\86\82É\91\8dÝ\82·\82é\83N\83\8a\81[\83`\83\83\81[\82ð\95Ô\82·
-               * @return \83N\83\8a\81[\83`\83\83\81[\82Ì\83\8a\83X\83g
+               * @return \91S\83N\83\8a\81[\83`\83\83\81[\82Ì\83\8a\83X\83g
                */
                std::map<ID, boost::shared_ptr<Creature>> *GameWorld::GetCreatureList(void);