(svn r9808) -Codechange: unify the Handle<VehicleType>Loading functions.

This commit is contained in:
rubidium
2007-05-07 16:21:34 +00:00
parent 161786e222
commit 2efecd34c4
6 changed files with 45 additions and 109 deletions

View File

@@ -316,6 +316,13 @@ struct Vehicle {
void BeginLoading();
void LeaveStation();
/**
* Handle the loading of the vehicle; when not it skips through dummy
* orders and does nothing in all other cases.
* @param mode is the non-first call for this vehicle in this tick?
*/
void HandleLoading(bool mode = false);
/**
* An overriden version of new, so you can use the vehicle instance
* instead of a newly allocated piece of memory.