(svn r20651) -Codechange: add a function to determine whether an object is available and use it

This commit is contained in:
rubidium
2010-08-28 17:36:28 +00:00
parent 6348aa7964
commit 0a86eac2f1
3 changed files with 18 additions and 1 deletions

View File

@@ -69,6 +69,12 @@ struct ObjectSpec {
uint8 height; ///< The height of this structure, in heightlevels; max MAX_TILE_HEIGHT.
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.