comparison engine/core/view/visual.i @ 0:4a0efb7baf70

* Datasets becomes the new trunk and retires after that :-)
author mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
date Sun, 29 Jun 2008 18:44:17 +0000
parents
children 90005975cdbb
comparison
equal deleted inserted replaced
-1:000000000000 0:4a0efb7baf70
1 %module fife
2 %{
3 #include "view/visual.h"
4 %}
5
6 namespace FIFE {
7 class Visual2DGfx {
8 public:
9 virtual ~Visual2DGfx();
10 void setTransparency(uint8_t transparency);
11 unsigned int getTransparency();
12 void setVisible(bool visible);
13 unsigned int isVisible();
14 private:
15 Visual2DGfx();
16 };
17
18 %apply std::vector<int> &OUTPUT { std::vector<int>& angles };
19 class ObjectVisual: public Visual2DGfx {
20 public:
21 static ObjectVisual* create(Object* object);
22 virtual ~ObjectVisual();
23 void addStaticImage(unsigned int angle, int image_index);
24 int getStaticImageIndexByAngle(int angle);
25 int getClosestMatchingAngle(int angle);
26 void getStaticImageAngles(std::vector<int>& angles);
27 private:
28 ObjectVisual();
29 };
30 %template(get2dGfxVisual) Object::getVisual<ObjectVisual>;
31 %clear std::vector<int> angles;
32
33 class InstanceVisual: public Visual2DGfx {
34 public:
35 static InstanceVisual* create(Instance* instance);
36 virtual ~InstanceVisual();
37 void setStackPosition(int stackposition);
38 int getStackPosition();
39 private:
40 InstanceVisual();
41 };
42 %template(get2dGfxVisual) Instance::getVisual<InstanceVisual>;
43
44 class ActionVisual: public Visual2DGfx {
45 public:
46 static ActionVisual* create(Action* action);
47 virtual ~ActionVisual();
48 void addAnimation(unsigned int angle, int animation_index);
49 int getAnimationIndexByAngle(int angle);
50 private:
51 ActionVisual();
52 };
53 %template(get2dGfxVisual) Action::getVisual<ActionVisual>;
54 }