Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "Bloc.h"
- #include "Arduino.h"
- Bloc::Bloc(byte _id)
- {
- id = _id;
- load();
- }
- Bloc::Bloc()
- {
- load();
- }
- void Bloc::setId(byte _id)
- {
- id = _id;
- }
- void Bloc::setFinalPos(byte _x, byte _y)
- {
- finalx = _x;
- finaly = _y;
- }
- void Bloc::load()
- {
- id = 255;
- posx = 0;
- posy = 0;
- width = 1;
- height = 3;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement