forked from mirror/OpenTTD
(svn r20651) -Codechange: add a function to determine whether an object is available and use it
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user