2023-06-11 14:15:15 +00:00
|
|
|
#ifndef __Machine_H
|
|
|
|
#define __Machine_H
|
|
|
|
|
|
|
|
class Motor;
|
|
|
|
class Mone;
|
|
|
|
class Mtwo;
|
|
|
|
|
|
|
|
class Machine {
|
|
|
|
private:
|
|
|
|
Motor* m1;
|
|
|
|
Motor* m2;
|
|
|
|
public:
|
2023-06-14 18:07:09 +00:00
|
|
|
virtual ~Machine(){};
|
2023-06-11 14:15:15 +00:00
|
|
|
virtual Motor* motor1() = 0;
|
|
|
|
virtual Motor* motor2() = 0;
|
|
|
|
virtual void run() = 0;
|
|
|
|
virtual void halt() = 0;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|