diff options
author | frosch <frosch@openttd.org> | 2009-02-01 16:10:06 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2009-02-01 16:10:06 +0000 |
commit | c28c4c1986a9a25cbf67ed84c6ba3d51447bbb6f (patch) | |
tree | db4e289e273064a04dbb517c6f5ff509c4fa81f7 /src/engine_base.h | |
parent | 6d5cd47c74be39ce6ffd92addcab417f178cbaad (diff) | |
download | openttd-c28c4c1986a9a25cbf67ed84c6ba3d51447bbb6f.tar.xz |
(svn r15306) -Codechange: Deduplicate code by adding Engine::GetDisplayMaxSpeed(), GetPower() and GetDisplayWeight(). (and using them)
Diffstat (limited to 'src/engine_base.h')
-rw-r--r-- | src/engine_base.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/engine_base.h b/src/engine_base.h index d5fd93329..787ae804b 100644 --- a/src/engine_base.h +++ b/src/engine_base.h @@ -52,6 +52,9 @@ struct Engine : PoolItem<Engine, EngineID, &_Engine_pool> { Money GetRunningCost() const; Money GetCost() const; + uint GetDisplayMaxSpeed() const; + uint GetPower() const; + uint GetDisplayWeight() const; }; static inline bool IsEngineIndex(uint index) |