diff options
author | frosch <frosch@openttd.org> | 2012-05-26 14:16:38 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2012-05-26 14:16:38 +0000 |
commit | 8dc553a039ae1b706bd8fd6086b0eeb966695054 (patch) | |
tree | f0f93ed762aea9df072fbcee68fb6700c5a43c09 /src/script/api/script_event_types.hpp | |
parent | 66a37e28a69411f4666158cce03c6fd29e9a15e1 (diff) | |
download | openttd-8dc553a039ae1b706bd8fd6086b0eeb966695054.tar.xz |
(svn r24290) -Add: [Script] ScriptEventExclusiveTransportRights.
Diffstat (limited to 'src/script/api/script_event_types.hpp')
-rw-r--r-- | src/script/api/script_event_types.hpp | 22 |
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 e416c6f04..6a4786f16 100644 --- a/src/script/api/script_event_types.hpp +++ b/src/script/api/script_event_types.hpp @@ -1021,6 +1021,28 @@ private: TownID town; ///< The town involved into the event. }; +/** + * Event Exclusive Transport Rights, indicating that company bought + * exclusive transport rights in a town. + * @api ai game + */ +class ScriptEventExclusiveTransportRights : public ScriptEventCompanyTown { +public: + /** + * @param company The company. + * @param town The town. + */ + ScriptEventExclusiveTransportRights(ScriptCompany::CompanyID company, TownID town) : + ScriptEventCompanyTown(ET_EXCLUSIVE_TRANSPORT_RIGHTS, company, town) + {} + + /** + * Convert an ScriptEvent to the real instance. + * @param instance The instance to convert. + * @return The converted instance. + */ + static ScriptEventExclusiveTransportRights *Convert(ScriptEventCompanyTown *instance) { return (ScriptEventExclusiveTransportRights *)instance; } +}; #endif /* SCRIPT_EVENT_TYPES_HPP */ |