diff options
author | rubidium <rubidium@openttd.org> | 2011-01-22 09:53:15 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-01-22 09:53:15 +0000 |
commit | eb299736c1bcb277da1862afe95c11cb897effcf (patch) | |
tree | 3bb6bff78f066da770a367e078c569dbe8ce319a /src/newgrf_object.h | |
parent | 0cdb1c78cdbfce4d426441c21ef7066f1cfecf6f (diff) | |
download | openttd-eb299736c1bcb277da1862afe95c11cb897effcf.tar.xz |
(svn r21886) -Codechange: move documentation towards the code to make it more likely to be updated [n].
Diffstat (limited to 'src/newgrf_object.h')
-rw-r--r-- | src/newgrf_object.h | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/src/newgrf_object.h b/src/newgrf_object.h index 416b87a21..081a19781 100644 --- a/src/newgrf_object.h +++ b/src/newgrf_object.h @@ -73,12 +73,6 @@ struct ObjectSpec { bool enabled; ///< Is this spec enabled? /** - * Check whether the object is available at this time. - * @return true if it is available. - */ - bool IsAvailable() const; - - /** * Get the cost for building a structure of this type. * @return The cost for building. */ @@ -90,24 +84,10 @@ struct ObjectSpec { */ Money GetClearCost() const { return (_price[PR_CLEAR_OBJECT] * this->clear_cost_multiplier); } - /** - * Gets the index of this spec. - * @return The index. - */ + bool IsAvailable() const; uint Index() const; - /** - * Get the specification associated with a specific ObjectType. - * @param index The object type to fetch. - * @return The specification. - */ static const ObjectSpec *Get(ObjectType index); - - /** - * Get the specification associated with a tile. - * @param tile The tile to fetch the data for. - * @return The specification. - */ static const ObjectSpec *GetByTile(TileIndex tile); }; |