Space Sheep Xtreme Turbo Penguin Edition
MovableElement.h
Aller à la documentation de ce fichier.
1 #ifndef MOVABLE_ELEMENT_H
2 #define MOVABLE_ELEMENT_H
3 
19 {
20  protected :
21  int my_x;
22  int my_y;
23  int my_dx;
24  int my_dy;
25  int my_w;
26  int my_h;
29  public :
30 
35 
46  MovableElement(int x, int y, int dx, int dy, int w, int h);
47 
51  virtual ~MovableElement();
52 
53 
57  virtual void moveLeft();
58 
62  virtual void moveRight();
63 
67  virtual void moveDown();
68 
72  virtual void moveUp();
73 
74 
80  virtual void move();
81 
82  //Accesseurs
83 
91  int getX() const;
92 
100  int getY() const;
101 
109  int getDY() const;
110 
118  int getW() const;
119 
127  int getH() const ;
128 
132  void setX(int x);
133 
137  void setY(int y);
138 
139 };
140 
141 #endif