summaryrefslogtreecommitdiff
path: root/Gate.h
diff options
context:
space:
mode:
authorDaniel Jones <admin@danieljon.es>2020-06-30 01:18:04 +0930
committerDaniel Jones <admin@danieljon.es>2020-06-30 01:18:04 +0930
commit8ecf0637c6830b26bbe2c1221847e12f96df81a4 (patch)
tree11bea93ac42670e15f1aad826fe585d3afc6bd7d /Gate.h
parent193fda2d270f63c127edc5b1082ef14ad12b1175 (diff)
downloadfoxlogicgates-8ecf0637c6830b26bbe2c1221847e12f96df81a4.tar.gz
foxlogicgates-8ecf0637c6830b26bbe2c1221847e12f96df81a4.zip
continue converting things to use object over gate
Diffstat (limited to 'Gate.h')
-rw-r--r--Gate.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Gate.h b/Gate.h
index e5a6115..a1ecaf8 100644
--- a/Gate.h
+++ b/Gate.h
@@ -41,17 +41,17 @@ class Gate : public Object
~Gate();
bool get_output_state() { return this->output_state; };
- std::vector<int> *get_output_gates() { return &this->output_gate_ids; };
+ 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_state(bool state) { this->output_state = state; };
void set_input_gate1(Gate *gate) { this->input_gate1 = gate; };
void set_input_gate2(Gate *gate) { this->input_gate2 = gate; };
- void add_output_gate_id(int id) { this->output_gate_ids.push_back(id); };
+ void add_output_object_id(int id) { this->output_object_ids.push_back(id); };
void remove_output_gate_id(int id);
void remove_input_gate(int id);
- void update_state();
+ void update_state() override;
std::string get_object_name() override { return get_output_type_text(); };