summaryrefslogtreecommitdiff
path: root/src/effectvehicle_base.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-01-31 20:27:33 +0000
committerrubidium <rubidium@openttd.org>2011-01-31 20:27:33 +0000
commit67a5cd0b185158ca4926c8cb45f1735a1001e00b (patch)
tree9c1da7950e0954846792a820537dbd4778932e19 /src/effectvehicle_base.h
parent8f67baae2e5766300442f9ca5c962dbbce848ad4 (diff)
downloadopenttd-67a5cd0b185158ca4926c8cb45f1735a1001e00b.tar.xz
(svn r21932) -Document: some tidbits related to vehicles
Diffstat (limited to 'src/effectvehicle_base.h')
-rw-r--r--src/effectvehicle_base.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/effectvehicle_base.h b/src/effectvehicle_base.h
index 11067db61..4cd31988b 100644
--- a/src/effectvehicle_base.h
+++ b/src/effectvehicle_base.h
@@ -23,8 +23,8 @@
* - bubbles (industry)
*/
struct EffectVehicle : public SpecializedVehicle<EffectVehicle, VEH_EFFECT> {
- uint16 animation_state;
- byte animation_substate;
+ uint16 animation_state; ///< State primarily used to change the graphics/behaviour.
+ byte animation_substate; ///< Sub state to time the change of the graphics/behaviour.
/** We don't want GCC to zero our struct! It already is zeroed and has an index! */
EffectVehicle() : SpecializedVehicleBase() {}
@@ -35,6 +35,10 @@ struct EffectVehicle : public SpecializedVehicle<EffectVehicle, VEH_EFFECT> {
bool Tick();
};
+/**
+ * Iterate over disaster vehicles.
+ * @param var The variable used to iterate over.
+ */
#define FOR_ALL_EFFECTVEHICLES(var) FOR_ALL_VEHICLES_OF_TYPE(EffectVehicle, var)
#endif /* EFFECTVEHICLE_BASE_H */