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

Public Types

typedef GS::type type
 
- 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

 TweenT (const GS &gs)
 
void _update (Actor &actor, const UpdateState &us)
 
void _start (Actor &actor)
 
void _done (Actor &actor, const UpdateState &us)
 
GS & getGS ()
 
- 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 ()
 
const EventCallback & getDoneCallback () const
 
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 detachWhenDone (bool detach=true)
 
virtual void complete (timeMS deltaTime=TWEEN_COMPLETE_DT)
 
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
 
const EventCallback & getListenerByIndex (int index) 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 ()
 

Additional Inherited Members

- 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 ()
 
- 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 _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
 

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