summaryrefslogtreecommitdiff
path: root/src/common.hpp
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2017-12-16 20:37:10 +0000
committerPaweł Redman <pawel.redman@gmail.com>2017-12-16 20:37:10 +0000
commit1b1704512b4c83dfa7e17c30f0facc5a7645181a (patch)
treef843823210be5dda636d2ba3f5149ba9f54cd876 /src/common.hpp
parent273c601a94464bef2161b9c3a29ea3cf901340e9 (diff)
Clean up unit parameters a bit.
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);
};