From 7394b069537ed7a490a343381d62862eb22abdcf Mon Sep 17 00:00:00 2001 From: majortom6 Date: Sun, 26 Feb 2017 11:14:31 -0600 Subject: -REMOVED ENTITY, RESOURCE, AND CREATURE ! -replaced them all with one class, organism (always subject to change) -the dna type now is what differs creatures and resources -removed dead constants -may be a rogue segfault -also weird artifacts start showing if running long --- inc/entity.hpp | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 inc/entity.hpp (limited to 'inc/entity.hpp') diff --git a/inc/entity.hpp b/inc/entity.hpp deleted file mode 100644 index 20c87aa..0000000 --- a/inc/entity.hpp +++ /dev/null @@ -1,32 +0,0 @@ -#ifndef entity_h -#define entity_h - -#include "dna.hpp" -#include "rectangle.hpp" - -#include "opengl/graphicsdata.hpp" - -class Entity -{ - public: - void Place(); - - virtual void eat(int bite){}; - virtual void impregnate(DNA D){}; - - int getType(){return type;}; - virtual bool getGender(void){}; - virtual int getAmount(void){}; - Rectangle getRectangle(){return rect;}; - GraphicsData getGFXD(){return gfxData;}; - - - protected: - int type; - int gender; - bool pregnate; - Rectangle rect; - GraphicsData gfxData; -}; - -#endif -- cgit v1.2.3