summaryrefslogtreecommitdiff
path: root/Object.h
diff options
context:
space:
mode:
authorDaniel Jones <admin@danieljon.es>2020-07-03 22:18:55 +0930
committerDaniel Jones <admin@danieljon.es>2020-07-03 22:18:55 +0930
commit1e7b871722482f7f77e2ab3c80dd5bec1596d29c (patch)
tree7ed147be7e16d781ba1a264e690133bed0d59609 /Object.h
parent7e8f5a8e885ab980b3ac1acbec84f46ba28d0ca5 (diff)
downloadfoxlogicgates-1e7b871722482f7f77e2ab3c80dd5bec1596d29c.tar.gz
foxlogicgates-1e7b871722482f7f77e2ab3c80dd5bec1596d29c.zip
Functionality: saving/loading with binary displays added
Diffstat (limited to 'Object.h')
-rw-r--r--Object.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/Object.h b/Object.h
index 10184dc..e4e504b 100644
--- a/Object.h
+++ b/Object.h
@@ -25,7 +25,7 @@ class Object
* abstract class that all usable objects should subclass
*/
public:
- Object() { id = object_id_counter++; }; // default constructor for all objects
+ Object() { }; // default constructor for all objects
Object(int id_) { id = id_; }; // overloaded constructor for passing id - used when loading
/*
@@ -44,7 +44,6 @@ class Object
int input;
};
-
virtual ~Object() = default;
int get_id() { return this->id; };
int get_x() { return this->x; };