(svn r9782) [NoAI] -Add: add information functions to AIVehicle, like the valuators of AIVehicleList
#include "ai_vehiclelist_valuator.hpp"
#include "ai_vehicle.hpp"
int32 AIVehicleListLocation::Valuate(int32 vehicle) const
{
return AIVehicle::GetLocation(vehicle);
}
int32 AIVehicleListEngineType::Valuate(int32 vehicle) const
{
return AIVehicle::GetEngineType(vehicle);
}
int32 AIVehicleListUnitNumber::Valuate(int32 vehicle) const
{
return AIVehicle::GetUnitNumber(vehicle);
}
int32 AIVehicleListAge::Valuate(int32 vehicle) const
{
return AIVehicle::GetAge(vehicle);
}
int32 AIVehicleListMaxAge::Valuate(int32 vehicle) const
{
return AIVehicle::GetMaxAge(vehicle);
}
int32 AIVehicleListAgeLeft::Valuate(int32 vehicle) const
{
return AIVehicle::GetAgeLeft(vehicle);
}
int32 AIVehicleListProfitThisYear::Valuate(int32 vehicle) const
{
return AIVehicle::GetProfitThisYear(vehicle);
}
int32 AIVehicleListProfitLastYear::Valuate(int32 vehicle) const
{
return AIVehicle::GetProfitLastYear(vehicle);
}