summaryrefslogtreecommitdiff
path: root/src/script/api/script_event_types.hpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2012-05-26 14:16:45 +0000
committerfrosch <frosch@openttd.org>2012-05-26 14:16:45 +0000
commit95d3d6fdef7feed7eb9f543751424797d78346d2 (patch)
treea7386a60208c0a8f8ff422deb3953abc454e670a /src/script/api/script_event_types.hpp
parent8dc553a039ae1b706bd8fd6086b0eeb966695054 (diff)
downloadopenttd-95d3d6fdef7feed7eb9f543751424797d78346d2.tar.xz
(svn r24291) -Add: [Script] ScriptEventRoadReconstruction.
Diffstat (limited to 'src/script/api/script_event_types.hpp')
-rw-r--r--src/script/api/script_event_types.hpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/script/api/script_event_types.hpp b/src/script/api/script_event_types.hpp
index 6a4786f16..f7b58c5ce 100644
--- a/src/script/api/script_event_types.hpp
+++ b/src/script/api/script_event_types.hpp
@@ -1044,5 +1044,27 @@ public:
static ScriptEventExclusiveTransportRights *Convert(ScriptEventCompanyTown *instance) { return (ScriptEventExclusiveTransportRights *)instance; }
};
+/**
+ * Event Road Reconstruction, indicating that company triggered
+ * road reconstructions in a town.
+ * @api ai game
+ */
+class ScriptEventRoadReconstruction : public ScriptEventCompanyTown {
+public:
+ /**
+ * @param company The company.
+ * @param town The town.
+ */
+ ScriptEventRoadReconstruction(ScriptCompany::CompanyID company, TownID town) :
+ ScriptEventCompanyTown(ET_ROAD_RECONSTRUCTION, company, town)
+ {}
+
+ /**
+ * Convert an ScriptEvent to the real instance.
+ * @param instance The instance to convert.
+ * @return The converted instance.
+ */
+ static ScriptEventRoadReconstruction *Convert(ScriptEventCompanyTown *instance) { return (ScriptEventRoadReconstruction *)instance; }
+};
#endif /* SCRIPT_EVENT_TYPES_HPP */