Advertisement
xerpi

block.hpp

Jan 17th, 2012
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.47 KB | None | 0 0
  1. //bloc.hpp
  2.  
  3. #ifndef _Block_H_
  4. #define _Block_H_
  5.  
  6. #include <oslib/oslib.h>
  7. #include "methods.hpp"
  8. #include "map.hpp"
  9.  
  10.  
  11. class Block{
  12.     public:
  13.         //Constructor
  14.             Block(float x, float y, int type);
  15.         //Variables
  16.             float x, y, speed;
  17.             int w, h, status, type;
  18.             OSL_IMAGE *texture;
  19.         //Methods
  20.             void move();
  21.             void blit();
  22.             void manage(Map map);
  23.             //void limitCollision(float x, float y, float w, float h);
  24.             //void setSpeed(float speed);
  25. };
  26.  
  27. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement