diff options
author | Daniel Jones <admin@danieljon.es> | 2020-06-30 16:41:17 +0930 |
---|---|---|
committer | Daniel Jones <admin@danieljon.es> | 2020-06-30 16:41:17 +0930 |
commit | 93f4f323e5374e65a9cadd5903fa020188e59ee1 (patch) | |
tree | 7484749791728ae439131ec7397472c02e7d477d /Object.h | |
parent | 61a3297b662b1bd8621016c8b5b492dd37bf5675 (diff) | |
download | foxlogicgates-93f4f323e5374e65a9cadd5903fa020188e59ee1.tar.gz foxlogicgates-93f4f323e5374e65a9cadd5903fa020188e59ee1.zip |
Functionality: basic binary display functions, needs work
Diffstat (limited to 'Object.h')
-rw-r--r-- | Object.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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; |