--- a/src/ai/api/ai_map.hpp Sun Mar 25 16:10:40 2007 +0000
+++ b/src/ai/api/ai_map.hpp Sun Mar 25 16:32:02 2007 +0000
@@ -136,18 +136,18 @@
SQAIMap.PreRegister(engine);
SQAIMap.AddConstructor(engine);
- SQAIMap.DefSQFunction(engine, &AIMap::IsValidTile, "IsValidTile");
- SQAIMap.DefSQFunction(engine, &AIMap::GetMapSize, "GetMapSize");
- SQAIMap.DefSQFunction(engine, &AIMap::GetMapSizeX, "GetMapSizeX");
- SQAIMap.DefSQFunction(engine, &AIMap::GetMapSizeY, "GetMapSizeY");
- SQAIMap.DefSQFunction(engine, &AIMap::GetTileX, "GetTileX");
- SQAIMap.DefSQFunction(engine, &AIMap::GetTileY, "GetTileY");
- SQAIMap.DefSQFunction(engine, &AIMap::GetTileIndex, "GetTileIndex");
- SQAIMap.DefSQFunction(engine, &AIMap::DistanceManhattan, "DistanceManhattan");
- SQAIMap.DefSQFunction(engine, &AIMap::DistanceMax, "DistanceMax");
- SQAIMap.DefSQFunction(engine, &AIMap::DistanceSquare, "DistanceSquare");
- SQAIMap.DefSQFunction(engine, &AIMap::DistanceFromEdge, "DistanceFromEdge");
- SQAIMap.DefSQFunction(engine, &AIMap::DemolishTile, "DemolishTile");
+ SQAIMap.DefSQMethod(engine, &AIMap::IsValidTile, "IsValidTile");
+ SQAIMap.DefSQMethod(engine, &AIMap::GetMapSize, "GetMapSize");
+ SQAIMap.DefSQMethod(engine, &AIMap::GetMapSizeX, "GetMapSizeX");
+ SQAIMap.DefSQMethod(engine, &AIMap::GetMapSizeY, "GetMapSizeY");
+ SQAIMap.DefSQMethod(engine, &AIMap::GetTileX, "GetTileX");
+ SQAIMap.DefSQMethod(engine, &AIMap::GetTileY, "GetTileY");
+ SQAIMap.DefSQMethod(engine, &AIMap::GetTileIndex, "GetTileIndex");
+ SQAIMap.DefSQMethod(engine, &AIMap::DistanceManhattan, "DistanceManhattan");
+ SQAIMap.DefSQMethod(engine, &AIMap::DistanceMax, "DistanceMax");
+ SQAIMap.DefSQMethod(engine, &AIMap::DistanceSquare, "DistanceSquare");
+ SQAIMap.DefSQMethod(engine, &AIMap::DistanceFromEdge, "DistanceFromEdge");
+ SQAIMap.DefSQMethod(engine, &AIMap::DemolishTile, "DemolishTile");
SQAIMap.PostRegister(engine);
}