|
|
|
@ -18,21 +18,23 @@ namespace Interpreter
|
|
|
|
|
|
|
|
|
|
virtual float getLocalFloat (int index) const = 0;
|
|
|
|
|
|
|
|
|
|
virtual void setLocalShort (int index, int value) = 0;
|
|
|
|
|
virtual void setLocalShort (int index, int value) = 0;
|
|
|
|
|
|
|
|
|
|
virtual void setLocalLong (int index, int value) = 0;
|
|
|
|
|
virtual void setLocalLong (int index, int value) = 0;
|
|
|
|
|
|
|
|
|
|
virtual void setLocalFloat (int index, float value) = 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
virtual void messageBox (const std::string& message,
|
|
|
|
|
const std::vector<std::string>& buttons) = 0;
|
|
|
|
|
|
|
|
|
|
const std::vector<std::string>& buttons) = 0;
|
|
|
|
|
|
|
|
|
|
void messageBox (const std::string& message)
|
|
|
|
|
{
|
|
|
|
|
std::vector<std::string> empty;
|
|
|
|
|
messageBox (message, empty);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
virtual void report (const std::string& message) = 0;
|
|
|
|
|
|
|
|
|
|
virtual bool menuMode() = 0;
|
|
|
|
|
|
|
|
|
|
virtual int getGlobalShort (const std::string& name) const = 0;
|
|
|
|
@ -41,31 +43,29 @@ namespace Interpreter
|
|
|
|
|
|
|
|
|
|
virtual float getGlobalFloat (const std::string& name) const = 0;
|
|
|
|
|
|
|
|
|
|
virtual void setGlobalShort (const std::string& name, int value) = 0;
|
|
|
|
|
virtual void setGlobalShort (const std::string& name, int value) = 0;
|
|
|
|
|
|
|
|
|
|
virtual void setGlobalLong (const std::string& name, int value) = 0;
|
|
|
|
|
virtual void setGlobalLong (const std::string& name, int value) = 0;
|
|
|
|
|
|
|
|
|
|
virtual void setGlobalFloat (const std::string& name, float value) = 0;
|
|
|
|
|
|
|
|
|
|
virtual void setGlobalFloat (const std::string& name, float value) = 0;
|
|
|
|
|
|
|
|
|
|
virtual bool isScriptRunning (const std::string& name) const = 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
virtual void startScript (const std::string& name) = 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
virtual void stopScript (const std::string& name) = 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
virtual float getDistance (const std::string& name, const std::string& id = "") const
|
|
|
|
|
= 0;
|
|
|
|
|
|
|
|
|
|
= 0;
|
|
|
|
|
|
|
|
|
|
virtual float getSecondsPassed() const = 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
virtual bool isDisabled (const std::string& id = "") const = 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
virtual void enable (const std::string& id = "") = 0;
|
|
|
|
|
|
|
|
|
|
virtual void disable (const std::string& id = "") = 0;
|
|
|
|
|
|
|
|
|
|
virtual void disable (const std::string& id = "") = 0;
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|