![]() |
V-Gears 0
Free Final Fantasy VII engine.
|
Represents the FF7 world map engine. More...
#include <WorldEngine.h>
Classes | |
class | BankValue |
A bank value. More... | |
Public Member Functions | |
WorldEngine (int script_number) | |
Constructor. More... | |
std::unique_ptr< Disassembler > | GetDisassembler (InstVec &insts) override |
Retrieves the disassembler. More... | |
std::unique_ptr< CodeGenerator > | GetCodeGenerator (const InstVec &insts, std::ostream &output) override |
Retrieves the code generator. More... | |
virtual void | PostCFG (InstVec &insts, Graph graph) override |
Post-processing actions to apply to the scripts. More... | |
virtual void | GetVariants (std::vector< std::string > &variants) const override |
Retrieves the variants. More... | |
virtual bool | UsePureGrouping () const override |
Indicates if instructions are purely grouped. More... | |
![]() | |
virtual | ~Engine ()=default |
virtual std::unique_ptr< Disassembler > | GetDisassembler (InstVec &insts, const std::vector< unsigned char > &c) |
virtual std::unique_ptr< Disassembler > | GetDisassembler (InstVec &insts)=0 |
Retrieve the disassembler for the engine. More... | |
virtual std::unique_ptr< CodeGenerator > | GetCodeGenerator (const InstVec &insts, std::ostream &output)=0 |
Retrieve the code generator for the engine. More... | |
virtual void | PostCFG (InstVec &insts, Graph graph) |
Post-processing step after CFG analysis. More... | |
virtual bool | SupportsCodeFlow () const |
Whether or not code flow analysis is supported for this engine. More... | |
virtual bool | SupportsCodeGen () const |
Whether or not code generation is supported for this engine. More... | |
virtual void | GetVariants (std::vector< std::string > &variants) const |
Retrieves the names of all variants supported for this engine. More... | |
virtual bool | UsePureGrouping () const |
Whether or not to use "pure" grouping during code flow analysis. More... | |
Private Attributes | |
int | script_number_ |
The script number. More... | |
std::vector< std::string > | text_strings_ |
Container for strings from the TEXT chunk. More... | |
Additional Inherited Members | |
![]() | |
FuncMap | functions |
Map to functions in the current script, indexed by start address. More... | |
![]() | |
std::string | variant_ |
Engine variant to use for the script. More... | |
Represents the FF7 world map engine.
WorldEngine::WorldEngine | ( | int | script_number | ) |
Constructor.
[in] | script_number | The script number. |
|
overridevirtual |
Retrieves the code generator.
[in] | insts | List of instructions. Unused. |
[in] | output | Pointer to the output (file, stream...). |
Implements Engine.
|
overridevirtual |
Retrieves the disassembler.
[in] | insts | List of instructions. |
Implements Engine.
|
overridevirtual |
Post-processing actions to apply to the scripts.
It actually does nothing. CFG stands for control flow group.
[in] | insts | Instruction list. |
[in] | graph | Code graph. |
Reimplemented from Engine.
|
overridevirtual |
Indicates if instructions are purely grouped.
Reimplemented from Engine.
|
private |
The script number.
|
private |
Container for strings from the TEXT chunk.