Commit Graph

20 Commits

Author SHA1 Message Date
Unknown 2ea974bbd5 Fix Snapshot Load and Save Functions
Were just pointers to the map before. Fix to be actual clones of the map.
2018-10-19 20:49:59 +02:00
Unknown 0da2d08b74 Add Simulation Saving and Loading Methods 2018-10-19 19:59:00 +02:00
Unknown 2169de16fd Add Tests to Simulation 2018-10-19 19:35:09 +02:00
Unknown 8db9cd6ff1 Move Simulation Accesses to Simulation Class
Everything has been refactored away from engine, which now only controls updating & rendering within a specific timestep. (As well as stepping forward by calling a single update)

Everything regarding grids, patterns and cells has been moved into the simulation and the Services have been updated to reflect that.
2018-10-18 15:21:50 +02:00
Unknown 4f92c69a82 Rename Simulation function adding random patterns
Rename from addPattern to addRandomPattern to more clearly signify its purpose.
2018-10-18 11:32:00 +02:00
Unknown f1399064a2 Fix Simulation using RuleSet range for neighbor checks 2018-10-18 11:30:14 +02:00
Unknown 0aa3df30b4 Extract CellPattern and GameOfLife into own files 2018-10-18 11:27:44 +02:00
Unknown fbdf114fed Move RuleSet to its own directory 2018-10-18 11:21:18 +02:00
Unknown de1aa46743 Separate Simulation calculating updates and merging
Simulation updates were one step of calculation and merging the calculations into the map in one function.

Separating the two allows checking for a new update without affecting the grid, allows passing the last Update around and allows custom changes to the grid by passing changes to the merge function that were not derived from the update function.
2018-10-18 10:58:06 +02:00
Unknown bac65ef116 Remove unnecessary pattern parameters 2018-10-18 09:57:08 +02:00
Unknown e6e82f78f2 Remove unnecessary Switch Case in Simulation 2018-10-17 21:07:48 +02:00
Unknown 9b2b5f3e55 Remove unnecessary Simulation variables 2018-10-17 21:00:14 +02:00
Unknown 27d4879b1b Extract RuleSet Class from Simulation 2018-10-17 20:58:04 +02:00
Unknown 245d9a22c2 Remove Cell Data Structure
Cells are only boolean values of true or false for now.
2018-10-16 18:21:21 +02:00
Unknown 71f4df85af Refactor Simulation to be List of dumb cells
Cells are now only an empty struct, they carry no information beyond needing to be re-rendered. All Simulation logic is handled in the Simulation Class.
2018-10-15 17:28:09 +02:00
Unknown c50e92fb19 Add simple stateChanges map into Simulation 2018-10-02 14:55:39 +02:00
Marty Oehme a324d52df5 Fix Simulation Neighbor Propagation 2018-08-30 12:03:23 +02:00
Marty Oehme b95d39d2b4 Fix not carrying width and height in Simulation 2018-08-30 10:58:55 +02:00
Marty Oehme 227357a745 Implement new Grid into Simulation 2018-08-30 10:57:14 +02:00
Marty Oehme 0c487f3427 Rename Grid to Simulation
in order to craft an actual grid data structure
2018-08-29 20:13:24 +02:00