From dfe499248f1b1236487156b28e4a535d7963fe35 Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Wed, 27 Aug 2008 15:48:50 +0000 Subject: major commit. game client restructure. not complete, loads of stuff not working, but the structure is there --- src/game/client/animstate.hpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/game/client/animstate.hpp (limited to 'src/game/client/animstate.hpp') diff --git a/src/game/client/animstate.hpp b/src/game/client/animstate.hpp new file mode 100644 index 00000000..4b84dd66 --- /dev/null +++ b/src/game/client/animstate.hpp @@ -0,0 +1,24 @@ +#ifndef GAME_CLIENT_ANIMATION_H +#define GAME_CLIENT_ANIMATION_H + +class ANIMSTATE +{ +public: + ANIM_KEYFRAME body; + ANIM_KEYFRAME back_foot; + ANIM_KEYFRAME front_foot; + ANIM_KEYFRAME attach; + + void set(ANIMATION *anim, float time); + void add(ANIMATION *added, float time, float amount); + + static ANIMSTATE *get_idle(); +}; + +//void anim_seq_eval(ANIM_SEQUENCE *seq, float time, ANIM_KEYFRAME *frame); +//void anim_eval(ANIMATION *anim, float time, ANIM_STATE *state); +//void anim_add_keyframe(ANIM_KEYFRAME *seq, ANIM_KEYFRAME *added, float amount); +//void anim_add(ANIM_STATE *state, ANIM_STATE *added, float amount); +//void anim_eval_add(ANIM_STATE *state, ANIMATION *anim, float time, float amount); + +#endif -- cgit 1.4.1