29#ifndef _CEGUIAnimation_h_
30#define _CEGUIAnimation_h_
32#include "CEGUI/String.h"
38# pragma warning(disable : 4251)
154 const String& interpolator);
288 CEGUI_VECTOR_ALLOC(
Affector*)> AffectorList;
290 AffectorList d_affectors;
298 SubscriptionMap d_autoSubscriptions;
Defines an 'affector' class.
Definition Affector.h:56
Definition MemoryAllocatedObject.h:110
Defines an 'animation instance' class.
Definition AnimationInstance.h:75
Defines an 'animation' class.
Definition Animation.h:65
Animation(const String &name)
void apply(AnimationInstance *instance)
Applies this Animation definition using information from given AnimationInstance.
void defineAutoSubscription(const String &eventName, const String &action)
This defined a new auto subscription.
void destroyAffector(Affector *affector)
Destroys given Affector.
ReplayMode getReplayMode() const
Retrieves the replay mode of this animation.
Affector * createAffector(const String &targetProperty, const String &interpolator)
Creates a new Affector.
const String & getName() const
Retrieves name of this Animation definition.
Affector * createAffector(void)
Creates a new Affector.
~Animation(void)
destructor, this destroys all affectors defined inside this animation
ReplayMode
enumerates possible replay modes
Definition Animation.h:69
@ RM_Loop
loops the animation infinitely
Definition Animation.h:73
@ RM_Once
plays the animation just once, then stops
Definition Animation.h:71
void undefineAllAutoSubscriptions()
This undefines all previously defined auto subscriptions.
bool getAutoStart() const
Retrieves auto start.
void autoUnsubscribe(AnimationInstance *instance)
Unsubscribes all auto subscriptions with information from given animation instance.
void savePropertyValues(AnimationInstance *instance)
Internal method, causes all properties that are used by this animation and it's affectors to be saved...
void setReplayMode(ReplayMode mode)
Sets the replay mode of this animation.
void setAutoStart(bool autoStart)
Sets whether this animation auto starts or not.
void undefineAutoSubscription(const String &eventName, const String &action)
This undefines previously defined auto subscription.
void writeXMLToStream(XMLSerializer &xml_stream, const String &name_override="") const
Writes an xml representation of this Animation definition to out_stream.
void autoSubscribe(AnimationInstance *instance)
Subscribes all auto subscriptions with information from given animation instance.
float getDuration() const
Retrieves the duration of this animation.
Affector * getAffectorAtIdx(size_t index) const
Retrieves the Affector at given index.
void setDuration(float duration)
Sets the duration of this animation.
size_t getNumAffectors(void) const
Retrieves number of Affectors defined in this Animation.
String class used within the GUI system.
Definition String.h:64
Class used to create XML Document.
Definition XMLSerializer.h:87
Main namespace for Crazy Eddie's GUI Library.
Definition arch_overview.dox:1
Functor that can be used as comparator in a std::map with String keys. It's faster than using the def...
Definition String.h:5580