Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <bolt.h>
Public Member Functions | |
bool | Collide (Unit *target) |
bool | operator== (const Bolt &b) const |
Bolt (const weapon_info *type, const Matrix &orientationpos, const Vector &ShipSpeed, void *owner, CollideMap::iterator hint) | |
void | Destroy (unsigned int index) |
bool | Update (Collidable::CollideRef index) |
bool | Collide (Collidable::CollideRef index) |
void | noop () const |
Static Public Member Functions | |
static int | AddTexture (bolt_draw *q, std::string filename) |
static int | AddAnimation (bolt_draw *q, std::string filename, QVector cur_position) |
static bool | CollideAnon (Collidable::CollideRef bolt_name, Unit *target) |
static Bolt * | BoltFromIndex (StarSystem *ss, Collidable::CollideRef bolt_name) |
static Collidable::CollideRef | BoltIndex (int index, int decal, bool isBall) |
static void | Draw () |
static void | UpdatePhysics (StarSystem *ss) |
Public Attributes | |
CollideMap::iterator | location |
Bolt::Bolt | ( | const weapon_info * | type, |
const Matrix & | orientationpos, | ||
const Vector & | ShipSpeed, | ||
void * | owner, | ||
CollideMap::iterator | hint | ||
) |
Definition at line 17 of file bolt_generic.cpp.
References _Universe, Universe::activeStarSystem(), AddAnimation(), AddTexture(), bolt_draw::balls, weapon_info::BOLT, BoltIndex(), bolt_draw::bolts, StarSystem::bolts, StarSystem::collidemap, CopyMatrix(), weapon_info::file, Matrix::getR(), CollideArray::insert(), weapon_info::Length, location, Magnitude(), UnitUtil::owner(), q, weapon_info::Radius, ScaleMatrix(), SIMULATION_ATOM, size, weapon_info::Speed, weapon_info::type, Unit::UNIT_BOLT, Vector, and VSCONSTRUCT2.
Definition at line 79 of file bolt.cpp.
References bolt_draw::animationname, bolt_draw::animations, bolt_draw::balls, i, and MIPMAP.
Referenced by Bolt().
Definition at line 67 of file bolt.cpp.
References DecalQueue::AddTexture(), bolt_draw::boltdecals, bolt_draw::bolts, bolt_draw::cachedecals, and MIPMAP.
Referenced by Bolt().
|
static |
Definition at line 174 of file bolt_generic.cpp.
References bolt_draw::balls, Collidable::CollideRef::bolt_index, bolt_draw::bolts, StarSystem::bolts, and nondecal_index().
Referenced by CollideAnon(), UpdateBolt::operator()(), and UpdateBackpointers< Unit::UNIT_ONLY >::updateBackpointer().
|
static |
Definition at line 193 of file bolt_generic.cpp.
References Collidable::CollideRef::bolt_index, and index.
Referenced by Bolt().
Definition at line 140 of file bolt_generic.cpp.
References Unit::ApplyDamage(), ASTEROIDPTR, Unit::GetDestinations(), VegaConfig::getVariable(), Unit::isUnit(), NEBULAPTR, XMLSupport::parse_bool(), PLANETPTR, QVector, Unit::rayCollide(), Vector, and vs_config.
Referenced by CollideChecker< T, canbebolt >::CheckCollision(), and CollideAnon().
bool Bolt::Collide | ( | Collidable::CollideRef | index) |
Definition at line 136 of file collide.cpp.
References _Universe, Universe::activeStarSystem(), CollideMap::CheckCollisions(), StarSystem::collidemap, location, and Unit::UNIT_BOLT.
|
static |
Definition at line 183 of file bolt_generic.cpp.
References _Universe, Universe::activeStarSystem(), b, BoltFromIndex(), Collide(), Destroy(), and nondecal_index().
Referenced by CollideChecker< T, canbebolt >::CheckCollision().
void Bolt::Destroy | ( | unsigned int | index) |
Definition at line 195 of file bolt.cpp.
References _Universe, Universe::activeStarSystem(), weapon_info::BOLT, bolt_draw::boltdecals, BoltDestroyGeneric(), StarSystem::bolts, DecalQueue::DelTexture(), q, weapon_info::type, and VSDESTRUCT2.
Referenced by CollideChecker< T, canbebolt >::CheckCollision(), CollideAnon(), and Update().
|
static |
Definition at line 95 of file bolt.cpp.
References _Universe, weapon_info::a, Universe::AccessCamera(), Universe::activeStarSystem(), ALWAYS, bolt_draw::animations, weapon_info::b, bolt_draw::balls, GFXVertexList::BeginDrawState(), BlendTrans(), bolt_draw::boltdecals, bolt_draw::boltmesh, bolt_draw::bolts, StarSystem::bolts, CULLFACE, DEPTHTEST, DEPTHWRITE, GFXVertexList::Draw(), Animation::DrawNoTransform(), GFXVertexList::EndDrawState(), game_data_t::fov, weapon_info::g, g_game, GetElapsedTime(), Camera::GetOrientation(), Camera::GetPosition(), DecalQueue::GetTexture(), VegaConfig::getVariable(), GFXAlphaTest(), GFXBlendMode(), GFXColor4f(), GFXDisable(), GFXEnable(), GFXLoadMatrixModel(), GFXToggleTexture(), GREATER, i, j, k, weapon_info::Length, LIGHTING, GFXVertexList::LoadDrawState(), M_PI, Texture::MakeActive(), ONE, Matrix::p, XMLSupport::parse_bool(), XMLSupport::parse_float(), q, QVector, weapon_info::r, weapon_info::Radius, ScaleMatrix(), Animation::SetDimensions(), UniverseUtil::sin(), weapon_info::Speed, TEXTURE0, TEXTURE1, Vector, VectorAndPositionToMatrix(), vs_config, wt, game_data_t::x_resolution, game_data_t::y_resolution, and ZERO.
Referenced by GameStarSystem::Draw().
bool Bolt::Update | ( | Collidable::CollideRef | index) |
Definition at line 67 of file bolt_generic.cpp.
References _Universe, Universe::activeStarSystem(), weapon_info::BALL, CollideArray::changeKey(), StarSystem::collidemap, Destroy(), Matrix::getR(), weapon_info::Length, location, nondecal_index(), weapon_info::Radius, weapon_info::Range, Collidable::SetPosition(), SIMULATION_ATOM, weapon_info::Speed, speed, weapon_info::type, and Unit::UNIT_BOLT.
Referenced by UpdateBolt::operator()().
|
static |
Definition at line 133 of file bolt_generic.cpp.
References StarSystem::collidemap, vsalg::for_each(), CollideArray::sorted, CollideArray::toflattenhints, and Unit::UNIT_BOLT.
Referenced by StarSystem::UpdateUnitPhysics().
CollideMap::iterator Bolt::location |
Definition at line 24 of file bolt.h.
Referenced by Bolt(), Collide(), CheckBackref< Bolt >::operator()(), Mount::PhysicsAlignedFire(), Update(), and UpdateBackpointers< Unit::UNIT_ONLY >::updateBackpointer().