2010-06-28 17:20:45 +00:00
|
|
|
#ifndef INTERPRETER_CONTEXT_H_INCLUDED
|
|
|
|
#define INTERPRETER_CONTEXT_H_INCLUDED
|
|
|
|
|
2010-07-02 16:08:00 +00:00
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
2010-06-28 17:20:45 +00:00
|
|
|
namespace Interpreter
|
|
|
|
{
|
|
|
|
class Context
|
|
|
|
{
|
2010-06-28 18:07:17 +00:00
|
|
|
public:
|
|
|
|
|
|
|
|
virtual ~Context() {}
|
|
|
|
|
|
|
|
virtual int getLocalShort (int index) const = 0;
|
|
|
|
|
|
|
|
virtual int getLocalLong (int index) const = 0;
|
|
|
|
|
|
|
|
virtual float getLocalFloat (int index) const = 0;
|
|
|
|
|
|
|
|
virtual void setLocalShort (int index, int value) = 0;
|
|
|
|
|
|
|
|
virtual void setLocalLong (int index, int value) = 0;
|
|
|
|
|
2010-06-30 10:04:26 +00:00
|
|
|
virtual void setLocalFloat (int index, float value) = 0;
|
|
|
|
|
|
|
|
virtual void messageBox (const std::string& message,
|
|
|
|
const std::vector<std::string>& buttons) = 0;
|
2010-06-28 17:20:45 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|