summaryrefslogtreecommitdiff
path: root/Gate.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 /Gate.h
parent7e8f5a8e885ab980b3ac1acbec84f46ba28d0ca5 (diff)
downloadfoxlogicgates-1e7b871722482f7f77e2ab3c80dd5bec1596d29c.tar.gz
foxlogicgates-1e7b871722482f7f77e2ab3c80dd5bec1596d29c.zip
Functionality: saving/loading with binary displays added
Diffstat (limited to 'Gate.h')
-rw-r--r--Gate.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/Gate.h b/Gate.h
index c8cd492..b960978 100644
--- a/Gate.h
+++ b/Gate.h
@@ -42,10 +42,10 @@ class Gate : public Object
std::vector<int> *get_output_objects() { return &this->output_object_ids; };
GATE_TYPE get_gate_type() { return this->gate_type; };
- Gate *get_input_gate1() { return this->input_gate1; };
- Gate *get_input_gate2() { return this->input_gate2; };
- void set_input_gate1(Gate *gate) { this->input_gate1 = gate; };
- void set_input_gate2(Gate *gate) { this->input_gate2 = gate; };
+ Object *get_input_gate1() { return this->input_gate1; };
+ Object *get_input_gate2() { return this->input_gate2; };
+ void set_input_gate1(Object *gate) { this->input_gate1 = gate; };
+ void set_input_gate2(Object *gate) { this->input_gate2 = gate; };
void remove_input_object(int id) override;
void update_state() override;
@@ -55,8 +55,8 @@ class Gate : public Object
GATE_TYPE gate_type;
/* inputs/outputs */
- Gate *input_gate1;
- Gate *input_gate2;
+ Object *input_gate1;
+ Object *input_gate2;
std::string get_output_type_text();