diff options
author | alberth <alberth@openttd.org> | 2012-11-10 20:46:39 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2012-11-10 20:46:39 +0000 |
commit | 33ff55a8f1287643986621e7130e8acddf42b221 (patch) | |
tree | 04af02a5ad82e979ec200570b38628dccc860cdf /src/newgrf_industries.cpp | |
parent | 4c9bea2a714da675217522c39113ba2c2c5bbee4 (diff) | |
download | openttd-33ff55a8f1287643986621e7130e8acddf42b221.tar.xz |
(svn r24693) -Doc: Add some doxymentation into the newgrf code.
Diffstat (limited to 'src/newgrf_industries.cpp')
-rw-r--r-- | src/newgrf_industries.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/newgrf_industries.cpp b/src/newgrf_industries.cpp index 84f589d86..b1cb80be3 100644 --- a/src/newgrf_industries.cpp +++ b/src/newgrf_industries.cpp @@ -404,6 +404,16 @@ static const GRFFile *GetGrffile(IndustryType type) return (indspec != NULL) ? indspec->grf_prop.grffile : NULL; } +/** + * Constructor of the industries resolver. + * @param tile %Tile owned by the industry. + * @param industry %Industry being resolved. + * @param type Type of the industry. + * @param random_bits Random bits of the new industry. + * @param callback Callback ID. + * @param callback_param1 First parameter (var 10) of the callback. + * @param callback_param2 Second parameter (var 18) of the callback. + */ IndustriesResolverObject::IndustriesResolverObject(TileIndex tile, Industry *indus, IndustryType type, uint32 random_bits, CallbackID callback, uint32 callback_param1, uint32 callback_param2) : ResolverObject(GetGrffile(type), callback, callback_param1, callback_param2), @@ -436,6 +446,14 @@ TownScopeResolver *IndustriesResolverObject::GetTown() return this->town_scope; } +/** + * Scope resolver for industries. + * @param ro Surrounding resolver. + * @param tile %Tile owned by the industry. + * @param industry %Industry being resolved. + * @param type Type of the industry. + * @param random_bits Random bits of the new industry. + */ IndustriesScopeResolver::IndustriesScopeResolver(ResolverObject *ro, TileIndex tile, Industry *industry, IndustryType type, uint32 random_bits) : ScopeResolver(ro) { |