summaryrefslogtreecommitdiff
path: root/Gate.cpp
diff options
context:
space:
mode:
authorDaniel Jones <admin@danieljon.es>2020-06-29 23:14:23 +0930
committerDaniel Jones <admin@danieljon.es>2020-06-29 23:14:23 +0930
commit193fda2d270f63c127edc5b1082ef14ad12b1175 (patch)
tree8423cc822fd704f4c7b659f0ff6c9580147c4b2a /Gate.cpp
parent1e76ef7d2df9d49a905f416774f33fdedfcf6f34 (diff)
downloadfoxlogicgates-193fda2d270f63c127edc5b1082ef14ad12b1175.tar.gz
foxlogicgates-193fda2d270f63c127edc5b1082ef14ad12b1175.zip
further work deriving gates from Object
Diffstat (limited to 'Gate.cpp')
-rw-r--r--Gate.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Gate.cpp b/Gate.cpp
index a1ed3a7..00e3d00 100644
--- a/Gate.cpp
+++ b/Gate.cpp
@@ -19,6 +19,7 @@ int Object::object_id_counter = 0; // initialise static object counter FIXME: do
Gate::Gate(GATE_TYPE type, int x, int y, int width, int height, int loaded_id)
{
+ set_object_type(Object::GATE);
this->gate_type = type;
this->input_gate1 = nullptr;
this->input_gate2 = nullptr;