#include <VM.hh>
void VM::exec |
( |
Script & |
script | ) |
|
Executes a script
- Parameters
-
script | The script to execute |
Counts how many key points would be visited if the script was executed
The function simulates the execution of a script, and counts how many key points the script flow would visit. Key points represents the differents branches that the script can take. There is a key point for the success and one for the failure of the if1 (0x06) and the if2 (0x07) commands.
- Parameters
-
script | The script to execute |
- Returns
- The number of visited key points
uint32_t VM::getBank |
( |
uint8_t |
bank | ) |
const |
|
inline |
bool VM::getFlag |
( |
uint16_t |
flag | ) |
const |
|
inline |
uint16_t VM::getVar |
( |
uint16_t |
var | ) |
const |
|
inline |
void VM::setBank |
( |
uint8_t |
bank, |
|
|
uint32_t |
val |
|
) |
| |
|
inline |
void VM::setFlag |
( |
uint16_t |
flag, |
|
|
bool |
val |
|
) |
| |
|
inline |
void VM::setVar |
( |
uint16_t |
var, |
|
|
uint16_t |
val |
|
) |
| |
|
inline |
The documentation for this class was generated from the following files:
- /home/ensis/Projets/Perso/pokebot/include/VM.hh
- /home/ensis/Projets/Perso/pokebot/src/PokeScript/Executers.cpp
- /home/ensis/Projets/Perso/pokebot/src/PokeScript/VM.cpp