summaryrefslogtreecommitdiff
path: root/Object.h
diff options
context:
space:
mode:
authorDaniel Jones <admin@danieljon.es>2020-06-30 16:41:17 +0930
committerDaniel Jones <admin@danieljon.es>2020-06-30 16:41:17 +0930
commit93f4f323e5374e65a9cadd5903fa020188e59ee1 (patch)
tree7484749791728ae439131ec7397472c02e7d477d /Object.h
parent61a3297b662b1bd8621016c8b5b492dd37bf5675 (diff)
downloadfoxlogicgates-93f4f323e5374e65a9cadd5903fa020188e59ee1.tar.gz
foxlogicgates-93f4f323e5374e65a9cadd5903fa020188e59ee1.zip
Functionality: basic binary display functions, needs work
Diffstat (limited to 'Object.h')
-rw-r--r--Object.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Object.h b/Object.h
index 49e750e..36a2efc 100644
--- a/Object.h
+++ b/Object.h
@@ -74,6 +74,9 @@ class Object
}
}
+ bool get_output_state() { return this->output_state; };
+ void set_state(bool state) { this->output_state = state; };
+
protected:
int id;
int x;
@@ -86,6 +89,9 @@ class Object
void set_object_type(OBJECT_TYPE type) { object_type = type; }; // every object must set this, none by default
static int object_id_counter; // used as the id of a new objecct - this is NOT a count of the number of objects
+
+ /* states */
+ bool output_state = false;
private:
enum OBJECT_TYPE object_type = NONE;