equal
deleted
inserted
replaced
56 * @post return >= 0 |
56 * @post return >= 0 |
57 */ |
57 */ |
58 TileIndex GetLocation(TownID town_id); |
58 TileIndex GetLocation(TownID town_id); |
59 }; |
59 }; |
60 |
60 |
|
61 #ifdef SQUIRREL_CLASS |
|
62 void SQAITownRegister(HSQUIRRELVM vm) { |
|
63 DefSQClass <AITown> SQAITown("AITown"); |
|
64 SQAITown.PreRegister(vm); |
|
65 SQAITown.DefSQFunction(vm, &AITown::GetMaxTownID, "GetMaxTownID"); |
|
66 SQAITown.DefSQFunction(vm, &AITown::GetTownCount, "GetTownCount"); |
|
67 SQAITown.DefSQFunction(vm, &AITown::IsValidTown, "IsValidTown"); |
|
68 SQAITown.DefSQFunction(vm, &AITown::GetName, "GetName"); |
|
69 SQAITown.DefSQFunction(vm, &AITown::GetPopulation, "GetPopulation"); |
|
70 SQAITown.DefSQFunction(vm, &AITown::GetLocation, "GetLocation"); |
|
71 SQAITown.PostRegister(vm); |
|
72 } |
|
73 #endif /* SQUIRREL_CLASS */ |
|
74 |
61 #endif /* AI_TOWN_HPP */ |
75 #endif /* AI_TOWN_HPP */ |