00001
00002
00003
00004
00005 #ifndef ARANYA_H
00006 #define ARANYA_H
00007
00008 #include <Gosu/Gosu.hpp>
00009 #include "Constantes.h"
00010 class Ventana;
00011 class Aranya{
00012 public:
00015
00016 Aranya(Gosu::Image *img);
00018 ~Aranya();
00021 Gosu::Image* get_minyimi();
00023 void velocidadX(int velox);
00025 void velocidadY(int veloy);
00027 void movX(int posx);
00029 void movY(int posy);
00032 int movX() const;
00035 int movY() const;
00038 int posX() const;
00041 int posY() const;
00044 int width() const;
00047 int height() const;
00049 void acelerar(int vx, int vy);
00051 void posX(int pos);
00052 private:
00053
00056 int posX_,posY_;
00058
00061 int w_,h_;
00063 int arma_;
00064 Gosu::Image *aranya_;
00066 int velX_,velY_;
00068 int movX_;
00069 };
00070
00071 #endif
00072