Mercurial > fife-parpg
diff 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 |
line wrap: on
line diff
--- a/engine/core/view/visual.i Wed Jan 27 15:58:49 2010 +0000 +++ b/engine/core/view/visual.i Wed Jan 27 20:43:03 2010 +0000 @@ -62,12 +62,14 @@ }; %template(get2dGfxVisual) Instance::getVisual<InstanceVisual>; + %apply std::vector<int> &OUTPUT { std::vector<int>& angles }; class ActionVisual: public Visual2DGfx { public: static ActionVisual* create(Action* action); virtual ~ActionVisual(); void addAnimation(unsigned int angle, int animation_index); int getAnimationIndexByAngle(int angle); + void getActionImageAngles(std::vector<int>& angles); private: ActionVisual(); };