25 #ifndef AURORA_ACTIONSCRIPT_FUNCTION_H 26 #define AURORA_ACTIONSCRIPT_FUNCTION_H 30 #include <boost/function.hpp> 37 namespace ActionScript {
45 Function(
bool preloadThisFlag,
bool preloadSuperFlag,
bool preloadRootFlag);
63 std::vector<Common::UString> constantPool,
65 bool preloadSuperFlag,
79 NativeFunction(boost::function<
Variable(
AVM &)>
function,
bool preloadThisFlag,
bool preloadSuperFlag,
bool preloadRootFlag);
98 #endif // AURORA_ACTIONSCRIPT_FUNCTION_H
A variable used in the execution context.
Variable operator()(AVM &avm)
Buffer for handling actionscript byte code.
NativeFunction(boost::function< Variable(AVM &)> function, bool preloadThisFlag, bool preloadSuperFlag, bool preloadRootFlag)
Variable operator()(AVM &avm)
bool getPreloadThisFlag()
Variable operator()(AVM &avm)
ScriptedFunction(Common::SeekableReadStream *as, std::vector< Common::UString > constantPool, bool preloadThisFlag, bool preloadSuperFlag, bool preloadRootFlag)
Function(bool preloadThisFlag, bool preloadSuperFlag, bool preloadRootFlag)
boost::shared_ptr< Function > FunctionPtr
bool getPreloadRootFlag()
An action script variable.
virtual Variable operator()(AVM &avm)=0
boost::function< Variable(AVM &)> _function
Common::SeekableReadStream * _stream
Interface for a seekable & readable data stream.
bool getPreloadSuperFlag()
The Action script virtual machine (AVM).