From 1e7b871722482f7f77e2ab3c80dd5bec1596d29c Mon Sep 17 00:00:00 2001 From: Daniel Jones Date: Fri, 3 Jul 2020 22:18:55 +0930 Subject: Functionality: saving/loading with binary displays added --- Gate.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'Gate.h') 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 *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(); -- cgit v1.2.3