src/ai/api/ai_vehiclelist_valuator.cpp
author truelight
Sat, 14 Jul 2007 21:15:49 +0000
branchnoai
changeset 9657 f2c6e332d8bc
parent 9615 f809cdc8e360
child 9684 623970482fb2
permissions -rw-r--r--
(svn r10564) [NoAI] -Add: added a AITileList valuator that checks for a NxM buildable spot with the entry from the AITileList as top-left tile
#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);
}