buenzliai/main/state.h
2024-05-17 15:37:03 +02:00

18 lines
406 B
C++

#pragma once
#include <Arduino.h>
#include <LiquidCrystal.h>
#include "station.h"
#include "context.h"
class Station;
class State {
public:
virtual ~State() = default;
virtual State* pickedUp() { return this; }
virtual State* putDown(Station* newStation) { return this; }
virtual State* update(Context context) { return this; }
virtual void updateDisplay(LiquidCrystal* lcd) { }
};