From c40dfb1f7e12f3d127ff8851dc3c7276840a5b81 Mon Sep 17 00:00:00 2001 From: Daniel Jones Date: Thu, 25 Jun 2020 11:36:46 +0930 Subject: functionality: added ability to save to xml file in preperations for loading. --- Gate.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Gate.h') diff --git a/Gate.h b/Gate.h index ad2f212..f271b97 100644 --- a/Gate.h +++ b/Gate.h @@ -62,6 +62,8 @@ class Gate void remove_input_gate(int id); void update_state(); + static int gate_id_counter; // used as the id of a new gate - this is NOT a count of the number of gates + private: GATE_TYPE gate_type; int id; @@ -69,11 +71,11 @@ class Gate int y; int w; int h; - static int gate_id_counter; // used as the id of a new gate - this is NOT a count of the number of gates /* inputs/outputs */ Gate *input_gate1; Gate *input_gate2; + //Gate *output_gate; std::vector output_gate_ids; -- cgit v1.2.3