Advertisement
Guest User

Untitled

a guest
Mar 7th, 2013
18
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #ifndef tetris_bloc_h
  2. #define tetris_bloc_h
  3.  
  4. #include <Arduino.h>
  5.  
  6. // extern int defaultMatrice[60]; // = {1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,1,0,0,1,1,1,1,0,0,1,1,1,1,0,0,1,1,1,1,0,0,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1};
  7.  
  8. class Bloc
  9. {
  10.   public:
  11.     Bloc();
  12.     Bloc(byte _id);
  13.  
  14.     void setId(byte _id);
  15.     void setFinalPos(byte _x, byte _y);
  16.  
  17.     byte posx;
  18.     byte posy;
  19.     byte width;
  20.     byte height;
  21.     byte id;
  22.     byte finalx;
  23.     byte finaly;
  24.   private:
  25.     void load();
  26. };
  27.  
  28. #endif
Advertisement
RAW Paste Data Copied
Advertisement