diff options
author | Daniel Jones <admin@danieljon.es> | 2020-07-03 22:18:55 +0930 |
---|---|---|
committer | Daniel Jones <admin@danieljon.es> | 2020-07-03 22:18:55 +0930 |
commit | 1e7b871722482f7f77e2ab3c80dd5bec1596d29c (patch) | |
tree | 7ed147be7e16d781ba1a264e690133bed0d59609 /Gate.h | |
parent | 7e8f5a8e885ab980b3ac1acbec84f46ba28d0ca5 (diff) | |
download | foxlogicgates-1e7b871722482f7f77e2ab3c80dd5bec1596d29c.tar.gz foxlogicgates-1e7b871722482f7f77e2ab3c80dd5bec1596d29c.zip |
Functionality: saving/loading with binary displays added
Diffstat (limited to 'Gate.h')
-rw-r--r-- | Gate.h | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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(); |