src/ai/core/ai_town.hpp
branchnoai
changeset 9387 4255a0a2d272
parent 9380 f4c7eb98b43d
child 9397 d8f8db9c1a2e
equal deleted inserted replaced
9386:c8aa2ae117f5 9387:4255a0a2d272
    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 */