OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Namespaces | Functions
generator.cpp File Reference
#include "generator.hpp"
#include <cassert>
#include <algorithm>
#include <iterator>
#include <stdexcept>
#include "literals.hpp"
Include dependency graph for generator.cpp:

Namespaces

 anonymous_namespace{generator.cpp}
 
 Compiler
 script compiler
 
 Compiler::Generator
 

Functions

void anonymous_namespace{generator.cpp}::opPushInt (Compiler::Generator::CodeContainer &code, int value)
 
void anonymous_namespace{generator.cpp}::opFetchIntLiteral (Compiler::Generator::CodeContainer &code)
 
void anonymous_namespace{generator.cpp}::opFetchFloatLiteral (Compiler::Generator::CodeContainer &code)
 
void anonymous_namespace{generator.cpp}::opIntToFloat (Compiler::Generator::CodeContainer &code)
 
void anonymous_namespace{generator.cpp}::opFloatToInt (Compiler::Generator::CodeContainer &code)
 
void anonymous_namespace{generator.cpp}::opStoreLocalShort (Compiler::Generator::CodeContainer &code)
 
void anonymous_namespace{generator.cpp}::opStoreLocalLong (Compiler::Generator::CodeContainer &code)
 
void anonymous_namespace{generator.cpp}::opStoreLocalFloat (Compiler::Generator::CodeContainer &code)
 
void anonymous_namespace{generator.cpp}::opNegateInt (Compiler::Generator::CodeContainer &code)
 
void anonymous_namespace{generator.cpp}::opNegateFloat (Compiler::Generator::CodeContainer &code)
 
void anonymous_namespace{generator.cpp}::opAddInt (Compiler::Generator::CodeContainer &code)
 
void anonymous_namespace{generator.cpp}::opAddFloat (Compiler::Generator::CodeContainer &code)
 
void anonymous_namespace{generator.cpp}::opSubInt (Compiler::Generator::CodeContainer &code)
 
void anonymous_namespace{generator.cpp}::opSubFloat (Compiler::Generator::CodeContainer &code)
 
void anonymous_namespace{generator.cpp}::opMulInt (Compiler::Generator::CodeContainer &code)
 
void anonymous_namespace{generator.cpp}::opMulFloat (Compiler::Generator::CodeContainer &code)
 
void anonymous_namespace{generator.cpp}::opDivInt (Compiler::Generator::CodeContainer &code)
 
void anonymous_namespace{generator.cpp}::opDivFloat (Compiler::Generator::CodeContainer &code)
 
void anonymous_namespace{generator.cpp}::opIntToFloat1 (Compiler::Generator::CodeContainer &code)
 
void anonymous_namespace{generator.cpp}::opSquareRoot (Compiler::Generator::CodeContainer &code)
 
void anonymous_namespace{generator.cpp}::opReturn (Compiler::Generator::CodeContainer &code)
 
void anonymous_namespace{generator.cpp}::opMessageBox (Compiler::Generator::CodeContainer &code, int buttons)
 
void anonymous_namespace{generator.cpp}::opReport (Compiler::Generator::CodeContainer &code)
 
void anonymous_namespace{generator.cpp}::opFetchLocalShort (Compiler::Generator::CodeContainer &code)
 
void anonymous_namespace{generator.cpp}::opFetchLocalLong (Compiler::Generator::CodeContainer &code)
 
void anonymous_namespace{generator.cpp}::opFetchLocalFloat (Compiler::Generator::CodeContainer &code)
 
void anonymous_namespace{generator.cpp}::opJumpForward (Compiler::Generator::CodeContainer &code, int offset)
 
void anonymous_namespace{generator.cpp}::opJumpBackward (Compiler::Generator::CodeContainer &code, int offset)
 
void anonymous_namespace{generator.cpp}::opSkipOnNonZero (Compiler::Generator::CodeContainer &code)
 
void anonymous_namespace{generator.cpp}::opEqualInt (Compiler::Generator::CodeContainer &code)
 
void anonymous_namespace{generator.cpp}::opNonEqualInt (Compiler::Generator::CodeContainer &code)
 
void anonymous_namespace{generator.cpp}::opLessThanInt (Compiler::Generator::CodeContainer &code)
 
void anonymous_namespace{generator.cpp}::opLessOrEqualInt (Compiler::Generator::CodeContainer &code)
 
void anonymous_namespace{generator.cpp}::opGreaterThanInt (Compiler::Generator::CodeContainer &code)
 
void anonymous_namespace{generator.cpp}::opGreaterOrEqualInt (Compiler::Generator::CodeContainer &code)
 
void anonymous_namespace{generator.cpp}::opEqualFloat (Compiler::Generator::CodeContainer &code)
 
void anonymous_namespace{generator.cpp}::opNonEqualFloat (Compiler::Generator::CodeContainer &code)
 
void anonymous_namespace{generator.cpp}::opLessThanFloat (Compiler::Generator::CodeContainer &code)
 
void anonymous_namespace{generator.cpp}::opLessOrEqualFloat (Compiler::Generator::CodeContainer &code)
 
void anonymous_namespace{generator.cpp}::opGreaterThanFloat (Compiler::Generator::CodeContainer &code)
 
void anonymous_namespace{generator.cpp}::opGreaterOrEqualFloat (Compiler::Generator::CodeContainer &code)
 
void anonymous_namespace{generator.cpp}::opMenuMode (Compiler::Generator::CodeContainer &code)
 
void anonymous_namespace{generator.cpp}::opStoreGlobalShort (Compiler::Generator::CodeContainer &code)
 
void anonymous_namespace{generator.cpp}::opStoreGlobalLong (Compiler::Generator::CodeContainer &code)
 
void anonymous_namespace{generator.cpp}::opStoreGlobalFloat (Compiler::Generator::CodeContainer &code)
 
void anonymous_namespace{generator.cpp}::opFetchGlobalShort (Compiler::Generator::CodeContainer &code)
 
void anonymous_namespace{generator.cpp}::opFetchGlobalLong (Compiler::Generator::CodeContainer &code)
 
void anonymous_namespace{generator.cpp}::opFetchGlobalFloat (Compiler::Generator::CodeContainer &code)
 
void anonymous_namespace{generator.cpp}::opStoreMemberShort (Compiler::Generator::CodeContainer &code, bool global)
 
void anonymous_namespace{generator.cpp}::opStoreMemberLong (Compiler::Generator::CodeContainer &code, bool global)
 
void anonymous_namespace{generator.cpp}::opStoreMemberFloat (Compiler::Generator::CodeContainer &code, bool global)
 
void anonymous_namespace{generator.cpp}::opFetchMemberShort (Compiler::Generator::CodeContainer &code, bool global)
 
void anonymous_namespace{generator.cpp}::opFetchMemberLong (Compiler::Generator::CodeContainer &code, bool global)
 
void anonymous_namespace{generator.cpp}::opFetchMemberFloat (Compiler::Generator::CodeContainer &code, bool global)
 
void anonymous_namespace{generator.cpp}::opRandom (Compiler::Generator::CodeContainer &code)
 
void anonymous_namespace{generator.cpp}::opScriptRunning (Compiler::Generator::CodeContainer &code)
 
void anonymous_namespace{generator.cpp}::opStartScript (Compiler::Generator::CodeContainer &code, bool targeted)
 
void anonymous_namespace{generator.cpp}::opStopScript (Compiler::Generator::CodeContainer &code)
 
void anonymous_namespace{generator.cpp}::opGetDistance (Compiler::Generator::CodeContainer &code)
 
void anonymous_namespace{generator.cpp}::opGetSecondsPassed (Compiler::Generator::CodeContainer &code)
 
void anonymous_namespace{generator.cpp}::opEnable (Compiler::Generator::CodeContainer &code)
 
void anonymous_namespace{generator.cpp}::opDisable (Compiler::Generator::CodeContainer &code)
 
void anonymous_namespace{generator.cpp}::opGetDisabled (Compiler::Generator::CodeContainer &code)
 
void anonymous_namespace{generator.cpp}::opEnableExplicit (Compiler::Generator::CodeContainer &code)
 
void anonymous_namespace{generator.cpp}::opDisableExplicit (Compiler::Generator::CodeContainer &code)
 
void anonymous_namespace{generator.cpp}::opGetDisabledExplicit (Compiler::Generator::CodeContainer &code)
 
void anonymous_namespace{generator.cpp}::opGetDistanceExplicit (Compiler::Generator::CodeContainer &code)
 
void Compiler::Generator::pushInt (CodeContainer &code, Literals &literals, int value)
 
void Compiler::Generator::pushFloat (CodeContainer &code, Literals &literals, float value)
 
void Compiler::Generator::pushString (CodeContainer &code, Literals &literals, const std::string &value)
 
void Compiler::Generator::assignToLocal (CodeContainer &code, char localType, int localIndex, const CodeContainer &value, char valueType)
 
void Compiler::Generator::negate (CodeContainer &code, char valueType)
 
void Compiler::Generator::add (CodeContainer &code, char valueType1, char valueType2)
 
void Compiler::Generator::sub (CodeContainer &code, char valueType1, char valueType2)
 
void Compiler::Generator::mul (CodeContainer &code, char valueType1, char valueType2)
 
void Compiler::Generator::div (CodeContainer &code, char valueType1, char valueType2)
 
void Compiler::Generator::convert (CodeContainer &code, char fromType, char toType)
 
void Compiler::Generator::squareRoot (CodeContainer &code)
 
void Compiler::Generator::exit (CodeContainer &code)
 
void Compiler::Generator::message (CodeContainer &code, Literals &literals, const std::string &message, int buttons)
 
void Compiler::Generator::report (CodeContainer &code, Literals &literals, const std::string &message)
 
void Compiler::Generator::fetchLocal (CodeContainer &code, char localType, int localIndex)
 
void Compiler::Generator::jump (CodeContainer &code, int offset)
 
void Compiler::Generator::jumpOnZero (CodeContainer &code, int offset)
 
void Compiler::Generator::compare (CodeContainer &code, char op, char valueType1, char valueType2)
 
void Compiler::Generator::menuMode (CodeContainer &code)
 
void Compiler::Generator::assignToGlobal (CodeContainer &code, Literals &literals, char localType, const std::string &name, const CodeContainer &value, char valueType)
 
void Compiler::Generator::fetchGlobal (CodeContainer &code, Literals &literals, char localType, const std::string &name)
 
void Compiler::Generator::assignToMember (CodeContainer &code, Literals &literals, char localType, const std::string &name, const std::string &id, const CodeContainer &value, char valueType, bool global)
 
void Compiler::Generator::fetchMember (CodeContainer &code, Literals &literals, char localType, const std::string &name, const std::string &id, bool global)
 
void Compiler::Generator::random (CodeContainer &code)
 
void Compiler::Generator::scriptRunning (CodeContainer &code)
 
void Compiler::Generator::startScript (CodeContainer &code, Literals &literals, const std::string &id)
 
void Compiler::Generator::stopScript (CodeContainer &code)
 
void Compiler::Generator::getDistance (CodeContainer &code, Literals &literals, const std::string &id)
 
void Compiler::Generator::getSecondsPassed (CodeContainer &code)
 
void Compiler::Generator::getDisabled (CodeContainer &code, Literals &literals, const std::string &id)
 
void Compiler::Generator::enable (CodeContainer &code, Literals &literals, const std::string &id)
 
void Compiler::Generator::disable (CodeContainer &code, Literals &literals, const std::string &id)