#define CREATURE_MAX_GOLD 999999999L //!< \8dÅ\91å\83S\81[\83\8b\83h\92l
#define CREATURE_MAX_MORTAL_LEVEL 30 //!< \92è\96½\8dÅ\91å\83\8c\83x\83\8b
#define CREATURE_MAX_DIVINE_LEVEL 30 //!< \90_\8ai\8dÅ\91å\92l
+#define FIELD_MAX_WIDTH 65535 //!< \83t\83B\81[\83\8b\83h\8dÅ\91å\95\9d
+#define FIELD_MAX_HEIGHT 65535 //!< \83t\83B\81[\83\8b\83h\8dÅ\91å\8d\82\82³
#define CREATURE_MAX_LEVEL CREATURE_MAX_MORTAL_LEVEL+CREATURE_MAX_DIVINE_LEVEL //!< \90_\8ai\8d\9e\82Ý\8dÅ\91å\83\8c\83x\83\8b
#define SPECIAL_NAME_UNKNOWN "UNKNOWN" //!< \96¼\8fÌ\82Ì\83_\83~\81[\96¼
void Lore::WipeData(void)
{
+ this->squareMemory.clear();
+ }
+
+ void Lore::PutFieldLore(ID floorID, int x, int y)
+ {
+ this->squareMemory[floorID][y][x] = 100;
+ }
+
+ int Lore::GetFieldLore(ID floorID, int x, int y)
+ {
+ if(this->squareMemory.find(floorID) == this->squareMemory.end()) return 0;
+ if(this->squareMemory[floorID].find(y) == this->squareMemory[floorID].end()) return 0;
+ if(this->squareMemory[floorID][y].find(x) == this->squareMemory[floorID][y].end()) return 0;
+ return this->squareMemory[floorID][y][x];
}
}
\ No newline at end of file
namespace Deeangband
{
-
/*!
* @class Lore
* @brief \8bL\89¯\8fî\95ñ\82Ì\83N\83\89\83X
}
}
+ std::map<ID, std::map<int, std::map<int, int>>> squareMemory;
+
public:
/*!
*/
void Lore::WipeData(void);
+ /*!
+ * @brief \83t\83B\81[\83\8b\83h\8bL\89¯\82ð\92Ç\89Á\82·\82é\81B
+ * @param floorID \8bL\89¯\82·\82é\83t\83\8d\83AID
+ * @param x \8bL\89¯x\8dÀ\95W
+ * @param y \8bL\89¯y\8dÀ\95W
+ * @return \82È\82µ
+ */
+ void Lore::PutFieldLore(ID floorID, int x, int y);
+
+ /*!
+ * @brief \83t\83B\81[\83\8b\83h\8bL\89¯\82ð\95Ô\82·\81B
+ * @param floorID \8bL\89¯\82·\82é\83t\83\8d\83AID
+ * @param x \8bL\89¯x\8dÀ\95W
+ * @param y \8bL\89¯y\8dÀ\95W
+ * @return \8bL\89¯\93x\90\94
+ */
+ int Lore::GetFieldLore(ID floorID, int x, int y);
+
+
};
}