comparison engine/core/view/visual.i @ 397:8fa2f3aa0cbd

Added the ActionVisual::getActionImageAngles() function.
author prock@33b003aa-7bff-0310-803a-e67f0ece8222
date Wed, 27 Jan 2010 20:43:03 +0000
parents ab41334e8a57
children
comparison
equal deleted inserted replaced
396:81641655bc38 397:8fa2f3aa0cbd
60 private: 60 private:
61 InstanceVisual(); 61 InstanceVisual();
62 }; 62 };
63 %template(get2dGfxVisual) Instance::getVisual<InstanceVisual>; 63 %template(get2dGfxVisual) Instance::getVisual<InstanceVisual>;
64 64
65 %apply std::vector<int> &OUTPUT { std::vector<int>& angles };
65 class ActionVisual: public Visual2DGfx { 66 class ActionVisual: public Visual2DGfx {
66 public: 67 public:
67 static ActionVisual* create(Action* action); 68 static ActionVisual* create(Action* action);
68 virtual ~ActionVisual(); 69 virtual ~ActionVisual();
69 void addAnimation(unsigned int angle, int animation_index); 70 void addAnimation(unsigned int angle, int animation_index);
70 int getAnimationIndexByAngle(int angle); 71 int getAnimationIndexByAngle(int angle);
72 void getActionImageAngles(std::vector<int>& angles);
71 private: 73 private:
72 ActionVisual(); 74 ActionVisual();
73 }; 75 };
74 %template(get2dGfxVisual) Action::getVisual<ActionVisual>; 76 %template(get2dGfxVisual) Action::getVisual<ActionVisual>;
75 } 77 }