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/resource.hpp | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 inc/resource.hpp (limited to 'inc/resource.hpp') diff --git a/inc/resource.hpp b/inc/resource.hpp deleted file mode 100644 index e559463..0000000 --- a/inc/resource.hpp +++ /dev/null @@ -1,24 +0,0 @@ -#ifndef resource_h -#define resource_h - -#include - -#include "entity.hpp" -#include "functions.hpp" - -class Resource: public Entity -{ - public: - Resource(Rectangle r); - - void grow(); - void eat(int bite); - - int getAmount(){return amount;}; - - private: - int amount; - int growAmount; -}; - -#endif -- cgit v1.2.3