#include <src/orxonox/objects/weaponsystem/munitions/ReplenishingMunition.h>
Public Member Functions | |
ReplenishingMunition (BaseObject *creator) | |
virtual | ~ReplenishingMunition () |
Protected Attributes | |
float | replenishIntervall_ |
unsigned int | replenishMunitionAmount_ |
Private Member Functions | |
void | initializeTimer () |
void | replenish () |
Private Attributes | |
Timer< ReplenishingMunition > | replenishingTimer_ |
orxonox::ReplenishingMunition::ReplenishingMunition | ( | BaseObject * | creator | ) |
virtual orxonox::ReplenishingMunition::~ReplenishingMunition | ( | ) | [inline, virtual] |
void orxonox::ReplenishingMunition::initializeTimer | ( | ) | [private] |
References orxonox::createExecutor(), replenish(), replenishingTimer_, and replenishIntervall_.
Referenced by ReplenishingMunition().
void orxonox::ReplenishingMunition::replenish | ( | ) | [private] |
References orxonox::Munition::addMunition(), orxonox::Munition::bAllowMunitionRefilling_, and replenishMunitionAmount_.
Referenced by initializeTimer().
Referenced by initializeTimer(), and ReplenishingMunition().
float orxonox::ReplenishingMunition::replenishIntervall_ [protected] |
Referenced by initializeTimer(), orxonox::LaserMunition::LaserMunition(), and ReplenishingMunition().
unsigned int orxonox::ReplenishingMunition::replenishMunitionAmount_ [protected] |
Referenced by orxonox::LaserMunition::LaserMunition(), replenish(), and ReplenishingMunition().