1 #ifndef __CAL_TYPES_H__
2 #define __CAL_TYPES_H__
3 
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7 
8 typedef enum{
9 	cycle=0,
10  	action=1
11 }  cal_animation_type;
12 
13 struct cal_anim
14 {
15 	int anim_index;
16 	cal_animation_type kind;
17 	float duration;
18 	float duration_scale;
19 #ifdef NEW_SOUND
20 	int sound;
21 	float sound_scale;
22 #endif	//NEW_SOUND
23 };
24 
25 enum {
26 	cal_actor_walk_frame = 0,
27 	cal_actor_run_frame = 1,
28 	cal_actor_die1_frame = 2,
29 	cal_actor_die2_frame = 3,
30 	cal_actor_pain1_frame = 4,
31 	cal_actor_pain2_frame = 5,
32 	cal_actor_pick_frame = 6,
33 	cal_actor_drop_frame = 7,
34 	cal_actor_idle1_frame = 8,
35 	cal_actor_idle2_frame = 9,
36 	cal_actor_idle_sit_frame = 10,
37 	cal_actor_harvest_frame = 11,
38 	cal_actor_attack_cast_frame = 12,
39 	cal_actor_attack_ranged_frame = 13,
40 	cal_actor_sit_down_frame = 14,
41 	cal_actor_stand_up_frame = 15,
42 	cal_actor_in_combat_frame = 16,
43 	cal_actor_out_combat_frame = 17,
44 	cal_actor_combat_idle_frame = 18,
45 	cal_actor_attack_up_1_frame = 19,
46 	cal_actor_attack_up_2_frame = 20,
47 	cal_actor_attack_up_3_frame = 21,
48 	cal_actor_attack_up_4_frame = 22,
49 	cal_actor_attack_up_5_frame = 23,
50 	cal_actor_attack_up_6_frame = 24,
51 	cal_actor_attack_up_7_frame = 25,
52 	cal_actor_attack_up_8_frame = 26,
53 	cal_actor_attack_up_9_frame = 27,
54 	cal_actor_attack_up_10_frame = 28,
55 	cal_actor_attack_down_1_frame = 29,
56 	cal_actor_attack_down_2_frame = 30,
57 	cal_actor_attack_down_3_frame = 31,
58 	cal_actor_attack_down_4_frame = 32,
59 	cal_actor_attack_down_5_frame = 33,
60 	cal_actor_attack_down_6_frame = 34,
61 	cal_actor_attack_down_7_frame = 35,
62 	cal_actor_attack_down_8_frame = 36,
63 	cal_actor_attack_down_9_frame = 37,
64 	cal_actor_attack_down_10_frame = 38,
65 	cal_actor_in_combat_held_frame = 39,
66 	cal_actor_out_combat_held_frame = 40,
67 	cal_actor_combat_idle_held_frame = 41,
68 	cal_actor_attack_up_1_held_frame = 42,
69 	cal_actor_attack_up_2_held_frame = 43,
70 	cal_actor_attack_up_3_held_frame = 44,
71 	cal_actor_attack_up_4_held_frame = 45,
72 	cal_actor_attack_up_5_held_frame = 46,
73 	cal_actor_attack_up_6_held_frame = 47,
74 	cal_actor_attack_up_7_held_frame = 48,
75 	cal_actor_attack_up_8_held_frame = 49,
76 	cal_actor_attack_up_9_held_frame = 50,
77 	cal_actor_attack_up_10_held_frame = 51,
78 	cal_actor_attack_down_1_held_frame = 52,
79 	cal_actor_attack_down_2_held_frame = 53,
80 	cal_actor_attack_down_3_held_frame = 54,
81 	cal_actor_attack_down_4_held_frame = 55,
82 	cal_actor_attack_down_5_held_frame = 56,
83 	cal_actor_attack_down_6_held_frame = 57,
84 	cal_actor_attack_down_7_held_frame = 58,
85 	cal_actor_attack_down_8_held_frame = 59,
86 	cal_actor_attack_down_9_held_frame = 60,
87 	cal_actor_attack_down_10_held_frame = 61,
88 	cal_actor_turn_left_frame=62,
89 	cal_actor_turn_right_frame=63,
90 	cal_actor_in_combat_held_unarmed_frame = 64,
91 	cal_actor_out_combat_held_unarmed_frame = 65,
92 	cal_actor_combat_idle_held_unarmed_frame = 66,
93 		NUM_ACTOR_FRAMES = 67
94 
95 };
96 
97 enum {
98 	cal_weapon_attack_up_1_frame = 0,
99 	cal_weapon_attack_up_2_frame = 1,
100 	cal_weapon_attack_up_3_frame = 2,
101 	cal_weapon_attack_up_4_frame = 3,
102 	cal_weapon_attack_up_5_frame = 4,
103 	cal_weapon_attack_up_6_frame = 5,
104 	cal_weapon_attack_up_7_frame = 6,
105 	cal_weapon_attack_up_8_frame = 7,
106 	cal_weapon_attack_up_9_frame = 8,
107 	cal_weapon_attack_up_10_frame = 9,
108 	cal_weapon_attack_down_1_frame = 10,
109 	cal_weapon_attack_down_2_frame = 11,
110 	cal_weapon_attack_down_3_frame = 12,
111 	cal_weapon_attack_down_4_frame = 13,
112 	cal_weapon_attack_down_5_frame = 14,
113 	cal_weapon_attack_down_6_frame = 15,
114 	cal_weapon_attack_down_7_frame = 16,
115 	cal_weapon_attack_down_8_frame = 17,
116 	cal_weapon_attack_down_9_frame = 18,
117 	cal_weapon_attack_down_10_frame = 19,
118 	cal_weapon_range_in_frame = 20,
119 	cal_weapon_range_out_frame = 21,
120 	cal_weapon_range_idle_frame = 22,
121 	cal_weapon_range_fire_frame = 23,
122 	cal_weapon_range_fire_out_frame = 24,
123 	//frames for held actors
124 	cal_weapon_range_in_held_frame = 25,
125 	cal_weapon_range_out_held_frame = 26,
126 	cal_weapon_range_idle_held_frame = 27,
127 	cal_weapon_range_fire_held_frame = 28,
128 	cal_weapon_range_fire_out_held_frame = 29,
129 	cal_weapon_attack_up_1_held_frame = 30,
130 	cal_weapon_attack_up_2_held_frame = 31,
131 	cal_weapon_attack_up_3_held_frame = 32,
132 	cal_weapon_attack_up_4_held_frame = 33,
133 	cal_weapon_attack_up_5_held_frame = 34,
134 	cal_weapon_attack_up_6_held_frame = 35,
135 	cal_weapon_attack_up_7_held_frame = 36,
136 	cal_weapon_attack_up_8_held_frame = 37,
137 	cal_weapon_attack_up_9_held_frame = 38,
138 	cal_weapon_attack_up_10_held_frame = 39,
139 	cal_weapon_attack_down_1_held_frame = 40,
140 	cal_weapon_attack_down_2_held_frame = 41,
141 	cal_weapon_attack_down_3_held_frame = 42,
142 	cal_weapon_attack_down_4_held_frame = 43,
143 	cal_weapon_attack_down_5_held_frame = 44,
144 	cal_weapon_attack_down_6_held_frame = 45,
145 	cal_weapon_attack_down_7_held_frame = 46,
146 	cal_weapon_attack_down_8_held_frame = 47,
147 	cal_weapon_attack_down_9_held_frame = 48,
148 	cal_weapon_attack_down_10_held_frame = 49,
149 	NUM_WEAPON_FRAMES = 50
150 };
151 
152 #define EMOTES_FRAMES 100
153 
154 
155 enum {
156 	cal_attached_walk_frame = 0, /*!< walk animation to use for the held actor */
157 	cal_attached_run_frame = 1, /*!< run animation to use for the held actor */
158 	cal_attached_idle_frame = 2, /*!< idle animation to use for the held actor */
159 	cal_attached_pain_frame = 3, /*!< pain animation to use for the held actor */
160 	cal_attached_pain_armed_frame = 4,
161 	NUM_ATTACHED_ACTOR_FRAMES = 5
162 };
163 
164 #ifdef __cplusplus
165 } // extern "C"
166 #endif
167 
168 #endif // __CAL_TYPES_H__
169