Oxygine  1
2g game engine
Public Types | Public Member Functions | Static Public Member Functions | List of all members
oxygine::TweenQueue Class Reference
Inheritance diagram for oxygine::TweenQueue:
oxygine::Tween oxygine::EventDispatcher oxygine::intrusive_list_item< spTween > oxygine::Object oxygine::ref_counter oxygine::ObjectBase oxygine::PoolObject

Public Types

enum  { EVENT_LOOP_BEGIN = sysEventID('T', 'L', 'B') }
 
enum  { EVENT_LOOP_END = sysEventID('T', 'L', 'E') }
 
- Public Types inherited from oxygine::Tween
enum  EASE {
  ease_unknown, ease_linear, ease_inQuad, ease_outQuad,
  ease_inOutQuad, ease_outInQuad, ease_inCubic, ease_outCubic,
  ease_inOutCubic, ease_outInCubic, ease_inQuart, ease_outQuart,
  ease_inOutQuart, ease_outInQuart, ease_inQuint, ease_outQuint,
  ease_inOutQuint, ease_outInQuint, ease_inSin, ease_outSin,
  ease_inOutSin, ease_outInSin, ease_inExpo, ease_outExpo,
  ease_inOutExpo, ease_outInExpo, ease_inCirc, ease_outCirc,
  ease_inOutCirc, ease_outInCirc, ease_inBack, ease_outBack,
  ease_inOutBack, ease_outInBack, ease_inBounce, ease_outBounce,
  ease_inOutBounce, ease_outInBounce, ease_count
}
 
typedef float(* easeHandler) (EASE ease, float v)
 
- Public Types inherited from oxygine::ObjectBase
typedef std::vector< ObjectBase * > __createdObjects
 

Public Member Functions

spTween add (spTween t)
 
template<class GS >
spTween add (const GS &gs, timeMS duration, int loops=1, bool twoSides=false, timeMS delay=0, Tween::EASE ease=Tween::ease_linear)
 
void complete (timeMS deltaTime)
 
- Public Member Functions inherited from oxygine::Tween
void init (timeMS duration, int loops=1, bool twoSides=false, timeMS delay=0, EASE ease=Tween::ease_linear)
 
void init2 (const TweenOptions &opt)
 
void reset ()
 
int getLoops () const
 
timeMS getDuration () const
 
timeMS getElapsed () const
 
EASE getEase () const
 
EASE getGlobalEase () const
 
timeMS getDelay () const
 
ActorgetClient () const
 
float getPercent () const
 
spObject getDataObject () const
 
spTween & getNextSibling ()
 
spTween & getPrevSibling ()
 
bool isStarted () const
 
bool isDone () const
 
void setDataObject (spObject data)
 
void addDoneCallback (const EventCallback &cb)
 
void setEase (EASE ease)
 
void setGlobalEase (EASE ease)
 
void setDelay (timeMS delay)
 
void setLoops (int loops)
 
void setDuration (timeMS duration)
 
void setClient (Actor *client)
 
void setTwoSides (bool ts)
 
void setDetachActor (bool detach)
 
void remove ()
 
void start (Actor &actor)
 
void update (Actor &actor, const UpdateState &us)
 
void setDoneCallback (const EventCallback &cb)
 
- Public Member Functions inherited from oxygine::EventDispatcher
 EventDispatcher (const EventDispatcher &ed)
 
int addEventListener (eventType, const EventCallback &)
 
void removeEventListener (eventType, const EventCallback &)
 
void removeEventListener (int id)
 
bool hasEventListeners (void *CallbackThis)
 
bool hasEventListeners (eventType, const EventCallback &)
 
void removeEventListeners (void *CallbackThis)
 
void removeAllEventListeners ()
 
virtual void dispatchEvent (Event *event)
 
int getListenersCount () const
 
int getLastListenerID () const
 
- Public Member Functions inherited from oxygine::Object
 Object (const Object &src)
 
 Object (bool assignUniqueID=true)
 
- Public Member Functions inherited from oxygine::ref_counter
void addRef ()
 
void releaseRef ()
 
- Public Member Functions inherited from oxygine::ObjectBase
 ObjectBase (const ObjectBase &src)
 
 ObjectBase (bool assignID=true)
 
const std::string & getName () const
 
const void * getUserData () const
 
int getObjectID () const
 
bool isName (const std::string &name) const
 
bool isName (const char *name) const
 
void setName (const std::string &name)
 
void setUserData (const void *data)
 
void dumpObject () const
 
void __removeFromDebugList ()
 
- Public Member Functions inherited from oxygine::intrusive_list_item< spTween >
intrusive_list< spTween > * getParentList ()
 

Static Public Member Functions

static spTweenQueue create (spTween t1)
 
static spTweenQueue create (spTween t1, spTween t2)
 
static spTweenQueue create (spTween t1, spTween t2, spTween t3)
 
static spTweenQueue create (spTween t1, spTween t2, spTween t3, spTween t4)
 
static spTweenQueue create (spTween t1, spTween t2, spTween t3, spTween t4, spTween t5)
 
static spTweenQueue create (spTween t1, spTween t2, spTween t3, spTween t4, spTween t5, spTween t6)
 
static spTweenQueue create (spTween t1, spTween t2, spTween t3, spTween t4, spTween t5, spTween t6, spTween t7)
 
- Static Public Member Functions inherited from oxygine::Tween
static float calcEase (EASE ease, float v)
 
static void setCustomEaseHandler (easeHandler)
 
- Static Public Member Functions inherited from oxygine::ObjectBase
static void dumpCreatedObjects ()
 
static void showAssertInCtor (int id)
 
static void showAssertInDtor (int id)
 
static __createdObjects & __getCreatedObjects ()
 
static void __startTracingLeaks ()
 
static void __stopTracingLeaks ()
 

Additional Inherited Members

- Public Attributes inherited from oxygine::ref_counter
int _ref_counter
 
- Protected Types inherited from oxygine::Tween
enum  status {
  status_not_started, status_delayed, status_started, status_done,
  status_remove
}
 
- Protected Types inherited from oxygine::EventDispatcher
typedef std::vector< listenerlisteners
 
- Protected Member Functions inherited from oxygine::Tween
void done (Actor &, const UpdateState &us)
 
virtual void _done (Actor &actor, const UpdateState &us)
 
virtual void _loopDone (Actor &actor, const UpdateState &us)
 
virtual float _calcEase (float v)
 
- Protected Member Functions inherited from oxygine::Object
void __doCheck ()
 
- Protected Member Functions inherited from oxygine::ObjectBase
void __generateID ()
 
std::string * __getName () const
 
void __freeName () const
 
- Protected Member Functions inherited from oxygine::intrusive_list_item< spTween >
spTween & getNextSibling ()
 
spTween & getPrevSibling ()
 
- Static Protected Member Functions inherited from oxygine::ObjectBase
static void __addToDebugList (ObjectBase *base)
 
static void __removeFromDebugList (ObjectBase *base)
 
- Protected Attributes inherited from oxygine::Tween
status _status
 
timeMS _elapsed
 
timeMS _duration
 
timeMS _delay
 
int _loops
 
int _loopsDone
 
EASE _ease
 
EASE _globalEase
 
bool _twoSides
 
float _percent
 
bool _detach
 
EventCallback _cbDone
 
Actor_client
 
spObject _data
 
- Protected Attributes inherited from oxygine::EventDispatcher
int _lastID
 
listeners * _listeners
 
- Protected Attributes inherited from oxygine::ObjectBase
std::string __name
 
int __id
 
const void * __userData
 
- Protected Attributes inherited from oxygine::intrusive_list_item< spTween >
spTween _prev
 
spTween _next
 
intrusive_list< spTween > * _list
 
- Static Protected Attributes inherited from oxygine::ObjectBase
static int _lastID
 
static int _assertCtorID
 
static int _assertDtorID
 

Member Function Documentation

§ complete()

void oxygine::TweenQueue::complete ( timeMS  deltaTime)
virtual

immediately completes tween, calls doneCallback and mark tween as completed and removes self from Actor. If tween has infinity loops (=-1) then do nothing

Reimplemented from oxygine::Tween.

§ create() [1/7]

static spTweenQueue oxygine::TweenQueue::create ( spTween  t1)
static

short syntax for easy tween queue creation

§ create() [2/7]

static spTweenQueue oxygine::TweenQueue::create ( spTween  t1,
spTween  t2 
)
static

short syntax for easy tween queue creation

§ create() [3/7]

static spTweenQueue oxygine::TweenQueue::create ( spTween  t1,
spTween  t2,
spTween  t3 
)
static

short syntax for easy tween queue creation

§ create() [4/7]

static spTweenQueue oxygine::TweenQueue::create ( spTween  t1,
spTween  t2,
spTween  t3,
spTween  t4 
)
static

short syntax for easy tween queue creation

§ create() [5/7]

static spTweenQueue oxygine::TweenQueue::create ( spTween  t1,
spTween  t2,
spTween  t3,
spTween  t4,
spTween  t5 
)
static

short syntax for easy tween queue creation

§ create() [6/7]

static spTweenQueue oxygine::TweenQueue::create ( spTween  t1,
spTween  t2,
spTween  t3,
spTween  t4,
spTween  t5,
spTween  t6 
)
static

short syntax for easy tween queue creation

§ create() [7/7]

static spTweenQueue oxygine::TweenQueue::create ( spTween  t1,
spTween  t2,
spTween  t3,
spTween  t4,
spTween  t5,
spTween  t6,
spTween  t7 
)
static

short syntax for easy tween queue creation


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