mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-26 08:56:37 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			30 lines
		
	
	
	
		
			535 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
	
		
			535 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #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 ~Opcode1() {}
 | |
|     };
 | |
| 
 | |
| }
 | |
| 
 | |
| #endif
 |