(svn r20504) -Codechange: Move updating of train's visual effect to separate function.

This commit is contained in:
frosch
2010-08-15 19:53:53 +00:00
parent 4ca2609362
commit 57a098bccc
2 changed files with 33 additions and 21 deletions

View File

@@ -372,6 +372,8 @@ struct Train : public GroundVehicle<Train, VEH_TRAIN> {
protected: // These functions should not be called outside acceleration code.
void UpdateVisualEffect();
/**
* Allows to know the power value that this vehicle will use.
* @return Power value from the engine in HP, or zero if the vehicle is not powered.