summaryrefslogtreecommitdiff
path: root/src/newgrf_object.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-08-28 17:36:28 +0000
committerrubidium <rubidium@openttd.org>2010-08-28 17:36:28 +0000
commit0a86eac2f1d8f646180cdd1d56f555e7956f7ebb (patch)
tree9785d9b5ee09781c32f3de801befeb6f498ed2eb /src/newgrf_object.h
parent6348aa796471fd7f88772b4db4b0005707a59db8 (diff)
downloadopenttd-0a86eac2f1d8f646180cdd1d56f555e7956f7ebb.tar.xz
(svn r20651) -Codechange: add a function to determine whether an object is available and use it
Diffstat (limited to 'src/newgrf_object.h')
-rw-r--r--src/newgrf_object.h6
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.
*/