52 for (
const auto &pEffect : mEffects) {
53 if (pEffect->GetActive() != 0) {
71 mSmallMotor = nSmallMotor;
85 mBigMotor = nBigMotor;
99 mVibration = nVibration;
117 const std::vector<std::unique_ptr<MotorEffect>> &
GetEffects()
const {
123 return mBeatEffect.get();
131 std::vector<std::unique_ptr<MotorEffect>> mEffects;
132 std::unique_ptr<MotorEffect> mBeatEffect;
One player's controller, with its beat pulse and its effects.
Definition forcefeedbackmgrcontroller.h:14
int GetVibration() const
Definition forcefeedbackmgrcontroller.h:89
void CancelAll()
Cancel the beat pulse and every effect.
int GetBigMotor() const
Definition forcefeedbackmgrcontroller.h:75
void SetEnabled(int nEnabled)
Set whether the beat pulse drives the controller.
Definition forcefeedbackmgrcontroller.h:112
~Controller()
Delete the effects and the beat pulse.
int GetEnabled() const
Definition forcefeedbackmgrcontroller.h:103
Controller(int nController, int nTicksPerBar)
Construct the beat pulse and the effects of a controller.
bool IsPlayingEffect() const
Report whether an effect runs.
Definition forcefeedbackmgrcontroller.h:51
int GetSmallMotor() const
Definition forcefeedbackmgrcontroller.h:61
MotorEffect * GetBeatEffect()
Definition forcefeedbackmgrcontroller.h:122
void SetVibration(int nVibration)
Set the vibration option of the game.
Definition forcefeedbackmgrcontroller.h:98
const std::vector< std::unique_ptr< MotorEffect > > & GetEffects() const
Definition forcefeedbackmgrcontroller.h:117
void SetBigMotor(int nBigMotor)
Set the big motor's last level.
Definition forcefeedbackmgrcontroller.h:84
void SetSmallMotor(int nSmallMotor)
Set the small motor's last state.
Definition forcefeedbackmgrcontroller.h:70
One vibration pattern of a controller, which runs both motors for a duration.
Definition forcefeedbackmgrmotoreffect.h:14