Torque2D Reference
Loading...
Searching...
No Matches
Sprite Class Reference

#include <Sprite.h>

Inheritance diagram for Sprite:

Public Member Functions

 Sprite ()
virtual ~Sprite ()
virtual void copyTo (SimObject *object)
void setFlip (const bool flipX, const bool flipY)
 Render flipping.
void setFlipX (const bool flipX)
void setFlipY (const bool flipY)
bool getFlipX (void) const
bool getFlipY (void) const
virtual void sceneRender (const SceneRenderState *pSceneRenderState, const SceneRenderRequest *pSceneRenderRequest, BatchRender *pBatchRenderer)
void setUseComplexColor (const bool complexColor)
bool getUseComplexColor (void) const
void setComplexColor (const ColorF &blendColor0, const ColorF &blendColor1, const ColorF &blendColor2, const ColorF &blendColor3)
const ColorFgetComplexColor (const S8 cornerID)
bool fadeToComplex (const S8 cornerID, const ColorF &targetColor, const F32 deltaRed, const F32 deltaGreen, const F32 deltaBlue, const F32 deltaAlpha)
void updateBlendColor (const F32 elapsedTime)
void checkFadeComplete ()
 DECLARE_CONOBJECT (Sprite)
 Declare Console Object.
Public Member Functions inherited from SpriteBase
 SpriteBase ()
virtual ~SpriteBase ()
virtual void integrateObject (const F32 totalTime, const F32 elapsedTime, DebugStats *pDebugStats)
virtual bool validRender (void) const
virtual bool shouldRender (void) const
 DECLARE_CONOBJECT (SpriteBase)
 Declare Console Object.
Public Member Functions inherited from SceneObject
 SceneObject ()
virtual ~SceneObject ()
virtual bool onAdd ()
 Engine.
virtual void onRemove ()
 Called when the object is removed from the sim.
virtual void onDestroyNotify (SceneObject *pSceneObject)
virtual void preIntegrate (const F32 totalTime, const F32 elapsedTime, DebugStats *pDebugStats)
 Integration.
virtual void postIntegrate (const F32 totalTime, const F32 elapsedTime, DebugStats *pDebugStats)
virtual void interpolateObject (const F32 timeDelta)
bool getIsEditorTickAllowed (void) const
void setBatchIsolated (const bool batchIsolated)
 Render batching.
virtual bool getBatchIsolated (void)
virtual bool isBatchRendered (void)
virtual bool canPrepareRender (void) const
 Render Output.
virtual void scenePrepareRender (const SceneRenderState *pSceneRenderState, SceneRenderQueue *pSceneRenderQueue)
virtual void sceneRenderFallback (const SceneRenderState *pSceneRenderState, const SceneRenderRequest *pSceneRenderRequest, BatchRender *pBatchRenderer)
virtual void sceneRenderOverlay (const SceneRenderState *pSceneRenderState)
virtual U32 packUpdate (NetConnection *conn, U32 mask, BitStream *stream)
 Networking.
virtual void unpackUpdate (NetConnection *conn, BitStream *stream)
Scene *const getScene (void) const
 Scene.
F32 getSceneTime (void) const
virtual void setEnabled (const bool enabled)
 Enabled.
void setLifetime (const F32 lifetime)
 Lifetime.
F32 getLifetime (void) const
void updateLifetime (const F32 elapsedTime)
void setSceneLayer (const U32 sceneLayer)
 Scene layers.
U32 getSceneLayer (void) const
U32 getSceneLayerMask (void) const
void setSceneLayerDepth (const F32 order)
 Scene Layer depth.
F32 getSceneLayerDepth (void) const
bool setSceneLayerDepthFront (void)
bool setSceneLayerDepthBack (void)
bool setSceneLayerDepthForward (void)
bool setSceneLayerDepthBackward (void)
void setSceneGroup (const U32 sceneGroup)
 Scene groups.
U32 getSceneGroup (void) const
U32 getSceneGroupMask (void) const
virtual void setArea (const Vector2 &corner1, const Vector2 &corner2)
 Area.
bool getAutoSizing (void) const
virtual void setSize (const Vector2 &size)
void setSize (const F32 width, const F32 height)
Vector2 getSize (void) const
Vector2 getHalfSize (void) const
b2AABB getAABB (void) const
RectF getAABBRectangle (void) const
S32 getWorldProxy (void) const
virtual void setPosition (const Vector2 &position)
 Position / Angle.
Vector2 getPosition (void) const
Vector2 getRenderPosition (void) const
F32 getRenderAngle (void) const
const b2Vec2 * getRenderOOBB (void) const
const b2Vec2 * getLocalSizedOOBB (void) const
virtual void setAngle (const F32 radians)
F32 getAngle (void) const
virtual void setFixedAngle (const bool fixed)
bool getFixedAngle (void) const
b2Transform getTransform (void) const
b2Transform getRenderTransform (void) const
Vector2 getLocalCenter (void) const
Vector2 getWorldCenter (void) const
Vector2 getLocalPoint (const Vector2 &worldPoint)
Vector2 getWorldPoint (const Vector2 &localPoint)
Vector2 getLocalVector (const Vector2 &worldVector)
Vector2 getWorldVector (const Vector2 &localVector)
bool getIsPointInOOBB (const Vector2 &worldPoint)
bool getIsPointInCollisionShape (const U32 shapeIndex, const Vector2 &worldPoint)
virtual ePhysicsProxyType getPhysicsProxyType (void) const
 Body.
b2Body * getBody (void) const
void setBodyType (const b2BodyType type)
b2BodyType getBodyType (void) const
void setActive (const bool active)
bool getActive (void) const
void setAwake (const bool awake)
bool getAwake (void) const
void setBullet (const bool bullet)
bool getBullet (void) const
void setSleepingAllowed (const bool allowed)
bool getSleepingAllowed (void) const
F32 getMass (void) const
F32 getInertia (void) const
void setCollisionAgainst (const SceneObject *pSceneObject, const bool clearMasks)
 Collision control.
void setCollisionGroupMask (const U32 groupMask)
U32 getCollisionGroupMask (void) const
void setCollisionLayerMask (const U32 layerMask)
U32 getCollisionLayerMask (void) const
void setDefaultDensity (const F32 density, const bool updateShapes=true)
F32 getDefaultDensity (void) const
void setDefaultFriction (const F32 friction, const bool updateShapes=true)
F32 getDefaultFriction (void) const
void setDefaultRestitution (const F32 restitution, const bool updateShapes=true)
F32 getDefaultRestitution (void) const
void setCollisionSuppress (const bool status)
bool getCollisionSuppress (void) const
void setCollisionOneWay (const bool status)
bool getCollisionOneWay (void) const
const Scene::typeContactVectorgetCurrentContacts (void) const
U32 getCurrentContactCount (void) const
virtual void setGatherContacts (const bool gatherContacts)
bool getGatherContacts (void) const
virtual void onBeginCollision (const TickContact &tickContact)
virtual void onEndCollision (const TickContact &tickContact)
void setLinearVelocity (const Vector2 &velocity)
 Velocities.
Vector2 getLinearVelocity (void) const
Vector2 getLinearVelocityFromWorldPoint (const Vector2 &worldPoint)
Vector2 getLinearVelocityFromLocalPoint (const Vector2 &localPoint)
void setAngularVelocity (const F32 velocity)
F32 getAngularVelocity (void) const
void setLinearDamping (const F32 damping)
F32 getLinearDamping (void) const
void setAngularDamping (const F32 damping)
F32 getAngularDamping (void) const
bool moveTo (const Vector2 &targetWorldPoint, const F32 speed, const bool autoStop=true, const bool snapToTarget=true, const F32 margin=0.1f)
 Move/Rotate to.
bool rotateTo (const F32 targetAngle, const F32 speed, const bool autoStop=true, const bool warpToTarget=true)
void cancelMoveTo (const bool autoStop=true)
void cancelRotateTo (const bool autoStop=true)
bool isMoveToComplete (void) const
bool isRotateToComplete (void) const
void updateTargetPosition (void)
bool fadeTo (const ColorF &targetColor, const F32 deltaRed, const F32 deltaGreen, const F32 deltaBlue, const F32 deltaAlpha)
void cancelFadeTo (void)
bool isFadeToComplete (void) const
bool growTo (const Vector2 &targetSize, const Vector2 &deltaSize)
void cancelGrowTo (void)
bool isGrowToComplete (void) const
void updateSize (const F32 elapsedTime)
void applyForce (const Vector2 &worldForce, const bool wake=true)
 Force and impulse.
void applyForce (const Vector2 &worldForce, const Vector2 &worldPoint, const bool wake=true)
void applyTorque (const F32 torque, const bool wake=true)
void applyLinearImpulse (const Vector2 &worldImpulse, const bool wake=true)
void applyLinearImpulse (const Vector2 &worldImpulse, const Vector2 &worldPoint, const bool wake=true)
void applyAngularImpulse (const F32 impulse, const bool wake=true)
void setGravityScale (const F32 scale)
 Gravity scaling.
F32 getGravityScale (void) const
void deleteCollisionShape (const U32 shapeIndex)
 General collision shape access.
void clearCollisionShapes (void)
U32 getCollisionShapeCount (void) const
b2Shape::Type getCollisionShapeType (const U32 shapeIndex) const
S32 getCollisionShapeIndex (const b2Fixture *pFixture) const
void setCollisionShapeDefinition (const U32 shapeIndex, const b2FixtureDef &fixtureDef)
b2FixtureDef getCollisionShapeDefinition (const U32 shapeIndex) const
const b2CircleShape * getCollisionCircleShape (const U32 shapeIndex) const
const b2PolygonShape * getCollisionPolygonShape (const U32 shapeIndex) const
const b2ChainShape * getCollisionChainShape (const U32 shapeIndex) const
const b2EdgeShape * getCollisionEdgeShape (const U32 shapeIndex) const
void setCollisionShapeDensity (const U32 shapeIndex, const F32 density)
F32 getCollisionShapeDensity (const U32 shapeIndex) const
void setCollisionShapeFriction (const U32 shapeIndex, const F32 friction)
F32 getCollisionShapeFriction (const U32 shapeIndex) const
void setCollisionShapeRestitution (const U32 shapeIndex, const F32 restitution)
F32 getCollisionShapeRestitution (const U32 shapeIndex) const
void setCollisionShapeIsSensor (const U32 shapeIndex, const bool isSensor)
bool getCollisionShapeIsSensor (const U32 shapeIndex) const
S32 createCircleCollisionShape (const F32 radius)
 Circle collision shape creation.
S32 createCircleCollisionShape (const F32 radius, const b2Vec2 &localPosition)
F32 getCircleCollisionShapeRadius (const U32 shapeIndex) const
 Circle collision shape access.
Vector2 getCircleCollisionShapeLocalPosition (const U32 shapeIndex) const
S32 createPolygonCollisionShape (const U32 pointCount, const b2Vec2 *localPoints)
 Polygon collision shape creation.
S32 createPolygonBoxCollisionShape (const F32 width, const F32 height)
S32 createPolygonBoxCollisionShape (const F32 width, const F32 height, const b2Vec2 &localCentroid)
S32 createPolygonBoxCollisionShape (const F32 width, const F32 height, const b2Vec2 &localCentroid, const F32 rotation)
U32 getPolygonCollisionShapePointCount (const U32 shapeIndex) const
 Polygon collision shape access.
Vector2 getPolygonCollisionShapeLocalPoint (const U32 shapeIndex, const U32 pointIndex) const
S32 createChainCollisionShape (const U32 pointCount, const b2Vec2 *localPoints)
 Chain collision shape creation.
S32 createChainCollisionShape (const U32 pointCount, const b2Vec2 *localPoints, const bool hasAdjacentLocalPositionStart, const bool hasAdjacentLocalPositionEnd, const b2Vec2 &adjacentLocalPositionStart, const b2Vec2 &adjacentLocalPositionEnd)
U32 getChainCollisionShapePointCount (const U32 shapeIndex) const
 Chain collision shape access.
Vector2 getChainCollisionShapeLocalPoint (const U32 shapeIndex, const U32 pointIndex) const
bool getChainCollisionShapeHasAdjacentStart (const U32 shapeIndex) const
bool getChainCollisionShapeHasAdjacentEnd (const U32 shapeIndex) const
Vector2 getChainCollisionShapeAdjacentStart (const U32 shapeIndex) const
Vector2 getChainCollisionShapeAdjacentEnd (const U32 shapeIndex) const
S32 createEdgeCollisionShape (const b2Vec2 &localPositionStart, const b2Vec2 &localPositionEnd)
 Edge collision shape creation.
S32 createEdgeCollisionShape (const b2Vec2 &localPositionStart, const b2Vec2 &localPositionEnd, const bool hasAdjacentLocalPositionStart, const bool hasAdjacentLocalPositionEnd, const b2Vec2 &adjacentLocalPositionStart, const b2Vec2 &adjacentLocalPositionEnd)
Vector2 getEdgeCollisionShapeLocalPositionStart (const U32 shapeIndex) const
 Edge collision shape access.
Vector2 getEdgeCollisionShapeLocalPositionEnd (const U32 shapeIndex) const
bool getEdgeCollisionShapeHasAdjacentStart (const U32 shapeIndex) const
bool getEdgeCollisionShapeHasAdjacentEnd (const U32 shapeIndex) const
Vector2 getEdgeCollisionShapeAdjacentStart (const U32 shapeIndex) const
Vector2 getEdgeCollisionShapeAdjacentEnd (const U32 shapeIndex) const
void setVisible (const bool status)
 Render visibility.
bool getVisible (void) const
void setBlendMode (const bool blendMode)
 Render blending.
bool getBlendMode (void) const
void setSrcBlendFactor (const S32 blendFactor)
S32 getSrcBlendFactor (void) const
void setDstBlendFactor (const S32 blendFactor)
S32 getDstBlendFactor (void) const
void setBlendColor (const ColorF &blendColor)
const ColorFgetBlendColor (void) const
void setBlendAlpha (const F32 alpha)
F32 getBlendAlpha (void) const
void setAlphaTest (const F32 alpha)
F32 getAlphaTest (void) const
void setBlendOptions (void)
void setSortPoint (const Vector2 &pt)
 Render sorting.
const Vector2getSortPoint (void) const
void setRenderGroup (const char *pRenderGroup)
StringTableEntry getRenderGroup (void) const
void setUseInputEvents (bool mouseStatus)
 Input events.
bool getUseInputEvents (void) const
virtual bool onInputEvent (StringTableEntry name, const GuiEvent &event, const Vector2 &worldMousePoint)
void setUpdateCallback (bool status)
bool getUpdateCallback (void) const
void setCollisionCallback (const bool status)
bool getCollisionCallback (void) const
void setSleepingCallback (bool status)
bool getSleepingCallback (void) const
void setDebugOn (const U32 debugMask)
 Debug mode.
void setDebugOff (const U32 debugMask)
U32 getDebugMask (void) const
void addCameraMountReference (SceneWindow *pAttachedCamera)
 Camera mounting.
void removeCameraMountReference (void)
void dismountCamera (void)
void attachGui (GuiControl *pGuiControl, SceneWindow *pSceneWindow, const bool sizeControl, const Vector2 offset)
void detachGui (void)
void detachGui (GuiControl *pGuiControl)
void detachAllGuiControls (void)
void updateAttachedGui (void)
void setPickingAllowed (const bool pickingAllowed)
bool getPickingAllowed (void) const
virtual void copyFrom (SceneObject *pSceneObject, const bool copyDynamicFields)
 Cloning.
S32 copyCollisionShapes (SceneObject *pSceneObject, const bool clearTargetShapes=true, const S32 shapeIndex=-1)
void setSafeDelete (const bool status)
 Safe deletion.
bool getSafeDelete (void) const
bool isBeingDeleted (void) const
virtual void safeDelete (void)
void addDestroyNotification (SceneObject *pSceneObject)
 Destroy notifications.
void removeDestroyNotification (SceneObject *pSceneObject)
void processDestroyNotifications (void)
void notifyComponentsAddToScene (void)
 Component notifications.
void notifyComponentsRemoveFromScene (void)
void notifyComponentsUpdate (void)
const char * scriptThis (void) const
 Miscellaneous.
bool getIsAlwaysInScope (void) const
void setWorldQueryKey (const U32 key)
U32 getWorldQueryKey (void) const
U32 getSerialId (void) const
void addAudioHandle (AUDIOHANDLE handle)
U32 getSound (S32 index)
S32 getSoundsCount ()
void refreshsources ()
virtual bool writeField (StringTableEntry fieldname, const char *value)
 DECLARE_CONOBJECT (SceneObject)
 Declare Console Object.
Public Member Functions inherited from BehaviorComponent
 BehaviorComponent ()
virtual ~BehaviorComponent ()
virtual void onDeleteNotify (SimObject *object)
BehaviorInstancegetBehaviorByInstanceId (const U32 behaviorId)
 Behavior interface.
virtual bool addBehavior (BehaviorInstance *bi)
virtual bool removeBehavior (BehaviorInstance *bi, bool deleteBehavior=true)
virtual void clearBehaviors ()
virtual U32 getBehaviorCount () const
virtual const SimSetgetBehaviors () const
virtual BehaviorInstancegetBehavior (StringTableEntry behaviorTemplateName)
virtual BehaviorInstancegetBehavior (const U32 index)
virtual bool reOrder (BehaviorInstance *obj, U32 desiredIndex)
bool connect (BehaviorInstance *pOutputBehavior, BehaviorInstance *pInputBehavior, StringTableEntry pOutputName, StringTableEntry pInputName)
 Behavior connectivity.
bool disconnect (BehaviorInstance *pOutputBehavior, BehaviorInstance *pInputBehavior, StringTableEntry pOutputName, StringTableEntry pInputName)
bool raise (BehaviorInstance *pOutputBehavior, StringTableEntry pOutputName)
U32 getBehaviorConnectionCount (BehaviorInstance *pOutputBehavior, StringTableEntry pOutputName)
const BehaviorPortConnectiongetBehaviorConnection (BehaviorInstance *pOutputBehavior, StringTableEntry pOutputName, const U32 connectionIndex)
const typePortConnectionVectorgetBehaviorConnections (BehaviorInstance *pOutputBehavior, StringTableEntry pOutputName)
virtual bool handlesConsoleMethod (const char *fname, S32 *routingId)
 DynamicConsoleMethodComponent Overrides.
virtual const char * callOnBehaviors (U32 argc, const char *argv[])
virtual void write (Stream &stream, U32 tabStop, U32 flags=0)
 SimComponent overrides.
 DECLARE_CONOBJECT (BehaviorComponent)
Public Member Functions inherited from DynamicConsoleMethodComponent
const char * callMethod (S32 argc, const char *methodName,...)
 Call Method format string.
virtual const char * callMethodArgList (U32 argc, const char *argv[], bool callThis=true)
 Call Method.
 DECLARE_CONOBJECT (DynamicConsoleMethodComponent)
Public Member Functions inherited from SimComponent
 DECLARE_CONOBJECT (SimComponent)
 SimComponent ()
virtual ~SimComponent ()
virtual bool processArguments (S32 argc, const char **argv)
 Process constructor options. (ie, new SimObject(1,2,3)).
bool hasComponents () const
 Will return true if this object contains components.
const SimComponentgetOwner () const
 The component which owns this object.
virtual StringTableEntry getComponentName ()
virtual bool addComponent (SimComponent *component)
 Add Component to this one.
virtual bool removeComponent (SimComponent *component)
 Remove Component from this one.
virtual bool clearComponents ()
 Clear Child components of this one.
virtual bool onComponentAdd (SimComponent *target)
virtual void onComponentRemove (SimComponent *target)
U32 getComponentCount ()
SimComponentgetComponent (const U32 index)
bool isEnabled () const
virtual void onUpdate (void)
virtual void onAddToScene (void)
virtual void onRemoveFromScene (void)
bool callMethodOnComponents (U32 argc, const char *argv[], const char **result)
Public Member Functions inherited from SimObject
StringTableEntry getClassNamespace () const
StringTableEntry getSuperClassNamespace () const
void setClassNamespace (const char *classNamespace)
void setSuperClassNamespace (const char *superClassNamespace)
void pushScriptCallbackGuard (void)
void popScriptCallbackGuard (void)
S32 getScriptCallbackGuard (void)
virtual SimObjectfindObject (const char *name)
NamespacegetNamespace ()
 Return the object's namespace.
const char * tabComplete (const char *prevText, S32 baseLen, bool)
virtual void dump ()
virtual void dumpClassHierarchy ()
SimObjectclone (const bool copyDynamicFields)
SimObjectdeepClone ()
template<typename T>
bool isType (void)
 DECLARE_CONOBJECT (SimObject)
virtual void writeFields (Stream &stream, U32 tabStop)
virtual bool writeObject (Stream *stream)
virtual bool readObject (Stream *stream)
virtual void buildFilterList ()
void addFieldFilter (const char *fieldName)
void removeFieldFilter (const char *fieldName)
void clearFieldFilters ()
bool isFiltered (const char *fieldName)
void assignFieldsFrom (SimObject *obj)
void copyFieldsFrom (SimObject *obj, const U32 flags)
void assignDynamicFieldsFrom (SimObject *obj)
NotifyremoveNotify (void *ptr, Notify::Type)
 Remove a notification from the list.
void deleteNotify (SimObject *obj)
 Notify an object when we are deleted.
void clearNotify (SimObject *obj)
 Notify an object when we are cleared.
void clearAllNotifications ()
 Remove all notifications for this object.
void processDeleteNotifies ()
 Send out deletion notifications.
void registerReference (SimObject **obj)
void unregisterReference (SimObject **obj)
void addListener (std::string objID)
void removeListener (std::string objID)
void removeAllListeners ()
void postEvent (std::string eventName, std::string data)
const char * getDataField (StringTableEntry slotName, const char *array)
virtual void setDataField (StringTableEntry slotName, const char *array, const char *value)
const char * getPrefixedDataField (StringTableEntry fieldName, const char *array)
void setPrefixedDataField (StringTableEntry fieldName, const char *array, const char *value)
const char * getPrefixedDynamicDataField (StringTableEntry fieldName, const char *array, const S32 fieldType=-1)
void setPrefixedDynamicDataField (StringTableEntry fieldName, const char *array, const char *value, const S32 fieldType=-1)
StringTableEntry getDataFieldPrefix (StringTableEntry fieldName)
U32 getDataFieldType (StringTableEntry slotName, const char *array)
SimFieldDictionarygetFieldDictionary ()
void clearDynamicFields (void)
 Clear all dynamic fields.
void setCanSaveDynamicFields (bool bCanSave)
 Set whether fields created at runtime should be saved. Default is true.
bool getCanSaveDynamicFields (void) const
 Get whether fields created at runtime should be saved. Default is true.
void setInternalName (const char *newname)
StringTableEntry getInternalName ()
 Get the internal of of this control.
virtual bool save (const char *pcFilePath, bool bOnlySelected=false)
 Save object as a TorqueScript File.
virtual bool isMethod (const char *methodName)
 Check if a method exists in the objects current namespace.
SimObjectId getId (void) const
StringTableEntry getIdString (void) const
U32 getType () const
const StringTableEntry getName (void) const
void setId (SimObjectId id)
void assignName (const char *name)
SimGroupgetGroup () const
bool isChildOfGroup (SimGroup *pGroup)
bool isProperlyAdded () const
bool isDeleted () const
bool isRemoved () const
bool isLocked () const
void setLocked (bool b)
bool isHidden () const
void setHidden (bool b)
void setProgenitorFile (const char *pFile)
StringTableEntry getProgenitorFile (void) const
void setPeriodicTimerID (const S32 timerID)
S32 getPeriodicTimerID (void) const
bool isPeriodicTimerActive (void) const
bool isSelected () const
bool isExpanded () const
void setSelected (bool sel)
void setExpanded (bool exp)
void setModDynamicFields (bool dyn)
void setModStaticFields (bool sta)
 SimObject ()
virtual ~SimObject ()
virtual void onGroupAdd ()
 Called when the object is added to a SimGroup.
virtual void onGroupRemove ()
 Called when the object is removed from a SimGroup.
virtual void onNameChange (const char *name)
 Called when the object's name is changed.
virtual void onStaticModified (const char *slotName, const char *newValue=NULL)
virtual void inspectPreApply ()
virtual void inspectPostApply ()
virtual void onEditorEnable ()
 Called when the editor is activated.
virtual void onEditorDisable ()
 Called when the editor is deactivated.
bool registerObject ()
bool registerObject (U32 id)
bool registerObject (const char *name)
bool registerObject (const char *name, U32 id)
void unregisterObject ()
void deleteObject ()
bool addToSet (SimObjectId)
bool addToSet (const char *)
bool removeFromSet (SimObjectId)
bool removeFromSet (const char *)
Public Member Functions inherited from ConsoleObject
const AbstractClassRep::FieldfindField (StringTableEntry fieldName) const
 Get a reference to a field by name.
virtual AbstractClassRepgetClassRep () const
 Gets the ClassRep.
bool setField (const char *fieldName, const char *value)
 Set the value of a field.
virtual ~ConsoleObject ()
const AbstractClassRep::FieldListgetFieldList () const
 Get a list of all the fields. This information cannot be modified.
AbstractClassRep::FieldListgetModifiableFieldList ()
bool & getDynamicGroupExpand ()
S32 getClassId (U32 netClassGroup) const
const char * getClassName () const
Public Member Functions inherited from SceneRenderObject
 SceneRenderObject ()
virtual ~SceneRenderObject ()
Public Member Functions inherited from PhysicsProxy
 PhysicsProxy ()
virtual ~PhysicsProxy ()
Public Member Functions inherited from ImageFrameProvider
 ImageFrameProvider ()
virtual ~ImageFrameProvider ()
Public Member Functions inherited from ImageFrameProviderCore
 ImageFrameProviderCore ()
virtual ~ImageFrameProviderCore ()
void allocateAssets (AssetPtr< ImageAsset > *pImageAssetPtr, AssetPtr< AnimationAsset > *pAnimationAssetPtr)
void deallocateAssets (void)
virtual void copyTo (ImageFrameProviderCore *pImageFrameProviderCore) const
virtual bool update (const F32 elapsedTime)
 Integration.
virtual void processTick ()
virtual void interpolateTick (F32 delta)
virtual void advanceTime (F32 timeDelta)
virtual void setProcessTicks (bool tick)
bool updateAnimation (const F32 elapsedTime)
virtual void render (const bool flipX, const bool flipY, const Vector2 &vertexPos0, const Vector2 &vertexPos1, const Vector2 &vertexPos2, const Vector2 &vertexPos3, BatchRender *pBatchRenderer) const
virtual void render (const bool flipX, const bool flipY, const Vector2 &vertexPos0, const Vector2 &vertexPos1, const Vector2 &vertexPos2, const Vector2 &vertexPos3, const Vector2 &uvPos0, const Vector2 &uvPos1, const Vector2 &uvPos2, const Vector2 &uvPos3, BatchRender *pBatchRenderer) const
void render (const U32 vertexCount, const Vector2 *vertexArray, const Vector2 *textureArray, const ColorF *colorArray, BatchRender *pBatchRenderer) const
void renderComplex (const bool flipX, const bool flipY, const Vector2 &vertexPos0, const Vector2 &vertexPos1, const Vector2 &vertexPos2, const Vector2 &vertexPos3, BatchRender *pBatchRenderer, const ColorF &colorTL, const ColorF &colorTR, const ColorF &colorBR, const ColorF &colorBL) const
void renderGui (GuiControl &owner, Point2I offset, const RectI &updateRect) const
bool setImage (const char *pImageAssetId)
 Static-Image Frame.
virtual bool setImage (const char *pImageAssetId, const U32 frame)
virtual bool setImage (const char *pImageAssetId, const char *pNamedFrame)
StringTableEntry getImage (void) const
virtual bool setImageFrame (const U32 frame)
U32 getImageFrame (void) const
virtual bool setNamedImageFrame (const char *frame)
StringTableEntry getNamedImageFrame (void) const
virtual bool setAnimation (const char *pAnimationAssetId)
 Animated-Image Frame.
StringTableEntry getAnimation (void) const
void setAnimationFrame (const U32 frameIndex)
S32 getAnimationFrame (void) const
void setAnimationTimeScale (const F32 scale)
F32 getAnimationTimeScale (void) const
bool playAnimation (const AssetPtr< AnimationAsset > &animationAsset)
void pauseAnimation (const bool animationPaused)
void stopAnimation (void)
void resetAnimationTime (void)
bool isAnimationPaused (void) const
bool isAnimationFinished (void) const
bool isAnimationValid (void) const
bool isStaticFrameProvider (void) const
 Frame provision.
bool isUsingNamedImageFrame (void) const
TextureHandlegetProviderTexture (void) const
const ImageAsset::FrameAreagetProviderImageFrameArea (void) const
const AnimationAssetgetCurrentAnimation (void) const
const StringTableEntry getCurrentAnimationAssetId (void) const
const U32 getCurrentAnimationFrame (void) const
const char * getCurrentNamedAnimationFrame (void) const
const F32 getCurrentAnimationTime (void) const
void clearAssets (void)
virtual void resetState (void)
Public Member Functions inherited from Tickable
 Tickable ()
virtual ~Tickable ()
virtual bool isProcessingTicks () const

Static Public Member Functions

static void initPersistFields ()
static Corner getCornerEnum (const char *label)
Static Public Member Functions inherited from SpriteBase
static void initPersistFields ()
Static Public Member Functions inherited from SceneObject
static void initPersistFields ()
static void resetBlendOptions (void)
static U32 getGlobalSceneObjectCount (void)
static b2BodyType getBodyTypeEnum (const char *label)
static const char * getBodyTypeDescription (const b2BodyType bodyType)
static b2Shape::Type getCollisionShapeTypeEnum (const char *label)
static const char * getCollisionShapeTypeDescription (const b2Shape::Type collisionShapeType)
static S32 getSrcBlendFactorEnum (const char *label)
static S32 getDstBlendFactorEnum (const char *label)
static const char * getSrcBlendFactorDescription (const GLenum factor)
static const char * getDstBlendFactorDescription (const GLenum factor)
Static Public Member Functions inherited from SimComponent
static void initPersistFields ()
static bool setEnabled (void *obj, const char *data)
static bool writeEnabled (void *obj, StringTableEntry pFieldName)
Static Public Member Functions inherited from SimObject
static void initPersistFields ()
Static Public Member Functions inherited from ConsoleObject
static const char * lookupClassName (const U32 in_classTag)
 Get the classname from a class tag.
static void initPersistFields ()
static void consoleInit ()
static AbstractClassRepgetStaticClassRep ()
 Get the abstract class information for this class.
static AbstractClassRepgetParentStaticClassRep ()
 Get the abstract class information for this class's superclass.
static ConsoleObjectcreate (const char *in_pClassName)
static ConsoleObjectcreate (const U32 groupId, const U32 typeId, const U32 in_classId)
Static Public Member Functions inherited from Tickable
static bool advanceTime (U32 timeDelta)

Static Protected Member Functions

static bool writeFlipX (void *obj, StringTableEntry pFieldName)
static bool writeFlipY (void *obj, StringTableEntry pFieldName)
static bool writeUseComplexColor (void *obj, StringTableEntry pFieldName)
Static Protected Member Functions inherited from SpriteBase
static bool setImage (void *obj, const char *data)
static const char * getImage (void *obj, const char *data)
static bool writeImage (void *obj, StringTableEntry pFieldName)
static bool setImageFrame (void *obj, const char *data)
static bool setNamedImageFrame (void *obj, const char *data)
static bool writeImageFrame (void *obj, StringTableEntry pFieldName)
static bool writeNamedImageFrame (void *obj, StringTableEntry pFieldName)
static bool setAnimation (void *obj, const char *data)
static const char * getAnimation (void *obj, const char *data)
static bool writeAnimation (void *obj, StringTableEntry pFieldName)
Static Protected Member Functions inherited from SceneObject
static S32 QSORT_CALLBACK sceneObjectLayerDepthSort (const void *a, const void *b)
static bool setLifetime (void *obj, const char *data)
 Lifetime.
static bool writeLifetime (void *obj, StringTableEntry pFieldName)
static bool setSceneLayer (void *obj, const char *data)
 Scene layers.
static bool writeSceneLayer (void *obj, StringTableEntry pFieldName)
static bool setSceneLayerDepth (void *obj, const char *data)
static bool writeSceneLayerDepth (void *obj, StringTableEntry pFieldName)
static bool setSceneGroup (void *obj, const char *data)
 Scene groups.
static bool writeSceneGroup (void *obj, StringTableEntry pFieldName)
static bool setSize (void *obj, const char *data)
 Area.
static bool writeSize (void *obj, StringTableEntry pFieldName)
static bool setPosition (void *obj, const char *data)
 Position / Angle.
static const char * getPosition (void *obj, const char *data)
static bool writePosition (void *obj, StringTableEntry pFieldName)
static bool setAngle (void *obj, const char *data)
static const char * getAngle (void *obj, const char *data)
static bool writeAngle (void *obj, StringTableEntry pFieldName)
static bool setFixedAngle (void *obj, const char *data)
static const char * getFixedAngle (void *obj, const char *data)
static bool writeFixedAngle (void *obj, StringTableEntry pFieldName)
static bool setBodyType (void *obj, const char *data)
 Body.
static const char * getBodyType (void *obj, const char *data)
static bool writeBodyType (void *obj, StringTableEntry pFieldName)
static bool setActive (void *obj, const char *data)
static const char * getActive (void *obj, const char *data)
static bool writeActive (void *obj, StringTableEntry pFieldName)
static bool setAwake (void *obj, const char *data)
static const char * getAwake (void *obj, const char *data)
static bool writeAwake (void *obj, StringTableEntry pFieldName)
static bool setBullet (void *obj, const char *data)
static const char * getBullet (void *obj, const char *data)
static bool writeBullet (void *obj, StringTableEntry pFieldName)
static bool setSleepingAllowed (void *obj, const char *data)
static const char * getSleepingAllowed (void *obj, const char *data)
static bool writeSleepingAllowed (void *obj, StringTableEntry pFieldName)
static bool setDefaultDensity (void *obj, const char *data)
 Collision control.
static bool writeDefaultDensity (void *obj, StringTableEntry pFieldName)
static bool setDefaultFriction (void *obj, const char *data)
static bool writeDefaultFriction (void *obj, StringTableEntry pFieldName)
static bool setDefaultRestitution (void *obj, const char *data)
static bool writeDefaultRestitution (void *obj, StringTableEntry pFieldName)
static bool setCollisionGroups (void *obj, const char *data)
static const char * getCollisionGroups (void *obj, const char *data)
static bool writeCollisionGroups (void *obj, StringTableEntry pFieldName)
static bool setCollisionLayers (void *obj, const char *data)
static const char * getCollisionLayers (void *obj, const char *data)
static bool writeCollisionLayers (void *obj, StringTableEntry pFieldName)
static bool writeCollisionSuppress (void *obj, StringTableEntry pFieldName)
static bool writeCollisionOneWay (void *obj, StringTableEntry pFieldName)
static bool setGatherContacts (void *obj, const char *data)
static bool writeGatherContacts (void *obj, StringTableEntry pFieldName)
static bool setLinearVelocity (void *obj, const char *data)
 Velocities.
static const char * getLinearVelocity (void *obj, const char *data)
static bool writeLinearVelocity (void *obj, StringTableEntry pFieldName)
static bool setAngularVelocity (void *obj, const char *data)
static const char * getAngularVelocity (void *obj, const char *data)
static bool writeAngularVelocity (void *obj, StringTableEntry pFieldName)
static bool setLinearDamping (void *obj, const char *data)
static const char * getLinearDamping (void *obj, const char *data)
static bool writeLinearDamping (void *obj, StringTableEntry pFieldName)
static bool setAngularDamping (void *obj, const char *data)
static const char * getAngularDamping (void *obj, const char *data)
static bool writeAngularDamping (void *obj, StringTableEntry pFieldName)
static bool setGravityScale (void *obj, const char *data)
 Gravity scaling.
static const char * getGravityScale (void *obj, const char *data)
static bool writeGravityScale (void *obj, StringTableEntry pFieldName)
static bool writeVisible (void *obj, StringTableEntry pFieldName)
 Render visibility.
static bool writeBlendMode (void *obj, StringTableEntry pFieldName)
 Render blending.
static bool writeSrcBlendFactor (void *obj, StringTableEntry pFieldName)
static bool writeDstBlendFactor (void *obj, StringTableEntry pFieldName)
static bool writeBlendColor (void *obj, StringTableEntry pFieldName)
static bool writeAlphaTest (void *obj, StringTableEntry pFieldName)
static bool writeSortPoint (void *obj, StringTableEntry pFieldName)
 Render sorting.
static bool writeRenderGroup (void *obj, StringTableEntry pFieldName)
static bool writeUseInputEvents (void *obj, StringTableEntry pFieldName)
 Input events.
static bool writePickingAllowed (void *obj, StringTableEntry pFieldName)
 Picking.
static bool writeUpdateCallback (void *obj, StringTableEntry pFieldName)
 Script callbacks.
static bool writeCollisionCallback (void *obj, StringTableEntry pFieldName)
static bool writeSleepingCallback (void *obj, StringTableEntry pFieldName)
static bool setScene (void *obj, const char *data)
 Scene.
static bool writeScene (void *obj, StringTableEntry pFieldName)
Static Protected Member Functions inherited from SimObject
static bool setClass (void *obj, const char *data)
static bool setSuperClass (void *obj, const char *data)
static bool writeObjectName (void *obj, StringTableEntry pFieldName)
static bool writeCanSaveDynamicFields (void *obj, StringTableEntry pFieldName)
static bool writeInternalName (void *obj, StringTableEntry pFieldName)
static bool setParentGroup (void *obj, const char *data)
static bool writeParentGroup (void *obj, StringTableEntry pFieldName)
static bool writeSuperclass (void *obj, StringTableEntry pFieldName)
static bool writeClass (void *obj, StringTableEntry pFieldName)
static bool setProtectedName (void *obj, const char *data)
static const char * getProtectedName (void *obj, const char *data)
static SimObject::NotifyallocNotify ()
 Get a free Notify structure.
static void freeNotify (SimObject::Notify *)
 Mark a Notify structure as free.
static void addGroup (const char *in_pGroupname, const char *in_pGroupDocs=NULL)
static void endGroup (const char *in_pGroupname)
static void addField (const char *in_pFieldname, const U32 in_fieldType, const dsize_t in_fieldOffset, const U32 in_elementCount=1, EnumTable *in_table=NULL, const char *in_pFieldDocs=NULL)
static void addField (const char *in_pFieldname, const U32 in_fieldType, const dsize_t in_fieldOffset, AbstractClassRep::WriteDataNotify in_writeDataFn, const U32 in_elementCount=1, EnumTable *in_table=NULL, const char *in_pFieldDocs=NULL)
static void addField (const char *in_pFieldname, const U32 in_fieldType, const dsize_t in_fieldOffset, const char *in_pFieldDocs)
static void addField (const char *in_pFieldname, const U32 in_fieldType, const dsize_t in_fieldOffset, AbstractClassRep::WriteDataNotify in_writeDataFn, const char *in_pFieldDocs)
static void addFieldV (const char *in_pFieldname, const U32 in_fieldType, const dsize_t in_fieldOffset, ConsoleTypeValidator *v, const char *in_pFieldDocs=NULL)
static void addProtectedField (const char *in_pFieldname, const U32 in_fieldType, const dsize_t in_fieldOffset, AbstractClassRep::SetDataNotify in_setDataFn, AbstractClassRep::GetDataNotify in_getDataFn=&defaultProtectedGetFn, const U32 in_elementCount=1, EnumTable *in_table=NULL, const char *in_pFieldDocs=NULL)
static void addProtectedField (const char *in_pFieldname, const U32 in_fieldType, const dsize_t in_fieldOffset, AbstractClassRep::SetDataNotify in_setDataFn, AbstractClassRep::GetDataNotify in_getDataFn=&defaultProtectedGetFn, AbstractClassRep::WriteDataNotify in_writeDataFn=&defaultProtectedWriteFn, const U32 in_elementCount=1, EnumTable *in_table=NULL, const char *in_pFieldDocs=NULL)
static void addProtectedField (const char *in_pFieldname, const U32 in_fieldType, const dsize_t in_fieldOffset, AbstractClassRep::SetDataNotify in_setDataFn, AbstractClassRep::GetDataNotify in_getDataFn=&defaultProtectedGetFn, const char *in_pFieldDocs=NULL)
static void addProtectedField (const char *in_pFieldname, const U32 in_fieldType, const dsize_t in_fieldOffset, AbstractClassRep::SetDataNotify in_setDataFn, AbstractClassRep::GetDataNotify in_getDataFn=&defaultProtectedGetFn, AbstractClassRep::WriteDataNotify in_writeDataFn=&defaultProtectedWriteFn, const char *in_pFieldDocs=NULL)
static void addDepricatedField (const char *fieldName)
static bool removeField (const char *in_pFieldname)

Protected Attributes

bool mUseComplexColor
ColorF mComplexColor0
ColorF mComplexColor1
ColorF mComplexColor2
ColorF mComplexColor3
Protected Attributes inherited from SceneObject
SimObjectPtr< ScenempScene
 Scene.
SimObjectPtr< ScenempTargetScene
F32 mLifetime
 Lifetime.
bool mLifetimeActive
U32 mSceneLayer
 Scene layers.
U32 mSceneLayerMask
F32 mSceneLayerDepth
U32 mSceneGroup
 Scene groups.
U32 mSceneGroupMask
Vector2 mSize
 Area.
bool mAutoSizing
b2AABB mPreTickAABB
b2AABB mCurrentAABB
Vector2 mLocalSizeOOBB [4]
Vector2 mRenderOOBB [4]
S32 mWorldProxyId
bool mGrowActive
Vector2 mTargetSize
Vector2 mDeltaSize
Vector2 mPreTickPosition
 Position / Angle.
F32 mPreTickAngle
Vector2 mRenderPosition
F32 mRenderAngle
bool mSpatialDirty
Vector2 mLastCheckedPosition
Vector2 mTargetPosition
bool mTargetPositionActive
F32 mDistanceToTarget
F32 mTargetPositionMargin
bool mTargetPositionFound
bool mSnapToTargetPosition
bool mStopAtTargetPosition
b2Body * mpBody
 Body.
b2BodyDef mBodyDefinition
U32 mWorldQueryKey
U32 mCollisionLayerMask
 Collision control.
U32 mCollisionGroupMask
bool mCollisionSuppress
bool mCollisionOneWay
b2FixtureDef mDefaultFixture
bool mGatherContacts
Scene::typeContactVectormpCurrentContacts
typeCollisionFixtureDefVector mCollisionFixtureDefs
 General collision shape access.
typeCollisionFixtureVector mCollisionFixtures
typeAudioHandleVector mAudioHandles
Vector< S32 > mHandleDeletionList
bool mVisible
 Render visibility.
bool mBlendMode
 Render blending.
S32 mSrcBlendFactor
S32 mDstBlendFactor
ColorF mBlendColor
F32 mAlphaTest
bool mFadeActive
FadeToColor mFadeToColor
Vector2 mSortPoint
 Render sorting.
bool mUseInputEvents
 Input events.
bool mUpdateCallback
 Script callbacks.
bool mCollisionCallback
bool mSleepingCallback
bool mLastAwakeState
U32 mDebugMask
 Debug mode.
SceneWindowmpAttachedCamera
 Camera mounting.
Vector< SceneObjectAttachedGUImAttachedCtrls
 GUI attachment.
bool mBeingSafeDeleted
 Safe deletion.
bool mSafeDeleteReady
typeDestroyNotificationVector mDestroyNotifyList
 Destroy notifications.
bool mBatchIsolated
 Miscellaneous.
U32 mSerialiseKey
bool mEditorTickAllowed
bool mPickingAllowed
bool mAlwaysInScope
U32 mRotateToEventId
U32 mSerialId
StringTableEntry mRenderGroup
Protected Attributes inherited from SimComponent
bool mEnabled
Protected Attributes inherited from SimObject
SimObjectId mId
 Id number for this object.
StringTableEntry mIdString
NamespacemNameSpace
U32 mTypeMask
S32 mScriptCallbackGuard
 Whether the object is executing a script callback.
bool mCanSaveFieldDictionary
 true if dynamic fields (added at runtime) should be saved, defaults to true
StringTableEntry mInternalName
 Stores object Internal Name.
StringTableEntry mClassName
 Stores the class name to link script class namespaces.
StringTableEntry mSuperClassName
 Stores super class name to link script class namespaces.
Protected Attributes inherited from ImageFrameProvider
AssetPtr< ImageAssetmImageAsset
AssetPtr< AnimationAssetmAnimationAsset
Protected Attributes inherited from ImageFrameProviderCore
bool mSelfTick
bool mStaticProvider
bool mUsingNamedFrame
U32 mImageFrame
StringTableEntry mNamedImageFrame
AssetPtr< ImageAsset > * mpImageAsset
AssetPtr< AnimationAsset > * mpAnimationAsset
S32 mLastFrameIndex
S32 mCurrentFrameIndex
U32 mMaxFrameIndex
F32 mCurrentTime
F32 mPausedTime
F32 mCurrentModTime
F32 mAnimationTimeScale
F32 mTotalIntegrationTime
F32 mFrameIntegrationTime
bool mAnimationPaused
bool mAnimationFinished

Additional Inherited Members

Public Types inherited from BehaviorComponent
typedef Vector< BehaviorPortConnectiontypePortConnectionVector
typedef HashMap< StringTableEntry, typePortConnectionVector * > typeOutputNameConnectionHash
typedef HashMap< SimObjectId, typeOutputNameConnectionHash * > typeInstanceConnectionHash
Public Types inherited from SimObject
enum  WriteFlags { SelectedOnly = BIT(0) }
enum  CopyFieldsFlags { CopyFields_SkipName = BIT(0) , CopyFields_SkipParentGroup = BIT(1) , CopyFields_SkipScriptClass = BIT(2) }
 What copyFieldsFrom may be told to leave alone. More...
Public Types inherited from PhysicsProxy
enum  ePhysicsProxyType { PHYSIC_PROXY_INVALID , PHYSIC_PROXY_CUSTOM , PHYSIC_PROXY_SCENEOBJECT , PHYSIC_PROXY_GROUNDBODY }
Public Attributes inherited from BehaviorComponent
typeInstanceConnectionHash mBehaviorConnections
static bool disableNameChanging = false
Static Public Attributes inherited from Tickable
static const U32 smTickShift = 4
 Shift value to control how often Ticks occur.
static const U32 smTickMs = ( 1 << smTickShift )
 Number of milliseconds per tick, 32 in this case.
static const F32 smTickSec = ( F32( Tickable::smTickMs ) / 1000.f )
 Fraction of a second per tick.
static const U32 smTickMask = ( smTickMs - 1 )
Protected Types inherited from SimComponent
typedef VectorPtr< SimComponent * >::iterator SimComponentIterator
 Returns a const reference to private mComponentList.
Protected Member Functions inherited from SpriteBase
virtual void onAnimationEnd (void)
Protected Member Functions inherited from SceneObject
virtual void OnRegisterScene (Scene *pScene)
 Scene (un)registering.
virtual void OnUnregisterScene (Scene *pScene)
void resetTickSpatials (const bool resize=false)
 Ticking.
bool getSpatialDirty (void) const
void initializeContactGathering (void)
 Contact processing.
virtual void onTamlCustomWrite (TamlCustomNodes &customNodes)
 Taml callbacks.
virtual void onTamlCustomRead (const TamlCustomNodes &customNodes)
 Called during the reading of the object to allow custom properties to be read.
void updateFadeColor (ColorF &color, FadeToColor &target, const F32 elapsedTime)
F32 processEffect (const F32 current, const F32 target, const F32 rate)
S32 copyCircleCollisionShapeTo (SceneObject *pSceneObject, const b2FixtureDef &fixtureDef) const
S32 copyPolygonCollisionShapeTo (SceneObject *pSceneObject, const b2FixtureDef &fixtureDef) const
S32 copyChainCollisionShapeTo (SceneObject *pSceneObject, const b2FixtureDef &fixtureDef) const
S32 copyEdgeCollisionShapeTo (SceneObject *pSceneObject, const b2FixtureDef &fixtureDef) const
Protected Member Functions inherited from BehaviorComponent
virtual const char * _callMethod (U32 argc, const char *argv[], bool callThis=true)
Protected Member Functions inherited from SimComponent
SimComponent_getOwner ()
VectorPtr< SimComponent * > & lockComponentList ()
void unlockComponentList ()
virtual bool onComponentRegister (SimComponent *owner)
virtual void onComponentUnRegister ()
Protected Member Functions inherited from SimObject
virtual void onTamlPreWrite (void)
 Taml callbacks.
virtual void onTamlPostWrite (void)
 Called after Taml has finished writing the object.
virtual void onTamlPreRead (void)
 Called prior to Taml reading the object.
virtual void onTamlPostRead (const TamlCustomNodes &customNodes)
virtual void onTamlAddParent (SimObject *pParentObject)
 Called after Taml has finished reading the object and has added the object to any parent.
void linkNamespaces ()
void unlinkNamespaces ()
virtual SimObjectallocClone ()
 A registered but empty object of this object's class.
void cloneInto (SimObject *clone)
virtual void deepCloneChildren (SimObject *clone)
Protected Member Functions inherited from ConsoleObject
 ConsoleObject ()
 ConsoleObject (const ConsoleObject &)
Protected Member Functions inherited from ImageFrameProvider
virtual void onAssetRefreshed (AssetPtrBase *pAssetPtrBase)
static SimObject::NotifymNotifyFreeList = NULL

Constructor & Destructor Documentation

◆ Sprite()

Sprite ( )

◆ ~Sprite()

~Sprite ( )
virtual

Member Function Documentation

◆ checkFadeComplete()

void checkFadeComplete ( )
virtual

Reimplemented from SceneObject.

◆ copyTo()

void copyTo ( SimObject * object)
virtual

Render flipping.

Reimplemented from SpriteBase.

◆ DECLARE_CONOBJECT()

DECLARE_CONOBJECT ( Sprite )

Declare Console Object.

◆ fadeToComplex()

bool fadeToComplex ( const S8 cornerID,
const ColorF & targetColor,
const F32 deltaRed,
const F32 deltaGreen,
const F32 deltaBlue,
const F32 deltaAlpha )

◆ getComplexColor()

const ColorF & getComplexColor ( const S8 cornerID)

◆ getCornerEnum()

Corner getCornerEnum ( const char * label)
static

◆ getFlipX()

bool getFlipX ( void ) const
inline

◆ getFlipY()

bool getFlipY ( void ) const
inline

◆ getUseComplexColor()

bool getUseComplexColor ( void ) const
inline

◆ initPersistFields()

void initPersistFields ( )
static

Render flipping.

◆ sceneRender()

void sceneRender ( const SceneRenderState * pSceneRenderState,
const SceneRenderRequest * pSceneRenderRequest,
BatchRender * pBatchRenderer )
virtual

Reimplemented from SceneObject.

◆ setComplexColor()

void setComplexColor ( const ColorF & blendColor0,
const ColorF & blendColor1,
const ColorF & blendColor2,
const ColorF & blendColor3 )
inline

◆ setFlip()

void setFlip ( const bool flipX,
const bool flipY )
inline

Render flipping.

◆ setFlipX()

void setFlipX ( const bool flipX)
inline

◆ setFlipY()

void setFlipY ( const bool flipY)
inline

◆ setUseComplexColor()

void setUseComplexColor ( const bool complexColor)
inline

◆ updateBlendColor()

void updateBlendColor ( const F32 elapsedTime)
virtual

Reimplemented from SceneObject.

◆ writeFlipX()

bool writeFlipX ( void * obj,
StringTableEntry pFieldName )
inlinestaticprotected

◆ writeFlipY()

bool writeFlipY ( void * obj,
StringTableEntry pFieldName )
inlinestaticprotected

◆ writeUseComplexColor()

bool writeUseComplexColor ( void * obj,
StringTableEntry pFieldName )
inlinestaticprotected

Member Data Documentation

◆ mComplexColor0

ColorF mComplexColor0
protected

◆ mComplexColor1

ColorF mComplexColor1
protected

◆ mComplexColor2

ColorF mComplexColor2
protected

◆ mComplexColor3

ColorF mComplexColor3
protected

◆ mUseComplexColor

bool mUseComplexColor
protected

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