15 #ifndef ANIMCONTROLCOLLECTION_H 16 #define ANIMCONTROLCOLLECTION_H 18 #include "pandabase.h" 20 #include "animControl.h" 42 void store_anim(
AnimControl *control,
const string &name);
44 bool unbind_anim(
const string &name);
46 int get_num_anims()
const;
48 string get_anim_name(
int n)
const;
49 MAKE_SEQ(get_anims, get_num_anims, get_anim);
50 MAKE_SEQ(get_anim_names, get_num_anims, get_anim_name);
57 INLINE
bool play(
const string &anim_name);
58 INLINE
bool play(
const string &anim_name,
int from,
int to);
59 INLINE
bool loop(
const string &anim_name,
bool restart);
60 INLINE
bool loop(
const string &anim_name,
bool restart,
int from,
int to);
61 INLINE
bool stop(
const string &anim_name);
62 INLINE
bool pose(
const string &anim_name,
int frame);
66 void play_all(
int from,
int to);
67 void loop_all(
bool restart);
68 void loop_all(
bool restart,
int from,
int to);
70 void pose_all(
int frame);
72 INLINE
int get_frame(
const string &anim_name)
const;
73 INLINE
int get_frame()
const;
75 INLINE
int get_num_frames(
const string &anim_name)
const;
76 INLINE
int get_num_frames()
const;
78 INLINE
bool is_playing(
const string &anim_name)
const;
79 INLINE
bool is_playing()
const;
81 string which_anim_playing()
const;
83 void output(ostream &out)
const;
84 void write(ostream &out)
const;
96 ControlsByName _controls_by_name;
103 #include "animControlCollection.I"
This is a named collection of AnimControl pointers.
Controls the timing of a character animation.