8 #ifndef rag_DisplayMovieClip_h
9 #define rag_DisplayMovieClip_h
11 #include "DisplayObject.h"
55 void gotoAndPlay (
const std::string& frame,
bool loop,
bool forceFirstFrame =
false);
79 void replace(
const std::string& name,
const std::string& library,
const std::string& replacement);
92 void setFrame(
int frame);
95 std::vector<Frame> frames;
98 float elapsedFrameTime;
102 std::string animLoop;
std::string fileName
MovieClip filename.
Definition: MovieClip.h:88
void nextFrame()
Sends the playhead to the next frame and stops it.
Definition: MovieClip.cpp:162
void replace(const std::string &name, const std::string &library, const std::string &replacement)
Replace an instance of a Displayobject named "name" with a library item called "replacement".
Definition: MovieClip.cpp:204
Allows to use imported animations created by Flash CS tool.
Definition: MovieClip.h:16
void setFPS(int fps)
Sets the speed in frames per second the MovieClip should use.
Definition: MovieClip.cpp:70
void gotoAndStop(int frame)
Goes to a specific frame, then stops there.
Definition: MovieClip.cpp:115
void prevFrame()
Sends the playhead to the previous frame and stops it.
Definition: MovieClip.cpp:167
void stop()
Stops the playhead in the movie clip.
Definition: MovieClip.cpp:81
void play()
Simple playback.
Definition: MovieClip.cpp:75
Internal of MovieClip, represents a single frame.
Definition: MovieClip.h:22
virtual void logicUpdate() override
Display object update.
Definition: MovieClip.cpp:38
Core object used to display things in screen.
Definition: DisplayObject.h:23
bool isPlaying()
Returns true if is currently playing.
Definition: MovieClip.cpp:65
int getTotalFrames()
Returns the total number of frames in the MovieClip.
Definition: MovieClip.cpp:177
Frame * getCurrentFrameNode()
Returns the current frame internals.
Definition: MovieClip.cpp:182
std::string getCurrentFrameLabel()
Returns the label in the current frame. It may be empty.
Definition: MovieClip.cpp:197
int getCurrentFrame()
Specifies the number of the frame in which the playhead is located in the timeline of the MovieClip i...
Definition: MovieClip.cpp:187
void gotoAndPlay(int frame)
Goes to a specific frame, then starts playing from there.
Definition: MovieClip.cpp:86
MovieClip(std::vector< Frame > frames)
Definition: MovieClip.cpp:11
std::vector< Frame > & getFrames()
Returns all Frame instances.
Definition: MovieClip.cpp:228