From: lukel495 Date: Thu, 9 Nov 2023 14:43:59 +0000 (+0100) Subject: la till skelett för Statc_object klassen X-Git-Url: https://gitweb.forssennils.se/?a=commitdiff_plain;h=b4b3bc496fc834de88b08f3719dd6862a45ea3e7;p=TDDC76_proj.git la till skelett för Statc_object klassen --- diff --git a/src/Static_object.cc b/src/Static_object.cc index e69de29..4c1e9f2 100644 --- a/src/Static_object.cc +++ b/src/Static_object.cc @@ -0,0 +1 @@ +#include Static_object.h \ No newline at end of file diff --git a/src/Static_object.h b/src/Static_object.h index e69de29..ca7994c 100644 --- a/src/Static_object.h +++ b/src/Static_object.h @@ -0,0 +1,24 @@ +#ifndef STATIC_OBJECT_H +#define STATIC_OBJECT_H + +#include +#include + +class Static_obejct : public Object +{ +public: + { + Static_object() = default; + virtual ~Static_object() = default; + virtual bool collides(Object & other) = 0; + virtual void collision(Object & other) = 0; + virtual void update() = 0; + virtual void render(sf::RenderWindow & window) = 0; + } + +private: + { + } +}; + +#endif \ No newline at end of file