openMSX
StateChangeListener.hh
Go to the documentation of this file.
1 #ifndef STATECHANGELISTENER_HH
2 #define STATECHANGELISTENER_HH
3 
4 #include "EmuTime.hh"
5 #include <memory>
6 
7 namespace openmsx {
8 
9 class StateChange;
10 
12 {
13 public:
18  virtual void signalStateChange(
19  const std::shared_ptr<StateChange>& event) = 0;
20 
28  virtual void stopReplay(EmuTime::param time) = 0;
29 
30 protected:
33 };
34 
36 {
37 public:
38  virtual bool isReplaying() const = 0;
39 };
40 
41 } // namespace openmsx
42 
43 #endif
virtual void signalStateChange(const std::shared_ptr< StateChange > &event)=0
This method gets called when a StateChange event occurs.
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5
virtual void stopReplay(EmuTime::param time)=0
This method gets called when we switch from replayed events to live events.