Upload del repo clone di twang
This commit is contained in:
parent
9c164ceb04
commit
a20252c357
13 changed files with 1873 additions and 0 deletions
23
Conveyor.h
Normal file
23
Conveyor.h
Normal file
|
@ -0,0 +1,23 @@
|
|||
#include "Arduino.h"
|
||||
|
||||
class Conveyor
|
||||
{
|
||||
public:
|
||||
void Spawn(int startPoint, int endPoint, int dir);
|
||||
void Kill();
|
||||
int _startPoint;
|
||||
int _endPoint;
|
||||
int _dir;
|
||||
bool _alive;
|
||||
};
|
||||
|
||||
void Conveyor::Spawn(int startPoint, int endPoint, int dir){
|
||||
_startPoint = startPoint;
|
||||
_endPoint = endPoint;
|
||||
_dir = dir;
|
||||
_alive = true;
|
||||
}
|
||||
|
||||
void Conveyor::Kill(){
|
||||
_alive = false;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue