summary refs log tree commit diff stats
path: root/src/simulation.h
Commit message (Collapse)AuthorAgeFilesLines
* Rendering of level map moved to Level classKelly Rauchenberger2019-02-241-0/+2
|
* Started state machineKelly Rauchenberger2019-02-241-3/+5
| | | | The "--editor" flag can be passed to the program to start it in editor mode, which is currently nothing. The Renderer class was removed here, as each state basically needs to do its own rendering. However, refactoring to make this more elegant will probably occur in the future.
* active_ | entityView() -> entityRange()Kelly Rauchenberger2019-02-231-0/+10
|
* Removed position cachesKelly Rauchenberger2019-02-231-4/+0
| | | | There aren't going to be enough entities at once for position checking to ever really be a bottleneck, I don't think. Removing the caches makes the range logic a bit more intuitive, and it removes the possibility of accidentally not updating a cache when it needs to be.
* More ranges stuff! Now with custom viewsKelly Rauchenberger2019-02-231-3/+16
|
* Trains move on tracks to the beatKelly Rauchenberger2019-02-221-3/+1
| | | | Small implementation changes in various places, biggest thing is now we're using ranges, which is experimental and will be included for real in C++20.
* Started implementing scheduleKelly Rauchenberger2019-02-201-7/+6
| | | | | | | | | | Scheduled entities move downward every beat, although they have a speed that is twice the bpm, so essentially they move every other beat? Broke the simulation loop such that different parts run independently -- made it horizontal rather than vertical. Encapsulated the grid cache so that more than one position field could be cached. This is used to make sure that an entity can't move into a space that something else is already moving into. Fixed issue where an entity could move perpendicularly into the space an entity was moving out of.
* Shift-pushingKelly Rauchenberger2019-02-161-0/+2
|
* Pushing works nowKelly Rauchenberger2019-02-161-0/+15
|
* Very basic ECSKelly Rauchenberger2019-02-031-0/+57