#include <ShotProjectile.h>

Definition at line 33 of file ShotProjectile.h.
| ShotProjectile::ShotProjectile | ( | FixedVector & | startPosition, | |
| FixedVector & | velocity, | |||
| WeaponProjectile * | weapon, | |||
| WeaponFireContext & | weaponContext, | |||
| unsigned int | flareType, | |||
| fixed | spinSpeed | |||
| ) |
Definition at line 37 of file ShotProjectile.cpp.
| ShotProjectile::~ShotProjectile | ( | ) | [virtual] |
Definition at line 80 of file ShotProjectile.cpp.
References Action::context_, ScorchedContext::getViewPoints(), ViewPoints::releaseViewPoint(), and vPoint_.
| ShotProjectile::ShotProjectile | ( | const ShotProjectile & | ) | [private] |
| void ShotProjectile::simulate | ( | fixed | frameTime, | |
| bool & | remove | |||
| ) | [virtual] |
Reimplemented from PhysicsParticle.
Definition at line 130 of file ShotProjectile.cpp.
References PhysicsParticle::applyForce(), fixed::asFloat(), FixedVector::asVector(), LandscapeTex::border, Action::context_, RenderTracer::TracerLinePoint::cross, doCollision(), drag_, LandscapeTexType::eWater, PhysicsParticle::getCurrentPosition(), PhysicsParticle::getCurrentVelocity(), LandscapeMaps::getDefinitions(), ScorchedContext::getLandscapeMaps(), ScorchedContext::getServerMode(), WeaponProjectile::getShowShotPath(), LandscapeDefinitionCache::getTex(), LandscapeTexType::getType(), getWeapon(), LandscapeTexBorderWater::height, RenderTracer::TracerLinePoint::position, positions_, ViewPoints::ViewPoint::setLookFrom(), ViewPoints::ViewPoint::setPosition(), PhysicsParticle::simulate(), snapTime_, FixedVector::StoreNormalize(), thrustAmount_, thrustTime_, timedCollision_, totalTime_, up_, and vPoint_.
| void ShotProjectile::init | ( | ) | [virtual] |
Implements Action.
Definition at line 50 of file ShotProjectile.cpp.
References fixed::asFloat(), Action::context_, drag_, flareType_, WeaponProjectile::getDrag(), ViewPoints::getNewViewPoint(), WeaponFireContext::getPlayerId(), WeaponProjectile::getScale(), ScorchedContext::getServerMode(), WeaponProjectile::getThrustAmount(), WeaponProjectile::getThrustTime(), WeaponProjectile::getTimedCollision(), WeaponProjectile::getUnder(), ScorchedContext::getViewPoints(), WeaponProjectile::getWallCollision(), getWeapon(), WeaponProjectile::getWindFactor(), ParticleTypeShot, Action::setActionRender(), PhysicsParticle::setPhysics(), spinSpeed_, startPosition_, thrustAmount_, thrustTime_, timedCollision_, velocity_, vPoint_, weapon_, and weaponContext_.
| void ShotProjectile::collision | ( | PhysicsParticleObject & | position, | |
| ScorchedCollisionId | collisionId | |||
| ) | [virtual] |
Reimplemented from PhysicsParticle.
Definition at line 85 of file ShotProjectile.cpp.
References PhysicsParticle::collision(), PhysicsParticle::collision_, Action::context_, doCollision(), TankContainer::getAllTanks(), PhysicsParticle::getCurrentPosition(), getPlayerId(), PhysicsParticleObject::getPosition(), TankState::getSpectator(), TankState::getState(), Tank::getState(), Tank::getTankAI(), ScorchedContext::getTankContainer(), getWeapon(), TankAI::shotLanded(), and TankState::sNormal.
| std::string ShotProjectile::getActionDetails | ( | ) | [virtual] |
Reimplemented from Action.
Definition at line 72 of file ShotProjectile.cpp.
References S3D::formatStringBuffer(), Accessory::getName(), AccessoryPart::getParent(), startPosition_, velocity_, and weapon_.
| unsigned int ShotProjectile::getPlayerId | ( | ) | [inline] |
Definition at line 49 of file ShotProjectile.h.
References WeaponFireContext::getPlayerId(), and weaponContext_.
Referenced by collision(), and MissileActionRenderer::draw().
| WeaponProjectile* ShotProjectile::getWeapon | ( | ) | [inline] |
Definition at line 50 of file ShotProjectile.h.
References weapon_.
Referenced by collision(), doCollision(), MissileActionRenderer::draw(), init(), PhysicsParticleActionObject::shotShieldHit(), simulate(), and MissileActionRenderer::simulate().
| std::list<RenderTracer::TracerLinePoint>& ShotProjectile::getPositions | ( | ) | [inline] |
Definition at line 52 of file ShotProjectile.h.
References positions_.
Referenced by MissileActionRenderer::draw().
| void ShotProjectile::doCollision | ( | FixedVector & | position | ) | [protected] |
Definition at line 230 of file ShotProjectile.cpp.
References FixedVector::asVector(), Action::context_, Weapon::fireWeapon(), WeaponProjectile::getCollisionAction(), PhysicsParticle::getCurrentVelocity(), WeaponFireContext::getPlayerId(), ScorchedContext::getServerMode(), WeaponProjectile::getShowEndPoint(), WeaponProjectile::getShowShotPath(), getWeapon(), RenderTracer::instance(), positions_, and weaponContext_.
Referenced by collision(), and simulate().
| const ShotProjectile& ShotProjectile::operator= | ( | const ShotProjectile & | ) | [private] |
FixedVector ShotProjectile::startPosition_ [protected] |
FixedVector ShotProjectile::velocity_ [protected] |
WeaponProjectile* ShotProjectile::weapon_ [protected] |
Definition at line 57 of file ShotProjectile.h.
Referenced by getActionDetails(), getWeapon(), and init().
ViewPoints::ViewPoint* ShotProjectile::vPoint_ [protected] |
Definition at line 58 of file ShotProjectile.h.
Referenced by init(), simulate(), and ~ShotProjectile().
WeaponFireContext ShotProjectile::weaponContext_ [protected] |
Definition at line 59 of file ShotProjectile.h.
Referenced by doCollision(), getPlayerId(), and init().
unsigned int ShotProjectile::flareType_ [protected] |
bool ShotProjectile::up_ [protected] |
fixed ShotProjectile::snapTime_ [protected] |
fixed ShotProjectile::totalTime_ [protected] |
fixed ShotProjectile::thrustTime_ [protected] |
fixed ShotProjectile::thrustAmount_ [protected] |
fixed ShotProjectile::drag_ [protected] |
fixed ShotProjectile::timedCollision_ [protected] |
fixed ShotProjectile::spinSpeed_ [protected] |
std::list<RenderTracer::TracerLinePoint> ShotProjectile::positions_ [protected] |
Definition at line 72 of file ShotProjectile.h.
Referenced by doCollision(), getPositions(), and simulate().
1.5.3