src/ai/core/ai_map.hpp
branchnoai
changeset 9425 8eec6d10844a
parent 9422 33efcc5f1b09
equal deleted inserted replaced
9424:90e9aa6326f3 9425:8eec6d10844a
    54 	 * @post return <= this->GetMapSizeY()
    54 	 * @post return <= this->GetMapSizeY()
    55 	 */
    55 	 */
    56 	uint32 GetTileY(TileIndex t);
    56 	uint32 GetTileY(TileIndex t);
    57 };
    57 };
    58 
    58 
    59 #ifdef SQUIRREL_CLASS
    59 #ifdef DEFINE_SQUIRREL_CLASS
    60 void SQAIMapRegister(Squirrel *engine) {
    60 void SQAIMapRegister(Squirrel *engine) {
    61 	DefSQClass <AIMap> SQAIMap("AIMap");
    61 	DefSQClass <AIMap> SQAIMap("AIMap");
    62 	SQAIMap.PreRegister(engine);
    62 	SQAIMap.PreRegister(engine);
    63 	SQAIMap.AddConstructor(engine);
    63 	SQAIMap.AddConstructor(engine);
    64 	SQAIMap.DefSQFunction(engine, &AIMap::IsValidTile, "IsValidTile");
    64 	SQAIMap.DefSQFunction(engine, &AIMap::IsValidTile, "IsValidTile");