Rise
The Vieneo Province
Loading...
Searching...
No Matches
PersonWaiting::Scheduler Class Reference

#include <PersonWaitingPolicy.h>

Collaboration diagram for PersonWaiting::Scheduler:
[legend]

Public Member Functions

 Scheduler (std::uint64_t avatarId, std::uint64_t spawnSalt, const Configuration &configuration=Configuration())
void Reset ()
Command Update (const Input &input)

Private Types

enum class  State {
  Inactive , Delay , Gesture , HipEntry ,
  HipHold , HipExit , NeutralBlend
}

Private Member Functions

double UnitRandom ()
double Range (double minimum, double maximum, double defaultMinimum, double defaultMaximum)
void BeginDelay (bool initial)
Command BeginMovement ()
int ChooseGesture ()

Static Private Member Functions

static double Finite (double value, double fallback)
static double Positive (double value, double fallback)

Private Attributes

Configuration settings_
std::uint32_t random_
std::array< double, GestureCount > remainingCooldown_
State state_ = State::Inactive
Movement pending_ = Movement::None
double timer_ = 0.0
int previous_ = -1

Detailed Description

Definition at line 59 of file PersonWaitingPolicy.h.

Member Enumeration Documentation

◆ State

enum class PersonWaiting::Scheduler::State
strongprivate
Enumerator
Inactive 
Delay 
Gesture 
HipEntry 
HipHold 
HipExit 
NeutralBlend 

Definition at line 175 of file PersonWaitingPolicy.h.

Constructor & Destructor Documentation

◆ Scheduler()

PersonWaiting::Scheduler::Scheduler ( std::uint64_t avatarId,
std::uint64_t spawnSalt,
const Configuration & configuration = Configuration() )
inlineexplicit

Definition at line 62 of file PersonWaitingPolicy.h.

Member Function Documentation

◆ BeginDelay()

void PersonWaiting::Scheduler::BeginDelay ( bool initial)
inlineprivate

Definition at line 205 of file PersonWaitingPolicy.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ BeginMovement()

Command PersonWaiting::Scheduler::BeginMovement ( )
inlineprivate

Definition at line 212 of file PersonWaitingPolicy.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ChooseGesture()

int PersonWaiting::Scheduler::ChooseGesture ( )
inlineprivate

Definition at line 218 of file PersonWaitingPolicy.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Finite()

double PersonWaiting::Scheduler::Finite ( double value,
double fallback )
inlinestaticprivate

Definition at line 184 of file PersonWaitingPolicy.h.

Here is the caller graph for this function:

◆ Positive()

double PersonWaiting::Scheduler::Positive ( double value,
double fallback )
inlinestaticprivate

Definition at line 188 of file PersonWaitingPolicy.h.

Here is the caller graph for this function:

◆ Range()

double PersonWaiting::Scheduler::Range ( double minimum,
double maximum,
double defaultMinimum,
double defaultMaximum )
inlineprivate

Definition at line 199 of file PersonWaitingPolicy.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Reset()

void PersonWaiting::Scheduler::Reset ( )
inline

Definition at line 75 of file PersonWaitingPolicy.h.

Here is the caller graph for this function:

◆ UnitRandom()

double PersonWaiting::Scheduler::UnitRandom ( )
inlineprivate

Definition at line 192 of file PersonWaitingPolicy.h.

Here is the caller graph for this function:

◆ Update()

Command PersonWaiting::Scheduler::Update ( const Input & input)
inline

Definition at line 84 of file PersonWaitingPolicy.h.

Here is the call graph for this function:

Member Data Documentation

◆ pending_

Movement PersonWaiting::Scheduler::pending_ = Movement::None
private

Definition at line 180 of file PersonWaitingPolicy.h.

◆ previous_

int PersonWaiting::Scheduler::previous_ = -1
private

Definition at line 182 of file PersonWaitingPolicy.h.

◆ random_

std::uint32_t PersonWaiting::Scheduler::random_
private

Definition at line 177 of file PersonWaitingPolicy.h.

◆ remainingCooldown_

std::array<double, GestureCount> PersonWaiting::Scheduler::remainingCooldown_
private

Definition at line 178 of file PersonWaitingPolicy.h.

◆ settings_

Configuration PersonWaiting::Scheduler::settings_
private

Definition at line 176 of file PersonWaitingPolicy.h.

◆ state_

State PersonWaiting::Scheduler::state_ = State::Inactive
private

Definition at line 179 of file PersonWaitingPolicy.h.

◆ timer_

double PersonWaiting::Scheduler::timer_ = 0.0
private

Definition at line 181 of file PersonWaitingPolicy.h.


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