OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
opcodes.hpp
Go to the documentation of this file.
1 #ifndef INTERPRETER_OPCODES_H_INCLUDED
2 #define INTERPRETER_OPCODES_H_INCLUDED
3 
4 namespace Interpreter
5 {
6  class Runtime;
7 
9  class Opcode0
10  {
11  public:
12 
13  virtual void execute (Runtime& runtime) = 0;
14 
15  virtual ~Opcode0() {}
16  };
17 
19  class Opcode1
20  {
21  public:
22 
23  virtual void execute (Runtime& runtime, unsigned int arg0) = 0;
24 
25  virtual ~Opcode1() {}
26  };
27 
29  class Opcode2
30  {
31  public:
32 
33  virtual void execute (Runtime& runtime, unsigned int arg1, unsigned int arg2) = 0;
34 
35  virtual ~Opcode2() {}
36  };
37 
38 }
39 
40 #endif
Runtime data and engine interface.
Definition: runtime.hpp:15
opcode for 0 arguments
Definition: opcodes.hpp:9
virtual ~Opcode0()
Definition: opcodes.hpp:15
virtual void execute(Runtime &runtime, unsigned int arg0)=0
virtual ~Opcode2()
Definition: opcodes.hpp:35
opcode for 2 arguments
Definition: opcodes.hpp:29
virtual void execute(Runtime &runtime, unsigned int arg1, unsigned int arg2)=0
virtual void execute(Runtime &runtime)=0
opcode for 1 argument
Definition: opcodes.hpp:19
virtual ~Opcode1()
Definition: opcodes.hpp:25