author | truebrain |
Tue, 26 Feb 2008 23:47:37 +0000 | |
branch | noai |
changeset 9788 | e9dbd4ec1784 |
permissions | -rw-r--r-- |
9788
e9dbd4ec1784
(svn r12284) [NoAI] -Add: added AICargoList_v(IsFreight|CargoIncomes) (Morloth)
truebrain
parents:
diff
changeset
|
1 |
#include "ai_cargolist_valuator.hpp" |
e9dbd4ec1784
(svn r12284) [NoAI] -Add: added AICargoList_v(IsFreight|CargoIncomes) (Morloth)
truebrain
parents:
diff
changeset
|
2 |
#include "ai_cargo.hpp" |
e9dbd4ec1784
(svn r12284) [NoAI] -Add: added AICargoList_v(IsFreight|CargoIncomes) (Morloth)
truebrain
parents:
diff
changeset
|
3 |
|
e9dbd4ec1784
(svn r12284) [NoAI] -Add: added AICargoList_v(IsFreight|CargoIncomes) (Morloth)
truebrain
parents:
diff
changeset
|
4 |
int32 AICargoList_vIsFreight::Valuate(int32 cargoID) const |
e9dbd4ec1784
(svn r12284) [NoAI] -Add: added AICargoList_v(IsFreight|CargoIncomes) (Morloth)
truebrain
parents:
diff
changeset
|
5 |
{ |
e9dbd4ec1784
(svn r12284) [NoAI] -Add: added AICargoList_v(IsFreight|CargoIncomes) (Morloth)
truebrain
parents:
diff
changeset
|
6 |
return AICargo::IsFreight(cargoID); |
e9dbd4ec1784
(svn r12284) [NoAI] -Add: added AICargoList_v(IsFreight|CargoIncomes) (Morloth)
truebrain
parents:
diff
changeset
|
7 |
} |
e9dbd4ec1784
(svn r12284) [NoAI] -Add: added AICargoList_v(IsFreight|CargoIncomes) (Morloth)
truebrain
parents:
diff
changeset
|
8 |
|
e9dbd4ec1784
(svn r12284) [NoAI] -Add: added AICargoList_v(IsFreight|CargoIncomes) (Morloth)
truebrain
parents:
diff
changeset
|
9 |
int32 AICargoList_vCargoIncomes::Valuate(int32 cargoID) const |
e9dbd4ec1784
(svn r12284) [NoAI] -Add: added AICargoList_v(IsFreight|CargoIncomes) (Morloth)
truebrain
parents:
diff
changeset
|
10 |
{ |
e9dbd4ec1784
(svn r12284) [NoAI] -Add: added AICargoList_v(IsFreight|CargoIncomes) (Morloth)
truebrain
parents:
diff
changeset
|
11 |
return AICargo::GetCargoIncome(distance, days_in_transit, cargoID); |
e9dbd4ec1784
(svn r12284) [NoAI] -Add: added AICargoList_v(IsFreight|CargoIncomes) (Morloth)
truebrain
parents:
diff
changeset
|
12 |
} |