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
commitee945d23755b8101339f44a976964baf9eacf35c (patch)
treee076782524d7c0d3f0802c5e32f57a2dd288a8bc /src/industry.h
parentc4a191dd112ccb9a84497a4b865c2d7116fbf5dd (diff)
downloadopenttd-ee945d23755b8101339f44a976964baf9eacf35c.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