wavelength 1.0.0
Loading...
Searching...
No Matches
ForceFeedbackMgr::Controller Class Reference

One player's controller, with its beat pulse and its effects. More...

#include <forcefeedbackmgrcontroller.h>

Public Member Functions

 Controller (int nController, int nTicksPerBar)
 Construct the beat pulse and the effects of a controller.
 ~Controller ()
 Delete the effects and the beat pulse.
void CancelAll ()
 Cancel the beat pulse and every effect.
bool IsPlayingEffect () const
 Report whether an effect runs.
int GetSmallMotor () const
void SetSmallMotor (int nSmallMotor)
 Set the small motor's last state.
int GetBigMotor () const
void SetBigMotor (int nBigMotor)
 Set the big motor's last level.
int GetVibration () const
void SetVibration (int nVibration)
 Set the vibration option of the game.
int GetEnabled () const
void SetEnabled (int nEnabled)
 Set whether the beat pulse drives the controller.
const std::vector< std::unique_ptr< MotorEffect > > & GetEffects () const
MotorEffect * GetBeatEffect ()

Detailed Description

One player's controller, with its beat pulse and its effects.

The class is not polymorphic. The RTTI of a pointer to it records the name.

Constructor & Destructor Documentation

◆ Controller()

ForceFeedbackMgr::Controller::Controller ( int nController,
int nTicksPerBar )

Construct the beat pulse and the effects of a controller.

Parameters
nControllerThe controller.
nTicksPerBarThe song ticks in one bar, which sets the crippler effect's duration.
Ghidra address:
NTSC-U/C: 0x0010c4b8
Ghidra address:
PAL: 0x0010dbf0

◆ ~Controller()

ForceFeedbackMgr::Controller::~Controller ( )

Delete the effects and the beat pulse.

Ghidra address:
NTSC-U/C: 0x0010c708
Ghidra address:
PAL: 0x0010de40

Member Function Documentation

◆ CancelAll()

void ForceFeedbackMgr::Controller::CancelAll ( )

Cancel the beat pulse and every effect.

The name is inferred.

Ghidra address:
NTSC-U/C: 0x0010c7f0
Ghidra address:
PAL: 0x0010df28

◆ IsPlayingEffect()

bool ForceFeedbackMgr::Controller::IsPlayingEffect ( ) const
inline

Report whether an effect runs.

The program expands it at its one call.

The name is inferred.

Returns
Whether an effect runs.

◆ GetSmallMotor()

int ForceFeedbackMgr::Controller::GetSmallMotor ( ) const
inline
Returns
The small motor's last state.

◆ SetSmallMotor()

void ForceFeedbackMgr::Controller::SetSmallMotor ( int nSmallMotor)
inline

Set the small motor's last state.

Parameters
nSmallMotorThe state.

◆ GetBigMotor()

int ForceFeedbackMgr::Controller::GetBigMotor ( ) const
inline
Returns
The big motor's last level.

◆ SetBigMotor()

void ForceFeedbackMgr::Controller::SetBigMotor ( int nBigMotor)
inline

Set the big motor's last level.

Parameters
nBigMotorThe level.

◆ GetVibration()

int ForceFeedbackMgr::Controller::GetVibration ( ) const
inline
Returns
The vibration option of the game.

◆ SetVibration()

void ForceFeedbackMgr::Controller::SetVibration ( int nVibration)
inline

Set the vibration option of the game.

Parameters
nVibrationThe option.

◆ GetEnabled()

int ForceFeedbackMgr::Controller::GetEnabled ( ) const
inline
Returns
Whether the beat pulse drives the controller.

◆ SetEnabled()

void ForceFeedbackMgr::Controller::SetEnabled ( int nEnabled)
inline

Set whether the beat pulse drives the controller.

Parameters
nEnabledWhether it does.

◆ GetEffects()

const std::vector< std::unique_ptr< MotorEffect > > & ForceFeedbackMgr::Controller::GetEffects ( ) const
inline
Returns
The effects, indexed by Effect, deleted with the controller.

◆ GetBeatEffect()

MotorEffect * ForceFeedbackMgr::Controller::GetBeatEffect ( )
inline
Returns
The beat pulse.

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