… | |
… | |
25 | /* This file contains animation related code. */ |
25 | /* This file contains animation related code. */ |
26 | |
26 | |
27 | #include <global.h> |
27 | #include <global.h> |
28 | #include <stdio.h> |
28 | #include <stdio.h> |
29 | |
29 | |
30 | animhash_t animhash; |
30 | static animhash_t animhash; |
31 | std::vector<animation> animations; |
31 | std::vector<animation> animations; |
32 | |
32 | |
33 | void |
33 | void |
34 | animation::resize (int new_size) |
34 | animation::resize (int new_size) |
35 | { |
35 | { |
… | |
… | |
67 | animhash_t::iterator i = animhash.find (name); |
67 | animhash_t::iterator i = animhash.find (name); |
68 | return animations [i == animhash.end () ? 0 : i->second]; |
68 | return animations [i == animhash.end () ? 0 : i->second]; |
69 | } |
69 | } |
70 | |
70 | |
71 | void |
71 | void |
72 | init_anim (void) |
72 | init_anim () |
73 | { |
73 | { |
74 | animation &anim0 = animation::create ("none", 1, 0); |
74 | animation &anim0 = animation::create ("none", 1, 0); |
75 | anim0.faces [0] = 0; |
75 | anim0.faces [0] = 0; |
76 | } |
76 | } |
77 | |
77 | |