buenzliai/main/states.h

46 lines
902 B
C
Raw Normal View History

2024-05-17 13:04:36 +00:00
#pragma once
#include <Arduino.h>
2024-05-17 13:37:03 +00:00
#include "context.h"
2024-05-17 13:04:36 +00:00
#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);
2024-05-17 13:37:03 +00:00
State* pickedUp() override;
};
class Startup : public State {
public:
State* putDown(Station* newSation) override;
};
class NewTargetFinder : public State {
private:
Station* currentStation;
public:
NewTargetFinder(Station* currentStation);
State* update(Context context) override;
};