diff options
Diffstat (limited to 'src/core/slot.cc')
-rw-r--r-- | src/core/slot.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/core/slot.cc b/src/core/slot.cc index bb7b622..e1ccd05 100644 --- a/src/core/slot.cc +++ b/src/core/slot.cc @@ -28,6 +28,18 @@ Slot::~Slot() { } +void Slot::set_flag(const Flags flag) +{ + slot_flags = (slot_flags | (unsigned int) flag); + set_timestamp(game() ? game()->timestamp() : 1); +} + +void Slot::unset_flag(const Flags flag) +{ + slot_flags = slot_flags & ~((unsigned int) flag); + set_timestamp(game() ? game()->timestamp() : 1); +} + void Slot::set_projectile_speed(const float projectile_speed) { slot_projectile_speed = projectile_speed; |