cocos2d-x  3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
PUDoAffectorEventHandlerTranslator Class Reference

#include <CCPUDoAffectorEventHandlerTranslator.h>

Inheritance diagram for PUDoAffectorEventHandlerTranslator:
PUScriptTranslator

Public Member Functions

 PUDoAffectorEventHandlerTranslator ()
virtual ~PUDoAffectorEventHandlerTranslator ()
virtual bool translateChildProperty (PUScriptCompiler *compiler, PUAbstractNode *node)
 Only parses a certain child property. More...
 
local translateChildProperty ( local compiler, local node)
 Only parses a certain child property. More...
 
virtual bool translateChildObject (PUScriptCompiler *compiler, PUAbstractNode *node)
 Only parses a certain child objec. More...
 
var translateChildObject ( var compiler, var node)
 Only parses a certain child objec. More...
 
local translateChildObject ( local compiler, local node)
 Only parses a certain child objec. More...
 
- Public Member Functions inherited from PUScriptTranslator
 PUScriptTranslator ()
virtual ~PUScriptTranslator ()
virtual void translate (PUScriptCompiler *compiler, PUAbstractNode *node)
 ScriptTranslator More...
 
bool getVector2 (PUAbstractNodeList::const_iterator i, PUAbstractNodeList::const_iterator end, Vec2 *result, int maxEntries=2)
 Parse Vector2. More...
 
bool getVector3 (PUAbstractNodeList::const_iterator i, PUAbstractNodeList::const_iterator end, Vec3 *result, int maxEntries=3)
 Parse Vector3. More...
 
bool getVector4 (PUAbstractNodeList::const_iterator i, PUAbstractNodeList::const_iterator end, Vec4 *result, int maxEntries=4)
 Parse Vector4. More...
 
bool getQuaternion (PUAbstractNodeList::const_iterator i, PUAbstractNodeList::const_iterator end, Quaternion *result, int maxEntries=4)
 Parse Quaternion. More...
 
bool passValidateProperty (PUScriptCompiler *compiler, PUPropertyAbstractNode *prop, const std::string &token, ValidationType validationType)
 Validate a property. More...
 
bool passValidatePropertyNoValues (PUScriptCompiler *compiler, PUPropertyAbstractNode *prop, const std::string &token)
 Validate whether a property has values. More...
 
bool passValidatePropertyNumberOfValues (PUScriptCompiler *compiler, PUPropertyAbstractNode *prop, const std::string &token, unsigned short numberOfValues)
 Validate whether the number of values is correct. More...
 
bool passValidatePropertyNumberOfValuesRange (PUScriptCompiler *compiler, PUPropertyAbstractNode *prop, const std::string &token, unsigned short minNumberOfValues, unsigned short maxNumberOfValues)
 Validate whether the number of values is between a range. More...
 
bool passValidatePropertyValidReal (PUScriptCompiler *compiler, PUPropertyAbstractNode *prop)
 Validate whether the value is a correct Real. More...
 
bool passValidatePropertyValidInt (PUScriptCompiler *compiler, PUPropertyAbstractNode *prop)
 Validate whether the value is a correct int. More...
 
bool passValidatePropertyValidUint (PUScriptCompiler *compiler, PUPropertyAbstractNode *prop)
 Validate whether the value is a correct uint. More...
 
bool passValidatePropertyValidBool (PUScriptCompiler *compiler, PUPropertyAbstractNode *prop)
 Validate whether the value is a correct bool. More...
 
bool passValidatePropertyValidVector2 (PUScriptCompiler *compiler, PUPropertyAbstractNode *prop)
 Validate whether the value is a correct Vector2. More...
 
bool passValidatePropertyValidVector3 (PUScriptCompiler *compiler, PUPropertyAbstractNode *prop)
 Validate whether the value is a correct Vector3. More...
 
var passValidatePropertyValidVector3 ( var compiler, var prop)
 Validate whether the value is a correct Vector3. More...
 
local passValidatePropertyValidVector3 ( local compiler, local prop)
 Validate whether the value is a correct Vector3. More...
 
bool passValidatePropertyValidVector4 (PUScriptCompiler *compiler, PUPropertyAbstractNode *prop)
 Validate whether the value is a correct Vector4. More...
 
var passValidatePropertyValidVector4 ( var compiler, var prop)
 Validate whether the value is a correct Vector4. More...
 
local passValidatePropertyValidVector4 ( local compiler, local prop)
 Validate whether the value is a correct Vector4. More...
 
bool passValidatePropertyValidQuaternion (PUScriptCompiler *compiler, PUPropertyAbstractNode *prop)
 Validate whether the value is a correct Quaternion. More...
 
var passValidatePropertyValidQuaternion ( var compiler, var prop)
 Validate whether the value is a correct Quaternion. More...
 
local passValidatePropertyValidQuaternion ( local compiler, local prop)
 Validate whether the value is a correct Quaternion. More...
 
void errorUnexpectedToken (PUScriptCompiler *compiler, PUAbstractNode *node)
 Adds an error to the compiler: An unknown token is read. More...
 
var errorUnexpectedToken ( var compiler, var node)
 Adds an error to the compiler: An unknown token is read. More...
 
local errorUnexpectedToken ( local compiler, local node)
 Adds an error to the compiler: An unknown token is read. More...
 
void errorUnexpectedProperty (PUScriptCompiler *compiler, PUPropertyAbstractNode *prop)
 Adds an error to the compiler: An unknown property is read. More...
 
void processNode (PUScriptCompiler *compiler, PUAbstractNode *node)
virtual bool isParticleSystemTranslator () const

Additional Inherited Members

- Public Types inherited from PUScriptTranslator
enum  ValidationType {
  VAL_REAL, VAL_BOOL, VAL_UINT, VAL_INT,
  VAL_STRING, VAL_VECTOR2, VAL_VECTOR3, VAL_VECTOR4,
  VAL_COLOURVALUE, VAL_QUATERNION
}
 
- Static Public Member Functions inherited from PUScriptTranslator
static bool getFloat (const PUAbstractNode &node, float *result)
var getFloat ( var node, var result)
local getFloat ( local node, local result)
static bool getInt (const PUAbstractNode &node, int *result)
static bool getUInt (const PUAbstractNode &node, unsigned int *result)
static bool getBoolean (const PUAbstractNode &node, bool *result)
static bool getString (const PUAbstractNode &node, std::string *result)

Constructor & Destructor Documentation

virtual
~PUDoAffectorEventHandlerTranslator
( )
inlinevirtual
var
~PUDoAffectorEventHandlerTranslator
( )
inlinevirtual
local
~PUDoAffectorEventHandlerTranslator
( )
inlinevirtual

Member Function Documentation

virtual bool translateChildObject ( PUScriptCompiler compiler,
PUAbstractNode node 
)
virtual

Only parses a certain child objec.

Reimplemented from PUScriptTranslator.

var translateChildObject ( var  compiler,
var  node 
)
virtual

Only parses a certain child objec.

Reimplemented from PUScriptTranslator.

local translateChildObject ( local  compiler,
local  node 
)
virtual

Only parses a certain child objec.

Reimplemented from PUScriptTranslator.

virtual bool translateChildProperty ( PUScriptCompiler compiler,
PUAbstractNode node 
)
virtual

Only parses a certain child property.

Reimplemented from PUScriptTranslator.

var translateChildProperty ( var  compiler,
var  node 
)
virtual

Only parses a certain child property.

Reimplemented from PUScriptTranslator.

local translateChildProperty ( local  compiler,
local  node 
)
virtual

Only parses a certain child property.

Reimplemented from PUScriptTranslator.


The documentation for this class was generated from the following file: