diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-25 17:26:20 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-25 17:26:20 +0200 |
commit | b31d7a677481b4a09168c43d203bfd6d7badf577 (patch) | |
tree | 13550fa7f33d21aea8a7b03981707db2c08fc9a2 /ArtistData.h | |
parent | c9f5ac8722190efeb58fda1eec9e6160d5204127 (diff) |
implement mementos snapshots
Diffstat (limited to 'ArtistData.h')
-rw-r--r-- | ArtistData.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ArtistData.h b/ArtistData.h index 1c3c88c..1a75842 100644 --- a/ArtistData.h +++ b/ArtistData.h @@ -1,5 +1,7 @@ #pragma once +#include "Memento.h" + struct ArtistData { float x = 0.0; float y = 0.0; @@ -7,3 +9,12 @@ struct ArtistData { float vy = 0.0; }; +class ArtistDataMemento : public Memento { + friend class People; + +public: + ArtistDataMemento(const ArtistData & data) : data(data) {} +private: + ArtistData data; +}; + |