30 lines
No EOL
606 B
C++
30 lines
No EOL
606 B
C++
#pragma once
|
|
#include <Arduino.h>
|
|
#include "state.h"
|
|
#include "states.h"
|
|
#include "station.h"
|
|
|
|
class OnTheMove : public State {
|
|
private:
|
|
Station* targetStation;
|
|
public:
|
|
OnTheMove(Station* targetStation);
|
|
State* putDown(Station* newSation) override;
|
|
};
|
|
|
|
class Hacking : public State {
|
|
private:
|
|
Station* currentStation;
|
|
public:
|
|
Hacking(Station* currentStation);
|
|
State* pickedUp() override;
|
|
};
|
|
|
|
class WaitingForPickup : public State {
|
|
private:
|
|
Station* currentStation;
|
|
Station* targetStation;
|
|
public:
|
|
WaitingForPickup(Station* currentStation, Station* targetStation);
|
|
State* pickedUp();
|
|
}; |