|
virtual void | setWorldSize (long width, long height, bool repeatingX=false, bool repeatingY=false) |
|
virtual Rect | getWorldSize () |
|
virtual Rect | getWorldBounds () |
|
virtual void | defineTileSet (int tileWidth, int tileHeight, Image *tiles, bool hasTransparency=true, bool flipTiles=false) |
|
virtual void | loadMapData (uint8 *dataPtr, long mapWidth=0, long mapHeight=0, long dstX=0, long dstY=0) |
|
virtual uint8 * | getMapData (long mapWidth=0, long mapHeight=0, long srcX=0, long srcY=0) |
|
virtual Image * | getTileSetImage () |
|
virtual Point | getTileSize () const |
|
virtual uint8 | getTileTypeAt (long x, long y, TFacing *outFacing=0) const |
|
virtual void | setTileTypeAt (long x, long y, uint8 t, TFacing facing=facing_Ignore) |
|
virtual uint32 | checkCollision (Sprite *movingSprite, uint8 alphaThreshold=128, bool shortCircuit=true, float *outCollisionMag=0) const |
|
void | setSerializationFlags (uint32 flags) |
|
Port * | getSpritePort () const |
|
virtual void | setSpritePort (Port *port) |
|
virtual void | startAnimations () |
|
virtual void | stopAnimations () |
|
virtual void | hide () |
|
virtual void | show () |
|
virtual bool | isHidden () |
|
virtual void | fadeIn (ms_delta msDuration, EasingFunc easing=linearTween) |
|
virtual void | fadeOut (ms_delta msDuration, EasingFunc easing=linearTween) |
|
virtual void | moveBehind (SpriteLayer *layer) |
|
virtual void | moveInFrontOf (SpriteLayer *layer) |
|
void | moveToFront () |
|
void | moveToBack () |
|
int | getZOrder () |
|
virtual void | moveWith (SpriteLayer *layer, float moveRatio=1.0f, float zoomRatio=1.0f) |
|
void | setOrigin (const Point &origin) |
|
Point | getOrigin () const |
|
void | setAutoCenter (bool autoCenter=true) |
|
void | setFixedMoveAxis (bool fixedAxis=true) |
|
virtual void | setZoom (float zoomLevel) |
|
float | getZoom () const |
|
virtual void | zoomTo (float zoomLevel, ms_delta msDuration, EasingFunc easing=easeInOutQuad, Rect keepInRect=Rect(0, 0), const Point *centerOn=0) |
|
void | zoom (float deltaZoomLevel, ms_delta msDuration, EasingFunc easing=easeInOutQuad, Rect keepInRect=Rect(0, 0), const Point *centerOn=0) |
|
virtual Sprite * | findSprite (long id) |
|
virtual Sprite * | getNthSprite (int index) |
|
virtual int | getSpriteZOrder (Sprite *sprite) |
|
virtual bool | isSpriteBehind (Sprite *sprite, Sprite *otherSprite) |
|
virtual bool | hasSprite (Sprite *sprite) |
|
virtual void | addSprite (Sprite *newSprite) |
|
virtual void | addSpriteInFrontOf (Sprite *newSprite, Sprite *targetSprite) |
|
virtual void | removeSprite (Sprite *oldSprite) |
|
virtual void | removeAllSprites () |
|
virtual void | enableCollisions () |
|
virtual void | disableCollisions () |
|
virtual void | enableCollisionsWithLayer (SpriteLayer *otherLayer) |
|
virtual void | disableCollisionsWithLayer (SpriteLayer *otherLayer) |
|
virtual Sprite * | createSprite () |
|
virtual Sprite * | cloneSprite (const Sprite *originalSprite) |
|
virtual Point | layerToPort (const Point &p) const |
|
virtual Offset | layerToPort (const Offset &p) const |
|
virtual Vector | layerToPort (const Vector &p) const |
|
virtual RotatedRect | layerToPort (const Rect &r) const |
|
virtual RotatedRect | layerToPort (const RotatedRect &r) const |
|
virtual Quad | layerToPort (const Quad &q) const |
|
virtual Point | portToLayer (const Point &p) const |
|
virtual Offset | portToLayer (const Offset &p) const |
|
virtual Vector | portToLayer (const Vector &p) const |
|
virtual RotatedRect | portToLayer (const Rect &r) const |
|
virtual RotatedRect | portToLayer (const RotatedRect &r) const |
|
virtual Quad | portToLayer (const Quad &q) const |
|
virtual void | addHandler (IEventHandler *inHandler, long inType=all_events) |
| add a new handler for some event type, or for all events if no type specified
|
|
virtual void | removeHandler (IEventHandler *inHandler, long inType=all_events) |
| Remove a handler for some event type, or for all events if no type specified.
|
|
virtual void | clear (bool doRelease=true) |
| remove all handlers
|
|
virtual void | blockEvent (long inEventType) |
| temporarily ignore all events of a particular type, just drop them on the floor
|
|
virtual void | unblockEvent (long inEventType) |
| stop ignoring events of a particular type, no recovery of previously ignored events
|
|
| EventEmitter () |
| constructor for new event emitter
|
|
virtual bool | postEvent (long inEventType, void *inEventData, EventEmitter *fromEmitter=0) |
| post an event for immediate handling locally, or relay it to the EventManger
|
|
| SERIALIZABLE_TAG (CLASSTAG_ANIMATED) |
|
| SERIALIZABLE_METHODS () |
|
Rect | getBoundingBox () |
|
RotatedRect | getRotatedBounds () |
|
Animated & | setLocation (const Point &loc) |
|
Point | getLocation () |
|
Animated & | moveTo (float x, float y) |
|
Animated & | moveTo (const Point &where) |
|
Animated & | move (float deltaX, float deltaY) |
|
Animated & | move (const Offset &delta) |
|
virtual void | moveTo (const Point &loc, ms_delta msDuration, EasingFunc easing=easeInOutQuad) |
|
void | moveTo (float x, float y, ms_delta msDuration, EasingFunc easing=easeInOutQuad) |
|
void | move (float deltaX, float deltaY, ms_delta msDuration, EasingFunc easing=easeInOutQuad) |
|
void | move (const Offset &delta, ms_delta msDuration, EasingFunc easing=easeInOutQuad) |
|
virtual Animated & | setVelocity (const Vector &deltaPerSec) |
|
virtual Vector | getVelocity () |
|
Animated & | setSpeed (float speed) |
|
float | getSpeed () |
|
Animated & | setVelocityInRadians (float speed, float direction) |
|
float | getMovementDirectionInRadians () |
|
Animated & | setVelocity (float deltaXPerSec, float deltaYPerSec) |
|
Animated & | stopMoving () |
|
virtual void | accelerateTo (float speed, ms_delta msDuration, EasingFunc easing=linearTween) |
|
void | accelerate (float deltaSpeed, ms_delta msDuration, EasingFunc easing=linearTween) |
|
Animated & | setSize (float width, float height) |
|
Animated & | setWidth (float width) |
|
float | getWidth () |
|
Animated & | setHeight (float height) |
|
float | getHeight () |
|
Animated & | grow (float factor) |
|
Animated & | stretch (float widthFactor, float heightFactor) |
|
Animated & | startGrowing (float amountPerSecond) |
|
Animated & | stopGrowing () |
|
Animated & | startStretching (float widthPerSecond, float heightPerSecond) |
|
Animated & | stopStretching () |
|
virtual void | resizeTo (float width, float height, ms_delta msDuration, EasingFunc easing=easeInOutQuad) |
|
void | resize (float deltaWidth, float deltaHeight, ms_delta msDuration, EasingFunc easing=easeInOutQuad) |
|
void | grow (float factor, ms_delta msDuration, EasingFunc easing=easeInOutQuad) |
|
void | stretch (float widthFactor, float weightFactor, ms_delta msDuration, EasingFunc easing=easeInOutQuad) |
|
Animated & | setRotation (float radiansRotation) |
|
float | getRotation () |
|
Animated & | setCenterOffset (const Offset &offset) |
|
Offset | getCenterOffset () |
|
Animated & | rotateTo (float radiansRotation) |
|
Animated & | rotate (float radians) |
|
Animated & | setSpin (float radiansPerSecond) |
|
float | getSpin () |
|
Animated & | stopSpinning () |
|
virtual void | rotateTo (float radiansRotation, ms_delta msDuration, EasingFunc easing=easeInOutQuad) |
|
void | rotate (float radians, ms_delta msDuration, EasingFunc easing=easeInOutQuad) |
|
void | changeCenterTo (float xOffset, float yOffset, ms_delta msDuration, EasingFunc easing=easeInOutQuad) |
|
void | changeCenterTo (const Offset &offset, ms_delta msDuration, EasingFunc easing=easeInOutQuad) |
|
void | changeCenter (float deltaXOffset, float deltaYOffset, ms_delta msDuration, EasingFunc easing=easeInOutQuad) |
|
void | changeCenter (const Offset &offset, ms_delta msDuration, EasingFunc easing=easeInOutQuad) |
|
Animated * | wait (ms_delta msDuration) |
|
virtual Animated & | setMass (float mass) |
|
float | getMass () |
|
virtual Animated & | setFriction (float frictionCoefficient) |
|
Animated & | setMoveFriction (float frictionCoefficient) |
|
Animated & | setSpinFriction (float frictionCoefficient) |
|
Animated & | setSizeFriction (float frictionCoefficient) |
|
float | getMoveFriction () |
|
float | getSpinFriction () |
|
float | getSizeFriction () |
|
virtual void | applyForce (const Vector &force, ms_delta msDuration=duration_Instantaneous) |
|
virtual void | applyForce (float forceX, float forceY, ms_delta msDuration=duration_Instantaneous) |
|
virtual void | applyTorque (float forceSpin, ms_delta msDuration=duration_Instantaneous) |
|
virtual void | stopAllForces () |
|
virtual void | addAnimationHelper (IAnimationHelper *helper) |
|
virtual void | removeAnimationHelper (IAnimationHelper *helper) |
|
virtual void | clearAnimationHelpers () |
|
virtual uint32 | getSerializedSize (ISerializer *serializer) const =0 |
| Get number of bytes needed to hold serialized state.
|
|
virtual void | serialize (ISerializer *serializer) const =0 |
| Write self out to a serializer.
|
|
virtual void | deserialize (IDeserializer *deserializer)=0 |
| Read self from a deserializer.
|
|
virtual uint32 | getMyClassTag () const =0 |
| Get a tag value that uniquely represents this class.
|
|
| ISerializable () |
|
virtual | ~ISerializable () |
|
virtual void | addRef () const throw () |
|
virtual void | release () const throw () |
|
virtual | ~Serializable () |
|