summaryrefslogtreecommitdiff
path: root/src/newgrf_industrytiles.h
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2012-11-10 20:46:39 +0000
committeralberth <alberth@openttd.org>2012-11-10 20:46:39 +0000
commit33ff55a8f1287643986621e7130e8acddf42b221 (patch)
tree04af02a5ad82e979ec200570b38628dccc860cdf /src/newgrf_industrytiles.h
parent4c9bea2a714da675217522c39113ba2c2c5bbee4 (diff)
downloadopenttd-33ff55a8f1287643986621e7130e8acddf42b221.tar.xz
(svn r24693) -Doc: Add some doxymentation into the newgrf code.
Diffstat (limited to 'src/newgrf_industrytiles.h')
-rw-r--r--src/newgrf_industrytiles.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/newgrf_industrytiles.h b/src/newgrf_industrytiles.h
index dc8fb238f..f5b88db83 100644
--- a/src/newgrf_industrytiles.h
+++ b/src/newgrf_industrytiles.h
@@ -16,9 +16,10 @@
#include "newgrf_industries.h"
#include "core/random_func.hpp"
+/** Resolver for the industry tiles scope. */
struct IndustryTileScopeResolver : public ScopeResolver {
- Industry *industry;
- TileIndex tile;
+ Industry *industry; ///< Industry owning the tiles.
+ TileIndex tile; ///< %Tile being resolved.
IndustryTileScopeResolver(ResolverObject *ro, Industry *industry, TileIndex tile);
@@ -28,9 +29,10 @@ struct IndustryTileScopeResolver : public ScopeResolver {
/* virtual */ void SetTriggers(int triggers) const;
};
+/** Resolver for industry tiles. */
struct IndustryTileResolverObject : public ResolverObject {
- IndustryTileScopeResolver indtile_scope;
- IndustriesScopeResolver ind_scope;
+ IndustryTileScopeResolver indtile_scope; ///< Scope resolver for the industry tile.
+ IndustriesScopeResolver ind_scope; ///< Scope resolver for the industry owning the tile.
IndustryTileResolverObject(IndustryGfx gfx, TileIndex tile, Industry *indus,
CallbackID callback = CBID_NO_CALLBACK, uint32 callback_param1 = 0, uint32 callback_param2 = 0);