#include "Direction.h"
#include "Effect.h"
#include "Floor.h"
+#include "HaveInventory.h"
#include "HaveGameTime.h"
#include "HaveHp.h"
#include "HaveSymbol.h"
* <li>\8f\8a\8e\9d\83X\83L\83\8b\88ê\97\97 / Current Pisition</li>
* </ul>
*/
- class Creature : public GameInstance, public HaveSymbol, public HaveHp, public HaveGameTime, public HavePosition
+ class Creature : public GameInstance, public HaveSymbol, public HaveHp, public HaveGameTime, public HavePosition, public HaveInventory
{
private:
SavingTable savings; //!< \83Z\81[\83r\83\93\83O
- std::vector<Item> itemList; //!< \8f\8a\8e\9d\83A\83C\83e\83\80\83\8a\83X\83g
std::map<TAG, SKILL_EXP> skillExpList; //!< \83X\83L\83\8b\8co\8c±\92l\83\8a\83X\83g
ID campID; //!< \8f\8a\91®\90w\89cID
#include "stdafx.h"
#include "Deeangband.h"
#include "GameElement.h"
+#include "Item.h"
namespace Deeangband
{
friend class boost::serialization::access;
-
/*!
* @brief \83N\83\89\83X\82Ì\83V\83\8a\83A\83\89\83C\83Y\82ð\90Ý\92è\82·\82é
* @param archive \83A\81[\83J\83C\83u\89»\82·\82é\83N\83\89\83X\82Ì\83A\83h\83\8c\83X
}
}
+ protected:
+ std::vector<Item> itemList; //!< \83A\83C\83e\83\80\83\8a\83X\83g
+
public:
/*!
#include "stdafx.h"
#include "Deeangband.h"
#include "GameElement.h"
+#include "HaveHp.h"
+#include "HaveInventory.h"
namespace Deeangband
{
* @class Square
* @brief \83}\83X\82Ì\83N\83\89\83X
*/
- class Square : public GameElement
+ class Square : public GameElement, public HaveInventory, public HaveHp
{
private:
TAG featureTag; //!<\92n\8c`\83^\83O