diff options
Diffstat (limited to 'src/core/slot.cc')
-rw-r--r-- | src/core/slot.cc | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/src/core/slot.cc b/src/core/slot.cc index 89f885c..ace3be2 100644 --- a/src/core/slot.cc +++ b/src/core/slot.cc @@ -6,6 +6,7 @@ #include "core/slot.h" #include "core/item.h" +#include "core/application.h" namespace core { @@ -13,24 +14,40 @@ namespace core Slot::Slot() { slot_item = 0; - slot_active = true; + slot_flags = 0; slot_timestamp = 0; + slot_last_fired = 0; + + slot_interval = 0; + slot_lifespan = 0; + slot_speed = 0.0f; + + } Slot::Slot(const math::Vector3f & location) : slot_location(location) { slot_item = 0; - slot_active = true; + slot_flags = 0; slot_timestamp = 0; + slot_last_fired = 0; + slot_interval = 0;; + slot_lifespan = 0; + slot_speed = 0.0f; } Slot::~Slot() { slot_item = 0; - slot_active = false; + slot_flags = 0; slot_timestamp = 0; + slot_last_fired = 0; + + slot_interval = 0; + slot_lifespan = 0; + slot_speed = 0.0f; } void Slot::set_item(Item *item) |