ColorRace/tests/helpers/SequenceDiceSource.h
2026-08-05 06:41:08 +02:00

22 lines
451 B
C++

//
// Created by sebastian on 05.08.26.
//
#ifndef COLORRACE_SEQUENCEDICESOURCE_H
#define COLORRACE_SEQUENCEDICESOURCE_H
#include "ludo/DiceSource.h"
class SequenceDiceSource : public ludo::IDiceSource{
public:
explicit SequenceDiceSource(const std::vector<int> &diceValues) : m_diceValues(diceValues) {}
int roll() override;
private:
std::vector<int> m_diceValues;
size_t m_index = 0;
};
#endif //COLORRACE_SEQUENCEDICESOURCE_H