RhythmGame 1.4.3
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
support::BeatorajaState Struct Reference

Public Member Functions

 BeatorajaState (const int n)
 
void setModifyLanes (std::vector< int > lanes)
 
void classifyAssignable (const int64_t threshold, const int64_t timelineTime, const std::vector< int > &assignableLaneCopy, std::vector< int > &primaryLane, std::vector< int > &inferiorLane) const
 
void timeBasedShuffle (JavaRandom &rng, const std::span< std::vector< Note > > &notes, const Timeline &timeline, const std::vector< int > &changeableLaneCopy, const std::vector< int > &assignableLaneCopy, const int64_t threshold, std::unordered_map< int, int > &randomMap, const std::function< int(std::vector< int > &)> &selectLane)
 
void updateNoteTime (const std::span< std::vector< Note > > &notes, const Timeline &timeline, const std::unordered_map< int, int > &randomMap)
 
void updateLongNoteState (const std::span< std::vector< Note > > &notes, const Timeline &timeline, const std::unordered_map< int, int > &permutationMap)
 

Static Public Member Functions

static auto getMainNote (const std::span< std::vector< Note > > &notes, const Timeline &timeline, const int lane) -> const Note *
 
static void classifyLanes (const std::span< std::vector< Note > > &notes, const Timeline &timeline, const std::vector< int > &changeableLane, std::vector< int > &noteLane, std::vector< int > &emptyLane)
 

Public Attributes

int numCols
 
std::vector< int > modifyLanes
 
std::vector< int > changeableLane
 
std::vector< int > assignableLane
 
std::vector< int64_t > lastNoteTime
 
std::unordered_map< int, int > lnActive
 

Constructor & Destructor Documentation

◆ BeatorajaState()

support::BeatorajaState::BeatorajaState ( const int  n)
inlineexplicit

Member Function Documentation

◆ classifyAssignable()

void support::BeatorajaState::classifyAssignable ( const int64_t  threshold,
const int64_t  timelineTime,
const std::vector< int > &  assignableLaneCopy,
std::vector< int > &  primaryLane,
std::vector< int > &  inferiorLane 
) const
inline

◆ classifyLanes()

static void support::BeatorajaState::classifyLanes ( const std::span< std::vector< Note > > &  notes,
const Timeline &  timeline,
const std::vector< int > &  changeableLane,
std::vector< int > &  noteLane,
std::vector< int > &  emptyLane 
)
inlinestatic

◆ getMainNote()

static auto support::BeatorajaState::getMainNote ( const std::span< std::vector< Note > > &  notes,
const Timeline &  timeline,
const int  lane 
) -> const Note*
inlinestatic

◆ setModifyLanes()

void support::BeatorajaState::setModifyLanes ( std::vector< int >  lanes)
inline

◆ timeBasedShuffle()

void support::BeatorajaState::timeBasedShuffle ( JavaRandom &  rng,
const std::span< std::vector< Note > > &  notes,
const Timeline &  timeline,
const std::vector< int > &  changeableLaneCopy,
const std::vector< int > &  assignableLaneCopy,
const int64_t  threshold,
std::unordered_map< int, int > &  randomMap,
const std::function< int(std::vector< int > &)> &  selectLane 
)
inline

◆ updateLongNoteState()

void support::BeatorajaState::updateLongNoteState ( const std::span< std::vector< Note > > &  notes,
const Timeline &  timeline,
const std::unordered_map< int, int > &  permutationMap 
)
inline

◆ updateNoteTime()

void support::BeatorajaState::updateNoteTime ( const std::span< std::vector< Note > > &  notes,
const Timeline &  timeline,
const std::unordered_map< int, int > &  randomMap 
)
inline

Member Data Documentation

◆ assignableLane

std::vector<int> support::BeatorajaState::assignableLane

◆ changeableLane

std::vector<int> support::BeatorajaState::changeableLane

◆ lastNoteTime

std::vector<int64_t> support::BeatorajaState::lastNoteTime

◆ lnActive

std::unordered_map<int, int> support::BeatorajaState::lnActive

◆ modifyLanes

std::vector<int> support::BeatorajaState::modifyLanes

◆ numCols

int support::BeatorajaState::numCols

The documentation for this struct was generated from the following file: