168 const char* _typeName{
nullptr};
172 ScriptObject* _parent{
nullptr};
#define SF_DECL_IFACE(InterfaceType, ParamType, FuncName)
Declares a public static function in the class where it is used. Where: InterfaceType: Global typenam...
Definition TClassRegistration.h:71
virtual const IdInfo * getInfo(const std::string &name) const =0
Must be overridden for member namespace.
virtual void destroyObject(bool &should_delete)=0
Asks if the object should be deleted after having made this call.
ScriptObject * castToObject(const Value &value)
Casts a sf::Value::vitCustom typed sf::Value to a ScriptObject typed pointer.
void makeParent(ScriptObject *so)
Makes this object the owner of the other object.
ssize_t ip_type
Instruction pointer type.
Definition ScriptObject.h:37
ScriptObject(const char *type_name, ScriptObject *parent=nullptr)
virtual bool getSetValue(const IdInfo *info, Value *value, Value::vector_type *params, bool flag_set)=0
Gets or sets the passed data member. Must be overridden in derived class.
void setParent(ScriptObject *parent)
Sets the owner to the pass script object.
friend class ScriptInterpreter
Definition ScriptObject.h:174
EIdentifier
Keyword identifiers.
Definition ScriptObject.h:43
@ idConstant
Definition ScriptObject.h:47
@ idTypedef
Definition ScriptObject.h:53
@ idFunction
Definition ScriptObject.h:51
@ idVariable
Definition ScriptObject.h:49
@ idKeyword
Definition ScriptObject.h:55
@ idUnknown
Definition ScriptObject.h:45
std::string::size_type pos_type
Source position type.
Definition ScriptObject.h:33
const ScriptObject * getParent() const
Gets the script object owner.
virtual std::string getStatusText()
Gets the status text of this object for debugging purposes.
static const IdInfo * getInfoUnknown()
Returns the static Info structure for unknowns.
int getRefCount() const
Gets the reference count.
virtual ~ScriptObject()=default
Virtual destructor which can be overridden to clean up objects.
ScriptObject * getParent()
Gets the script object owner.
std::string getTypeName() const
Returns the type name Set at the constructor.
Value container class able to performing arithmetic functions.
Definition Value.h:19
TVector< Value > vector_type
Definition Value.h:697
#define _MISC_CLASS
Definition misc/global.h:40
Definition Application.h:10
Used to create static lookup lists.
Definition ScriptObject.h:62
const char * _name
Name of the entry.
Definition ScriptObject.h:74
void * _data
Pointer referring to info object. If nullptr it is a static entry.
Definition ScriptObject.h:83
int _paramCount
In case of a function the amount of parameters where std::numeric_limits<int>::max() is infinite -2 i...
Definition ScriptObject.h:79
int _index
Index for decoding. Could be regarded as function or variable address.
Definition ScriptObject.h:66
EIdentifier _id
Function of the entry.
Definition ScriptObject.h:70
Type to pass to registered classes.
Definition ScriptObject.h:20
Parameters(Value::vector_type *arguments, ScriptObject *parent=nullptr)
Definition ScriptObject.h:21
ScriptObject * _parent
Definition ScriptObject.h:26
Value::vector_type * _arguments
Definition ScriptObject.h:27