22 lines
451 B
C++
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
|