resonance 1.0.1
Loading...
Searching...
No Matches
trackselector.h File Reference
#include <vector>
#include "app/msgsink.h"
#include "app/msgsource.h"
#include "game/nullplayer.h"
#include "game/player.h"
#include "msg/bumppacket.h"
#include "msg/message.h"
Include dependency graph for trackselector.h:

Go to the source code of this file.

Classes

class  TrackSelector
 Grid of which players occupy which track channel. More...

Variables

constexpr int kTrackSelectorChannelCount = 8
 Channels the selector tracks.
constexpr int kTrackSelectorSlotCount = 4
 Slots reserved per channel.

Variable Documentation

◆ kTrackSelectorChannelCount

int kTrackSelectorChannelCount = 8
constexpr

Channels the selector tracks.

The constructor writes this count into the object.

◆ kTrackSelectorSlotCount

int kTrackSelectorSlotCount = 4
constexpr

Slots reserved per channel.

The column stride the constructor and every accessor apply is 0x10 bytes over four-byte elements, so a column stores four. The fill loop's bound is the roster size rather than this constant, and a fifth player would therefore write past its column. Every caller in the image passes at most four players.