wavelength 1.0.0
Loading...
Searching...
No Matches
worldtrack.h
Go to the documentation of this file.
1#pragma once
2
3#include <vector>
4
12public:
20
28
39 void Insert(int nTick, char cLetter);
40
51 std::vector<int> *GetEvents(char cLetter);
52
54 static constexpr char kFirstLetter = 'A';
55
57 static constexpr int kListCount = 7;
58
59private:
60 std::vector<std::vector<int>> mEvents;
61};
~WorldTrack()
Release the event lists.
void Insert(int nTick, char cLetter)
Add the tick of an event to the list of its letter, keeping the list sorted.
WorldTrack()
Construct the track with seven empty event lists.
static constexpr int kListCount
The number of event lists, one for each letter from A to G.
Definition worldtrack.h:57
static constexpr char kFirstLetter
The letter of the first event list.
Definition worldtrack.h:54
std::vector< int > * GetEvents(char cLetter)
Report the event list of a letter.