diff options
| author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2019-02-22 17:25:59 -0500 |
|---|---|---|
| committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2019-02-22 17:25:59 -0500 |
| commit | 26fbd8c1edaf94513d9750681edbe449b699efe4 (patch) | |
| tree | 3356e61d3eca5eda067169a2c584616a49d8e5a5 /src/simulation.h | |
| parent | d9c201cbf2fbfe315137e141d886a9bbfa6794ba (diff) | |
| download | dispatcher-26fbd8c1edaf94513d9750681edbe449b699efe4.tar.gz dispatcher-26fbd8c1edaf94513d9750681edbe449b699efe4.tar.bz2 dispatcher-26fbd8c1edaf94513d9750681edbe449b699efe4.zip | |
Trains move on tracks to the beat
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.
Diffstat (limited to 'src/simulation.h')
| -rw-r--r-- | src/simulation.h | 4 |
1 files changed, 1 insertions, 3 deletions
| diff --git a/src/simulation.h b/src/simulation.h index f86d513..fbe0a43 100644 --- a/src/simulation.h +++ b/src/simulation.h | |||
| @@ -47,8 +47,6 @@ public: | |||
| 47 | return level_; | 47 | return level_; |
| 48 | } | 48 | } |
| 49 | 49 | ||
| 50 | static vec2s posInDir(vec2s orig, Direction dir); | ||
| 51 | |||
| 52 | private: | 50 | private: |
| 53 | 51 | ||
| 54 | 52 | ||
| @@ -60,7 +58,7 @@ private: | |||
| 60 | bool validate = false); | 58 | bool validate = false); |
| 61 | 59 | ||
| 62 | const Level& level_; | 60 | const Level& level_; |
| 63 | Schedule schedule_ { 120 }; | 61 | Schedule schedule_ { 90 }; |
| 64 | 62 | ||
| 65 | std::vector<Entity> entities_; | 63 | std::vector<Entity> entities_; |
| 66 | std::deque<id_type> available_; | 64 | std::deque<id_type> available_; |
