From a472dc51a18ad16bd8c72337023a08251a5888a8 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Wed, 6 Mar 2019 21:30:57 +0100 Subject: Updated Object writing to framebuffer cObject now handles writing itself to the framebuffer with write() instead of passing the cScreen pointer to cObjectHandler --- src/cObject.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/cObject.h') diff --git a/src/cObject.h b/src/cObject.h index 48e41a4..08594b3 100644 --- a/src/cObject.h +++ b/src/cObject.h @@ -49,9 +49,14 @@ public: void setPosition(int _x, int _y); /** Returns sObject with framebuffer and current position + * DEPRECATED */ sObject getObject(); + /** Writes object to framebuffer with offset _cameraPosition + */ + void write(cRender *_render, sPos _cameraPosition); + /** Called by cObjecthandler if cObject is clicked */ virtual void onClick(sPos _pos, unsigned int _button){} -- cgit v1.2.3