summaryrefslogtreecommitdiff
path: root/src/common.hpp
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2018-04-01 14:04:53 +0200
committerPaweł Redman <pawel.redman@gmail.com>2018-04-01 14:04:53 +0200
commit020e91ca69f35329eae518f3fe92afba2e117d06 (patch)
treee7205023072b5d3a6bba4806c9663a7be469184f /src/common.hpp
parent2c8e84a3d2fe93f84d0ffca63967e81a03534c00 (diff)
Remove the fear mechanic.
Diffstat (limited to 'src/common.hpp')
-rw-r--r--src/common.hpp14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/common.hpp b/src/common.hpp
index 0f51590..5d68f06 100644
--- a/src/common.hpp
+++ b/src/common.hpp
@@ -238,16 +238,6 @@ namespace game {
class unit_t;
class effect_t;
- class die_t {
- public:
- size_t count = 1, sides = 20, bonus = 0;
-
- 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_);
- };
-
enum {
SELECT_NEW,
SELECT_OR,
@@ -261,7 +251,7 @@ namespace game {
public:
world::world_t world;
interface::state_t *interface;
- procgen::prng_t dice_prng;
+ procgen::prng_t prng;
std::unordered_set<entity_t*> awake_entities;
std::unordered_set<unit_t*> selected_units;
@@ -285,8 +275,6 @@ namespace game {
bool populate_pie_menu(std::vector<interface::pie_item_t> &items);
void command(v2f_t x, int number);
void spawn_soldier(v2f_t x);
-
- size_t roll(die_t die);
};
}