summaryrefslogtreecommitdiff
path: root/Gate.h
diff options
context:
space:
mode:
authorDaniel Jones <admin@danieljon.es>2020-06-25 11:36:46 +0930
committerDaniel Jones <admin@danieljon.es>2020-06-25 11:36:46 +0930
commitc40dfb1f7e12f3d127ff8851dc3c7276840a5b81 (patch)
treef7993638ababbf5e2b76e6ddf92befb7b3d690b2 /Gate.h
parente554f9c170ef9ce2a3d3b9445be249ad8e33b52e (diff)
downloadfoxlogicgates-c40dfb1f7e12f3d127ff8851dc3c7276840a5b81.tar.gz
foxlogicgates-c40dfb1f7e12f3d127ff8851dc3c7276840a5b81.zip
functionality: added ability to save to xml file in preperations for loading.
Diffstat (limited to 'Gate.h')
-rw-r--r--Gate.h4
1 files changed, 3 insertions, 1 deletions
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<int> output_gate_ids;