Orxonox: orxonox::LightningGun Class Reference

# orxonox::LightningGun Class Reference

`#include <src/orxonox/objects/weaponsystem/weaponmodes/LightningGun.h>`

Inheritance diagram for orxonox::LightningGun:

List of all members.

## Public Member Functions

virtual void | fire ()
| LightningGun (BaseObject *creator)
virtual | ~LightningGun ()

## Private Attributes

float | speed_

## Constructor & Destructor Documentation

orxonox::LightningGun::LightningGun | ( | BaseObject * | creator | ) |

References orxonox::WeaponMode::damage_, RegisterObject, orxonox::WeaponMode::reloadTime_, orxonox::WeaponMode::setMunitionName(), and speed_.

orxonox::LightningGun::~LightningGun | ( |  | ) | `[virtual]`

## Member Function Documentation

void orxonox::LightningGun::fire | ( |  | ) | `[virtual]`

Implements orxonox::WeaponMode.

References orxonox::WeaponMode::getDamage(), orxonox::WeaponMode::getMuzzleDirection(), orxonox::WeaponMode::getMuzzleOrientation(), orxonox::WeaponMode::getMuzzlePosition(), orxonox::WeaponMode::getWeapon(), orxonox::MobileEntity::setAcceleration(), orxonox::Projectile::setDamage(), orxonox::LightningGunProjectile::setMaterial(), orxonox::MovableEntity::setOrientation(), orxonox::Projectile::setOwner(), orxonox::MovableEntity::setPosition(), orxonox::MobileEntity::setVelocity(), and speed_.

## Member Data Documentation

float orxonox::LightningGun::speed_`[private]`

Referenced by fire(), and LightningGun().

The documentation for this class was generated from the following files:

- src/orxonox/objects/weaponsystem/weaponmodes/LightningGun.h
- src/orxonox/objects/weaponsystem/weaponmodes/LightningGun.cc