From 93f4f323e5374e65a9cadd5903fa020188e59ee1 Mon Sep 17 00:00:00 2001 From: Daniel Jones Date: Tue, 30 Jun 2020 16:41:17 +0930 Subject: Functionality: basic binary display functions, needs work --- Object.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Object.h') 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; -- cgit v1.2.3