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_station.cpp | |
parent | 4c9bea2a714da675217522c39113ba2c2c5bbee4 (diff) | |
download | openttd-33ff55a8f1287643986621e7130e8acddf42b221.tar.xz |
(svn r24693) -Doc: Add some doxymentation into the newgrf code.
Diffstat (limited to 'src/newgrf_station.cpp')
-rw-r--r-- | src/newgrf_station.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/newgrf_station.cpp b/src/newgrf_station.cpp index 61f8bb5a3..4b5c5468a 100644 --- a/src/newgrf_station.cpp +++ b/src/newgrf_station.cpp @@ -523,6 +523,15 @@ uint32 Waypoint::GetNewGRFVariable(const ResolverObject *object, byte variable, return group->loading[0]; } +/** + * Resolver for stations. + * @param statspec Station (type) specification. + * @param st Instance of the station. + * @param tile %Tile of the station. + * @param callback Callback ID. + * @param callback_param1 First parameter (var 10) of the callback. + * @param callback_param2 Second parameter (var 18) of the callback. + */ StationResolverObject::StationResolverObject(const StationSpec *statspec, BaseStation *st, TileIndex tile, CallbackID callback, uint32 callback_param1, uint32 callback_param2) : ResolverObject((statspec != NULL ? statspec->grf_prop.grffile : NULL), callback, callback_param1, callback_param2), @@ -537,6 +546,13 @@ StationResolverObject::~StationResolverObject() delete this->town_scope; } +/** + * Constructor for station scopes. + * @param ro Surrounding resolver. + * @param statspec Station (type) specification. + * @param st Instance of the station. + * @param tile %Tile of the station. + */ StationScopeResolver::StationScopeResolver(ResolverObject *ro, const StationSpec *statspec, BaseStation *st, TileIndex tile) : ScopeResolver(ro) { |