summaryrefslogtreecommitdiff
path: root/src/industry.h
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2007-03-14 02:52:50 +0000
committerbelugas <belugas@openttd.org>2007-03-14 02:52:50 +0000
commit65ce0e36dbada71cb8526eed7377d57eaf8086b6 (patch)
treee076782524d7c0d3f0802c5e32f57a2dd288a8bc /src/industry.h
parent4177215b4111dedba3f4c7ce354a0b19d7edbf28 (diff)
downloadopenttd-65ce0e36dbada71cb8526eed7377d57eaf8086b6.tar.xz
(svn r9162) -Codechange: Cleanup of industry_cmd (Step-8). Gather tile animation data into IndustryTileSpec array
Added a few documentation on remaining animation arrays (mostly ToyLand ones)
Diffstat (limited to 'src/industry.h')
-rw-r--r--src/industry.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/industry.h b/src/industry.h
index 25246f69d..3c98046c0 100644
--- a/src/industry.h
+++ b/src/industry.h
@@ -12,6 +12,7 @@ typedef uint8 IndustryType;
enum {
INVALID_INDUSTRY = 0xFFFF,
+ INDUTILE_NOAMIN = 0xFF, ///< flag to mark industry tiles as having no animation
};
enum IndustryLifeType {
@@ -83,6 +84,10 @@ struct IndustrySpec {
struct IndustryTileSpec {
CargoID accepts_cargo[3]; ///< Cargo accepted by this tile
Slope slopes_refused; ///< slope pattern on which this tile cannot be built
+ byte anim_production; ///< Animation frame to start when goods are produced
+ byte anim_next; ///< Next frame in an animation
+ bool anim_state; ///< When true, the tile has to be drawn using the animation
+ ///< state instead of the construction state
};
const IndustrySpec *GetIndustrySpec(IndustryType thistype); ///< Array of industries default data