diff options
author | majortom6 <tombarrett@siu.edu> | 2017-02-26 11:14:31 -0600 |
---|---|---|
committer | Tom Barrett <tombarrett@siu.edu> | 2017-03-07 13:23:42 -0600 |
commit | 7394b069537ed7a490a343381d62862eb22abdcf (patch) | |
tree | c8bff4f88cf962ec4148a2e133bf959035feedb7 /inc/resource.hpp | |
parent | e54170cfb8c0fb99ecdc3b1e57e832dec58ee76e (diff) |
-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
Diffstat (limited to 'inc/resource.hpp')
-rw-r--r-- | inc/resource.hpp | 24 |
1 files changed, 0 insertions, 24 deletions
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 <cstdlib> - -#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 |