state save/load working! signal pause/play button added, and speed control is now better.
This commit is contained in:
+14
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user