summaryrefslogtreecommitdiff
path: root/inc/dna.hpp
AgeCommit message (Collapse)Author
2017-03-17-fixed type initTom Barrett
2017-03-15-string comparison is for losersTom Barrett
2017-03-12-renamed constants to fit new datatypesTom Barrett
-reimplemented corpses -implemented hunger and starving (if creature is starving they will eat corpses and will take damage) -removed sides data from dna (think it is irrelavent) -removed data from dna that is not used for plants
2017-03-07-added carnivoresmajortom6
-removed creature type constant and replaced it with herbavore/carnivore type -replaced resource type with plant type -added eatType to dna (whatever the organism goes for hunger)
2017-03-07-removed the Graphics Data classmajortom6
-replaced with already implemented Rectangle, and put color and side variables in dna (can potentially remove the side variable if it does nothing important)
2017-03-07-REMOVED ENTITY, RESOURCE, AND CREATURE !majortom6
-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
2017-03-07-added more detailed mutation function, eventually a normal distrobution ↵majortom6
will be implemented -added roll function, which takes a float ie (.15) and returns a true that percent of the time
2017-03-07-removed all references to sdl_rect and location and now everything now uses ↵majortom6
our own class rectangle -standardization of tab spaces to 8 is now in effect -refractoring of graphicsobjects.hpp
2017-03-07-quadtree and opengl rendering are now in the master branch !iamn1ck
-using sdl_rect for location and size ended up being not so great due to it not having floats, so we reverted back to using location -much, much refractoring is now needed
2017-02-12-added DNA combining, currently it just takes the average of the mother and ↵tom
father -there maybe a random segfault, further investigation is needed
2017-02-12-minor constant changestom
-implemented dna structure, which carries the creatures attributes suchas speed and reach -currently a child inherits 100% the same dna as the mother -removed sing namespace std