src/ai/core/ai_map.hpp
branchnoai
changeset 9397 d8f8db9c1a2e
parent 9388 032008c3f6e3
child 9404 ef9e171617a3
equal deleted inserted replaced
9396:a05857491d2d 9397:d8f8db9c1a2e
    55 	 */
    55 	 */
    56 	uint32 GetTileY(TileIndex t);
    56 	uint32 GetTileY(TileIndex t);
    57 };
    57 };
    58 
    58 
    59 #ifdef SQUIRREL_CLASS
    59 #ifdef SQUIRREL_CLASS
    60 void SQAIMapRegister(HSQUIRRELVM vm) {
    60 void SQAIMapRegister(SquirrelEngine *engine) {
    61 	DefSQClass <AIMap> SQAIMap("AIMap");
    61 	DefSQClass <AIMap> SQAIMap("AIMap");
    62 	SQAIMap.PreRegister(vm);
    62 	SQAIMap.PreRegister(engine);
    63 	SQAIMap.DefSQFunction(vm, &AIMap::IsValidTile, "IsValidTile");
    63 	SQAIMap.DefSQFunction(engine, &AIMap::IsValidTile, "IsValidTile");
    64 	SQAIMap.DefSQFunction(vm, &AIMap::GetMapSize,  "GetMapSize");
    64 	SQAIMap.DefSQFunction(engine, &AIMap::GetMapSize,  "GetMapSize");
    65 	SQAIMap.DefSQFunction(vm, &AIMap::GetMapSizeX, "GetMapSizeX");
    65 	SQAIMap.DefSQFunction(engine, &AIMap::GetMapSizeX, "GetMapSizeX");
    66 	SQAIMap.DefSQFunction(vm, &AIMap::GetMapSizeY, "GetMapSizeY");
    66 	SQAIMap.DefSQFunction(engine, &AIMap::GetMapSizeY, "GetMapSizeY");
    67 	SQAIMap.DefSQFunction(vm, &AIMap::GetTileX,    "GetTileX");
    67 	SQAIMap.DefSQFunction(engine, &AIMap::GetTileX,    "GetTileX");
    68 	SQAIMap.DefSQFunction(vm, &AIMap::GetTileY,    "GetTileY");
    68 	SQAIMap.DefSQFunction(engine, &AIMap::GetTileY,    "GetTileY");
    69 	SQAIMap.PostRegister(vm);
    69 	SQAIMap.PostRegister(engine);
    70 }
    70 }
    71 #endif /* SQUIRREL_CLASS */
    71 #endif /* SQUIRREL_CLASS */
    72 
    72 
    73 #endif /* AI_MAP_HPP */
    73 #endif /* AI_MAP_HPP */