feat: implemented dice rolling
This commit is contained in:
parent
ddf9936f58
commit
ae334c395a
4 changed files with 127 additions and 17 deletions
|
|
@ -1,6 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
|
||||
enum Die {
|
||||
D_COIN = 2,
|
||||
|
|
@ -42,5 +43,9 @@ namespace active_dice {
|
|||
void Add(Die die);
|
||||
void Remove(size_t at);
|
||||
Die Get(size_t at);
|
||||
uint8_t GetValue(size_t at);
|
||||
size_t Count();
|
||||
void ReRoll();
|
||||
} // namespace active_dice
|
||||
|
||||
uint8_t RollDie(Die die);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue