(svn r21235) -Codechange: Move Train::UpdateVisualEffect to the Vehicle class (Hirundo)

This commit is contained in:
rubidium
2010-11-18 14:09:39 +00:00
parent 797435f05d
commit b9407f7ca0
4 changed files with 47 additions and 46 deletions

View File

@@ -612,6 +612,12 @@ public:
*/
CommandCost SendToDepot(DoCommandFlag flags, DepotCommand command);
/**
* Update the cached visual effect.
* @param allow_power_change true if the wagon-is-powered-state may change.
*/
void UpdateVisualEffect(bool allow_power_change = true);
/**
* Increments cur_order_index, keeps care of the wrap-around and invalidates the GUI.
* Note: current_order is not invalidated.