Decouple Engine and Simulation #55
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently, engine and simulation are tightly coupled to one another. Any operation on the internal simulation (resetting the grid, adding cell patterns, toggling the grid rendering) has to go through the engine right now.
What should be done instead is to have the engine be able to run independently of having a simulation assigned. When a simulation is injected, it will simply run that simulation, calling update and render on it. It should never know more about the simulation than those two simple methods.
Methods that should be kept and reference able: update(), render(), step() [as a single call to update()], toggleEdgeRendering()
Methods that Engine should not know about: reset(), clear(), addPattern(), gridSize
created branch
55-decouple-engine-and-simulation
mentioned in merge request !15
mentioned in commit
7e51c2d70a
closed via merge request !15
mentioned in merge request !16
mentioned in commit
befb345ddd