(svn r16459) -Codechange: move definition of several cargopacket accessors to header file

This commit is contained in:
smatz
2009-05-29 15:46:55 +00:00
parent 436730d9a0
commit 917e1f4fad
2 changed files with 12 additions and 49 deletions

View File

@@ -29,11 +29,6 @@ CargoPacket::CargoPacket(StationID source, uint16 count)
this->paid_for = false;
}
bool CargoPacket::SameSource(const CargoPacket *cp) const
{
return this->source_xy == cp->source_xy && this->days_in_transit == cp->days_in_transit && this->paid_for == cp->paid_for;
}
/*
*
* Cargo list implementation
@@ -48,11 +43,6 @@ CargoList::~CargoList()
}
}
const CargoList::List *CargoList::Packets() const
{
return &packets;
}
void CargoList::AgeCargo()
{
if (empty) return;
@@ -65,36 +55,6 @@ void CargoList::AgeCargo()
days_in_transit = dit / count;
}
bool CargoList::Empty() const
{
return empty;
}
uint CargoList::Count() const
{
return count;
}
bool CargoList::UnpaidCargo() const
{
return unpaid_cargo;
}
Money CargoList::FeederShare() const
{
return feeder_share;
}
StationID CargoList::Source() const
{
return source;
}
uint CargoList::DaysInTransit() const
{
return days_in_transit;
}
void CargoList::Append(CargoPacket *cp)
{
assert(cp != NULL);