1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-18 13:12:50 +00:00
OpenMW/components/interpreter/opcodes.hpp

29 lines
467 B
C++
Raw Normal View History

2010-06-28 17:20:45 +00:00
#ifndef INTERPRETER_OPCODES_H_INCLUDED
#define INTERPRETER_OPCODES_H_INCLUDED
namespace Interpreter
{
class Runtime;
/// opcode for 0 arguments
class Opcode0
{
2022-09-22 18:26:05 +00:00
public:
virtual void execute(Runtime& runtime) = 0;
virtual ~Opcode0() {}
2010-06-28 17:20:45 +00:00
};
/// opcode for 1 argument
class Opcode1
{
2022-09-22 18:26:05 +00:00
public:
virtual void execute(Runtime& runtime, unsigned int arg0) = 0;
virtual ~Opcode1() {}
2010-06-28 17:20:45 +00:00
};
}
#endif