// Genesaver: copyright 2003 Sam Stafford. class Thing; class Plant; class Animal; struct GraphNode { float r, g, b; float rc, gc, bc; float hpop; GraphNode *next; }; class World { public: World(void); ~World(void); void CamChange(); virtual void CheckCollisions( Animal* ); void Clone( Animal* ); void Collide( Animal*, Plant* ); virtual void Collide( Animal*, Animal* ); virtual bool Conflict( Animal* ); virtual void InsertAnimal( DNA* ); bool Kill( Animal*, Animal* ); void Load( char* c ); void Mate( Animal*, Animal* ); virtual void Remove( Animal* ); void Render(); virtual bool RenderGraph(); void RenderTagged(); void Save( FILE* f ); void SpawnAnimal(); void SpawnPlant(); void Step(); virtual void UpdateGraph(); void ViewChange( Animal* a = NULL ); int rgcount; protected: void RenderGrid(); //draw grid Plant* plants; Animal* animals; Animal* tagged; GraphNode *graphhead, *graphtail; int graphcount; double r, rc, g, gc, b, bc, p; float ptimer; //plant timer };
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#3 | 5384 | Sam Stafford |
Increase maximum allowable creature speed, fix a couple of bugs (some of them balance-related) with the alternate ecology ruleset. |
||
#2 | 5090 | Sam Stafford | Option to draw a grid on the background (they appear in both world and chase view), set by the "gridlines" option in the settings file. | ||
#1 | 3052 | Sam Stafford |
Add Genesaver to the Public Depot. It's not in any way Perforce-related, but it does share a bit of code with Jamgraph, and it feels strange to have an open-source project that's not in the PD. |