#pragma once /** * The controls of a player */ class Player { private: int DAS; // Delayed Auto-Shift, goes from 0 (instant) to 30 (500ms) int ARR; // Auto-Repeat Rate, goes from 0 (instant) to 30 (500ms) int SDR; // Soft Drop Rate, goes from 0 (instant) to 6 (100ms) public: /** * Sets default controls */ Player(); /** * Try setting DAS to the desired value * @return If it is possible */ bool setDAS(int DAS); /** * Try setting ARR to the desired value * @return If it is possible */ bool setARR(int ARR); /** * Try setting SDR to the desired value * @return If it is possible */ bool setSDR(int SDR); /** * @return DAS value */ int getDAS() const; /** * @return ARR value */ int getARR() const; /** * @return SDR value */ int getSDR() const; };