diff options
Diffstat (limited to 'src/newgrf_object.h')
-rw-r--r-- | src/newgrf_object.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/newgrf_object.h b/src/newgrf_object.h index da2874c3c..5aaf5c286 100644 --- a/src/newgrf_object.h +++ b/src/newgrf_object.h @@ -70,6 +70,12 @@ 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. */ |