diff options
author | rubidium <rubidium@openttd.org> | 2011-05-01 19:51:52 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-05-01 19:51:52 +0000 |
commit | 5a620d1c6592057b500f0889eef8949dc1e95e4b (patch) | |
tree | dabae6247490fdea860bea292bb8eee49ce46fe4 /src/ship.h | |
parent | 1a515e6344028854c855671c19f49d8f869eb18f (diff) | |
download | openttd-5a620d1c6592057b500f0889eef8949dc1e95e4b.tar.xz |
(svn r22406) -Document: some more "random-ish" tidbits
Diffstat (limited to 'src/ship.h')
-rw-r--r-- | src/ship.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ship.h b/src/ship.h index 9dc3a78a8..3a7e21d58 100644 --- a/src/ship.h +++ b/src/ship.h @@ -20,7 +20,7 @@ void GetShipSpriteSize(EngineID engine, uint &width, uint &height); * All ships have this type. */ struct Ship: public SpecializedVehicle<Ship, VEH_SHIP> { - TrackBitsByte state; + TrackBitsByte state; ///< The "track" the ship is following. /** We don't want GCC to zero our struct! It already is zeroed and has an index! */ Ship() : SpecializedVehicleBase() {} @@ -45,6 +45,10 @@ struct Ship: public SpecializedVehicle<Ship, VEH_SHIP> { void UpdateCache(); }; +/** + * Iterate over all ships. + * @param var The variable used for iteration. + */ #define FOR_ALL_SHIPS(var) FOR_ALL_VEHICLES_OF_TYPE(Ship, var) #endif /* SHIP_H */ |