summaryrefslogtreecommitdiff
path: root/src/common.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/common.hpp')
-rw-r--r--src/common.hpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/common.hpp b/src/common.hpp
index f18f0b8..fd7327d 100644
--- a/src/common.hpp
+++ b/src/common.hpp
@@ -194,14 +194,14 @@ namespace game {
class unit_t;
class effect_t;
- class roll_params_t {
+ class die_t {
public:
size_t count = 1, sides = 20, bonus = 0;
- roll_params_t(void) = default;
- roll_params_t(size_t sides_);
- roll_params_t(size_t count_, size_t sides_);
- roll_params_t(size_t count_, size_t sides_, size_t bonus_);
+ die_t(void) = default;
+ die_t(size_t sides_);
+ die_t(size_t count_, size_t sides_);
+ die_t(size_t count_, size_t sides_, size_t bonus_);
};
class state_t {
@@ -225,7 +225,7 @@ namespace game {
void select(rectf_t rect);
void command(v2f_t x);
- size_t roll(roll_params_t *P);
+ size_t roll(die_t die);
void wake_everything(v2f_t x, float range);
};