diff options
author | truebrain <truebrain@openttd.org> | 2011-11-29 23:15:35 +0000 |
---|---|---|
committer | truebrain <truebrain@openttd.org> | 2011-11-29 23:15:35 +0000 |
commit | 98103121d4f2ed1f1581919b7b1f343ccd410c12 (patch) | |
tree | 1e760dd6517a6b0f9fb669ec277139a8e3f9a4a3 /src/script/api/script_event.hpp | |
parent | afdb67a3534f85b4efbd3327ece8137211042d7b (diff) | |
download | openttd-98103121d4f2ed1f1581919b7b1f343ccd410c12.tar.xz |
(svn r23355) -Codechange: rename all AI* to Script* (Rubidium)
Diffstat (limited to 'src/script/api/script_event.hpp')
-rw-r--r-- | src/script/api/script_event.hpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/script/api/script_event.hpp b/src/script/api/script_event.hpp index 449ee0361..eb15ded2e 100644 --- a/src/script/api/script_event.hpp +++ b/src/script/api/script_event.hpp @@ -19,12 +19,12 @@ * You can lookup the type, and than convert it to the real event-class. * That way you can request more detailed information about the event. */ -class AIEvent : public AIObject { +class ScriptEvent : public ScriptObject { public: /** * The type of event. Needed to lookup the detailed class. */ - enum AIEventType { + enum ScriptEventType { AI_ET_INVALID = 0, AI_ET_TEST, AI_ET_SUBSIDY_OFFER, @@ -51,31 +51,31 @@ public: }; /** - * Constructor of AIEvent, to get the type of event. + * Constructor of ScriptEvent, to get the type of event. */ - AIEvent(AIEvent::AIEventType type) : + ScriptEvent(ScriptEvent::ScriptEventType type) : type(type) {} /** * Get the event-type. - * @return The @c AIEventType. + * @return The @c ScriptEventType. */ - AIEventType GetEventType() { return this->type; } + ScriptEventType GetEventType() { return this->type; } protected: /** * The type of this event. */ - AIEventType type; + ScriptEventType type; }; /** * Class that handles all event related functions. - * @note it is not needed to create an instance of AIEvent to access it, as + * @note it is not needed to create an instance of ScriptEvent to access it, as * all members are static, and all data is stored AI-wide. */ -class AIEventController : public AIObject { +class ScriptEventController : public ScriptObject { public: /** * Check if there is an event waiting. @@ -87,7 +87,7 @@ public: * Get the next event. * @return a class of the event-child issues. */ - static AIEvent *GetNextEvent(); + static ScriptEvent *GetNextEvent(); #ifndef EXPORT_SKIP /** @@ -95,7 +95,7 @@ public: * @param event The event to insert. * @note DO NOT CALL YOURSELF; leave it to the internal AI programming. */ - static void InsertEvent(AIEvent *event); + static void InsertEvent(ScriptEvent *event); /** * Free the event pointer. |