state save/load working! signal pause/play button added, and speed control is now better.

This commit is contained in:
Sebastian
2024-11-04 01:00:59 +01:00
parent bfd8bb192e
commit 374efbe47c
10 changed files with 115 additions and 30 deletions
+14 -2
View File
@@ -9,11 +9,23 @@ namespace VISEQ::GRAPH {
class GraphItem{
public:
GraphItem() {static int _id; id=_id++;}
GraphItem() {newId();}
GraphItem(const GraphItem& G) {
newId();
graphItemType = G.graphItemType;
neighbors = G.neighbors;
}
std::vector<std::shared_ptr<GraphItem>> neighbors;
int id = 0;
GraphItemType graphItemType;
int id = 0;
void newId(){
static int _id;
id = _id;
_id++;
}
virtual void draw(Vec2Df mouse, Camera2D cam) {};
virtual GraphItemType getType() {return graphItemType;}
virtual ~GraphItem() = default;