forked from teamnwah/openmw-tes3coop
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
765 B
C++
41 lines
765 B
C++
15 years ago
|
#ifndef INTERPRETER_OPCODES_H_INCLUDED
|
||
|
#define INTERPRETER_OPCODES_H_INCLUDED
|
||
|
|
||
|
namespace Interpreter
|
||
|
{
|
||
|
class Runtime;
|
||
|
|
||
|
/// opcode for 0 arguments
|
||
|
class Opcode0
|
||
|
{
|
||
|
public:
|
||
|
|
||
|
virtual void execute (Runtime& runtime) = 0;
|
||
|
|
||
|
virtual ~Opcode0() {}
|
||
|
};
|
||
|
|
||
|
/// opcode for 1 argument
|
||
|
class Opcode1
|
||
|
{
|
||
|
public:
|
||
|
|
||
|
virtual void execute (Runtime& runtime, unsigned int arg0) = 0;
|
||
|
|
||
|
virtual ~Opcode0() {}
|
||
|
};
|
||
|
|
||
|
/// opcode for 2 arguments
|
||
|
class Opcode2
|
||
|
{
|
||
|
public:
|
||
|
|
||
|
virtual void execute (Runtime& runtime, unsigned int arg1, unsigned int arg2) = 0;
|
||
|
|
||
|
virtual ~Opcode0() {}
|
||
|
};
|
||
|
|
||
|
}
|
||
|
|
||
|
#endif
|