orxonox::Projectile Class Reference

#include <src/orxonox/objects/weaponsystem/projectiles/Projectile.h>

Inheritance diagram for orxonox::Projectile:

orxonox::MovableEntity orxonox::PawnListener orxonox::MobileEntity orxonox::ClientConnectionListener orxonox::OrxonoxClass orxonox::WorldEntity orxonox::Tickable orxonox::OrxonoxClass orxonox::BaseObject orxonox::Synchronisable orxonox::OrxonoxClass orxonox::OrxonoxClass orxonox::OrxonoxClass orxonox::BillboardProjectile orxonox::LightningGunProjectile orxonox::ParticleProjectile

List of all members.

Public Member Functions

virtual bool collidesAgainst (WorldEntity *otherObject, btManifoldPoint &contactPoint)
 Virtual function that gets called when this object collides with another.
virtual void destroyedPawn (Pawn *pawn)
void destroyObject ()
float getDamage () const
PawngetOwner () const
 Projectile (BaseObject *creator)
void setConfigValues ()
 Function to collect the SetConfigValue-macro calls.
void setDamage (float damage)
void setOwner (Pawn *owner)
virtual void tick (float dt)
 Gets called every frame.
virtual ~Projectile ()

Private Attributes

bool bDestroy_
float damage_
Timer< ProjectiledestroyTimer_
float lifetime_
Pawnowner_


Constructor & Destructor Documentation

orxonox::Projectile::Projectile ( BaseObject creator  ) 

orxonox::Projectile::~Projectile (  )  [virtual]


Member Function Documentation

bool orxonox::Projectile::collidesAgainst ( WorldEntity otherObject,
btManifoldPoint &  contactPoint 
) [virtual]

Virtual function that gets called when this object collides with another.

Parameters:
otherObject The object this one has collided into. contactPoint Contact point provided by Bullet. Holds more information and can me modified. See return value. Returning false means that no modification to the contactPoint has been made. Return true otherwise! Condition is that enableCollisionCallback() was called.

Reimplemented from orxonox::MovableEntity.

References bDestroy_, orxonox::Pawn::damage(), orxonox::ModifierType::Damage, damage_, orxonox::BaseObject::getCreator(), orxonox::WorldEntity::getOrientation(), orxonox::Pawn::getPickups(), orxonox::WorldEntity::getPosition(), orxonox::GameMode::isMaster(), owner_, orxonox::PickupCollection::processModifiers(), orxonox::ParticleSpawner::setDestroyAfterLife(), orxonox::ParticleSpawner::setLifetime(), orxonox::StaticEntity::setOrientation(), orxonox::StaticEntity::setPosition(), and orxonox::ParticleEmitter::setSource().

void orxonox::Projectile::destroyedPawn ( Pawn pawn  )  [virtual]

Implements orxonox::PawnListener.

References owner_.

void orxonox::Projectile::destroyObject (  ) 

References orxonox::GameMode::isMaster().

Referenced by Projectile().

float orxonox::Projectile::getDamage (  )  const [inline]

Pawn* orxonox::Projectile::getOwner (  )  const [inline]

Reimplemented from orxonox::MovableEntity.

void orxonox::Projectile::setConfigValues (  ) 

Function to collect the SetConfigValue-macro calls.

Reimplemented from orxonox::OrxonoxClass.

References damage_, lifetime_, and SetConfigValue.

Referenced by Projectile().

void orxonox::Projectile::setDamage ( float  damage  )  [inline]

void orxonox::Projectile::setOwner ( Pawn owner  )  [inline]

void orxonox::Projectile::tick ( float  dt  )  [virtual]

Gets called every frame.

Parameters:
dt The time since the last frame in seconds

Reimplemented from orxonox::MobileEntity.

References bDestroy_, orxonox::BaseObject::isActive(), and SUPER.


Member Data Documentation

Referenced by collidesAgainst(), Projectile(), and tick().

Referenced by collidesAgainst(), and setConfigValues().

Referenced by Projectile().

Referenced by Projectile(), and setConfigValues().

Reimplemented from orxonox::MovableEntity.

Referenced by collidesAgainst(), destroyedPawn(), and Projectile().


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

Generated on Tue Jul 28 16:22:57 2009 for Orxonox by  doxygen 1.5.6