Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <beam.h>
Public Member Functions | |
void | ListenToOwner (bool listen) |
Beam (const Transformation &trans, const weapon_info &clne, void *own, Unit *firer, int sound) | |
void | Init (const Transformation &trans, const weapon_info &clne, void *own, Unit *firer) |
~Beam () | |
void | RemoveFromSystem (bool eradicate) |
float | refireTime () |
QVector | GetPosition () const |
void | SetPosition (const QVector &) |
void | SetOrientation (const Vector &p, const Vector &q, const Vector &r) |
void | UpdatePhysics (const Transformation &, const Matrix &, class Unit *target, float trackingcone, Unit *targetToCollideWith, float HeatSink, Unit *firer, Unit *superunit) |
void | Draw (const Transformation &, const Matrix &, class Unit *target, float trackingcone) |
void | Destabilize () |
bool | Dissolved () |
bool | Ready () |
bool | Collide (class Unit *target, Unit *firer, Unit *superunit) |
Static Public Member Functions | |
static void | ProcessDrawQueue () |
Beam::Beam | ( | const Transformation & | trans, |
const weapon_info & | clne, | ||
void * | own, | ||
Unit * | firer, | ||
int | sound | ||
) |
Definition at line 26 of file beam.cpp.
References DecalQueue::AddTexture(), AUDCreateSound(), beamdrawqueue, weapon_info::file, g, Init(), weapon_info::sound, TRILINEAR, and VSCONSTRUCT2.
Beam::~Beam | ( | ) |
Definition at line 43 of file beam.cpp.
References AUDDeleteSound(), DecalQueue::DelTexture(), RemoveFromSystem(), and VSDESTRUCT2.
Definition at line 358 of file beam_generic.cpp.
References _Universe, Universe::AccessCockpit(), Unit::AddCargo(), Unit::ApplyDamage(), Unit::ApplyForce(), ASTEROIDPTR, AUDCreateSoundWAV(), AUDPlay(), c, Unit::CanAddCargo(), Cargo::content, UniverseUtil::cos(), Unit::faction, float, Unit::getAIState(), Cargo::GetCategory(), Unit::GetDestinations(), FactionUtil::GetFactionIndex(), Unit::GetMass(), GetMasterPartList(), Cockpit::GetParent(), FactionUtil::GetUpgradeFaction(), VegaConfig::getVariable(), Unit::GetVelocity(), Universe::isPlayerStarship(), Unit::isTractorable(), Unit::isUnit(), Unit::Kill(), Magnitude(), mymin, Unit::name, NEBULAPTR, Unit::owner, XMLSupport::parse_bool(), XMLSupport::parse_float(), PLANETPTR, Unit::Position(), Cargo::quantity, QVector, Unit::rayCollide(), Unit::rSize(), Unit::sim_atom_multiplier, SIMULATION_ATOM, UniverseUtil::sqrt(), Unit::tractorIn, Unit::tractorPush, Vector, vs_config, and VSFileSystem::vs_fprintf().
|
inline |
Definition at line 81 of file beam.h.
Referenced by Mount::UnFire(), and UpdatePhysics().
|
inline |
Definition at line 85 of file beam.h.
Referenced by Unit::Fire().
void Beam::Draw | ( | const Transformation & | trans, |
const Matrix & | m, | ||
class Unit * | target, | ||
float | trackingcone | ||
) |
Definition at line 59 of file beam.cpp.
References AdjustMatrixToTrackTarget(), AUDAdjustSound(), AUDSoundGain(), beamdrawqueue, Transformation::Compose(), Transformation::position, speed, Transformation::to_matrix(), and Vector.
|
inline |
Definition at line 66 of file beam.h.
References Transformation::position.
void Beam::Init | ( | const Transformation & | trans, |
const weapon_info & | clne, | ||
void * | own, | ||
Unit * | firer | ||
) |
Definition at line 52 of file beam_generic.cpp.
References weapon_info::a, GFXColor::a, AUDStartPlaying(), weapon_info::b, GFXColor::b, LineCollide::BEAM, weapon_info::Damage, float_to_int(), weapon_info::g, GFXColor::g, VegaConfig::getVariable(), GFXQUAD, weapon_info::Longrange, mymax(), LineCollide::object, XMLSupport::parse_int(), weapon_info::PhaseDamage, weapon_info::PulseSpeed, weapon_info::r, GFXColor::r, weapon_info::RadialSpeed, weapon_info::Radius, weapon_info::Range, weapon_info::Refire(), SIMULATION_ATOM, weapon_info::Speed, weapon_info::Stability, weapon_info::TextureStretch, LineCollide::type, and vs_config.
Referenced by Beam(), and Mount::PhysicsAlignedFire().
|
inline |
Definition at line 57 of file beam.h.
Referenced by Mount::Fire().
|
static |
Definition at line 80 of file beam.cpp.
References BeamDrawContext::beam, beamdrawqueue, c, CULLFACE, DEPTHWRITE, GFXVertexList::DrawOnce(), DecalQueue::GetTexture(), VegaConfig::getVariable(), GFXBlendMode(), GFXDisable(), GFXEnable(), GFXLoadMatrixModel(), GFXMODULATETEXTURE, GFXPopBlendMode(), GFXPushBlendMode(), GFXTextureEnv(), GFXToggleTexture(), LIGHTING, BeamDrawContext::m, Texture::MakeActive(), ONE, XMLSupport::parse_bool(), size, TEXTURE0, TEXTURE1, BeamDrawContext::vlist, vs_config, and ZERO.
Referenced by GameStarSystem::Draw().
|
inline |
Definition at line 89 of file beam.h.
Referenced by Mount::ComputeAnimatedFrame(), Mount::Fire(), and Unit::Fire().
float Beam::refireTime | ( | ) |
Definition at line 28 of file beam_generic.cpp.
Referenced by Mount::ComputeAnimatedFrame(), and MountColor().
void Beam::RemoveFromSystem | ( | bool | eradicate) |
Definition at line 38 of file beam_generic.cpp.
References Quaternion::from_vectors(), and Transformation::orientation.
void Beam::SetPosition | ( | const QVector & | k) |
Definition at line 33 of file beam_generic.cpp.
References Transformation::position.
void Beam::UpdatePhysics | ( | const Transformation & | trans, |
const Matrix & | m, | ||
class Unit * | target, | ||
float | trackingcone, | ||
Unit * | targetToCollideWith, | ||
float | HeatSink, | ||
Unit * | firer, | ||
Unit * | superunit | ||
) |
Definition at line 274 of file beam_generic.cpp.
References AddCollideQueue(), AdjustMatrix(), AUDAdjustSound(), AUDIsPlaying(), AUDStopPlaying(), coltableacc, Transformation::Compose(), Destabilize(), Matrix::getR(), VegaConfig::getVariable(), LineCollide::hhuge, LineCollide::Maxi, LineCollide::Mini, LineCollide::object, XMLSupport::parse_bool(), Transformation::position, QVector, RemoveFromSystem(), SIMULATION_ATOM, tablehuge, TableLocationChanged(), Transformation::to_matrix(), TransformNormal(), Vector, and vs_config.