Advertisement
Guest User

Untitled

a guest
Mar 7th, 2013
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.36 KB | None | 0 0
  1. #include "Bloc.h"
  2.  
  3. #include "Arduino.h"
  4.  
  5. Bloc::Bloc(byte _id)
  6. {
  7.   id = _id;
  8.  
  9.   load();
  10. }
  11.  
  12. Bloc::Bloc()
  13. {
  14.     load();
  15. }
  16.  
  17. void Bloc::setId(byte _id)
  18. {
  19.   id = _id;
  20. }
  21.  
  22. void Bloc::setFinalPos(byte _x, byte _y)
  23. {
  24.   finalx = _x;
  25.   finaly = _y;
  26. }
  27.  
  28. void Bloc::load()
  29. {
  30.     id = 255;
  31.     posx = 0;
  32.     posy = 0;
  33.     width = 1;
  34.     height = 3;
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement