Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include "cmd/collide.h"
#include "vegastrike.h"
#include "unit_generic.h"
#include "beam.h"
#include "bolt.h"
#include "gfx/mesh.h"
#include "unit_collide.h"
#include "physics.h"
#include "collide2/CSopcodecollider.h"
#include "collide2/csgeom2/optransfrm.h"
#include "collide2/basecollider.h"
#include "hashtable.h"
#include <string>
#include "vs_globals.h"
#include "configxml.h"
Go to the source code of this file.
Functions | |
bool | TableLocationChanged (const QVector &Mini, const QVector &minz) |
bool | TableLocationChanged (const LineCollide &lc, const QVector &minx, const QVector &maxx) |
void | KillCollideTable (LineCollide *lc, StarSystem *ss) |
bool | EradicateCollideTable (LineCollide *lc, StarSystem *ss) |
void | AddCollideQueue (LineCollide &tmp, StarSystem *ss) |
bool | lcwithin (const LineCollide &lc, const LineCollide &tmp) |
bool | usehuge_table () |
static bool | beamCheckCollision (QVector pos, float len, const Collidable &un) |
Variables | |
static Hashtable< std::string, collideTrees, 127 > | unitColliders |
float | loge2 = log( 2.f ) |
void AddCollideQueue | ( | LineCollide & | tmp, |
StarSystem * | ss | ||
) |
Definition at line 108 of file collide.cpp.
References CollideTable::c, StarSystem::collidetable, LineCollide::object, UnitHash3d< CTSIZ, CTACCURACY, CTHUGE >::Put(), LineCollide::type, and LineCollide::UNIT.
Referenced by Beam::UpdatePhysics().
|
static |
Definition at line 141 of file collide.cpp.
References Collidable::GetPosition(), and Collidable::radius.
bool EradicateCollideTable | ( | LineCollide * | lc, |
StarSystem * | ss | ||
) |
Definition at line 98 of file collide.cpp.
References CollideTable::c, StarSystem::collidetable, UnitHash3d< CTSIZ, CTACCURACY, CTHUGE >::Eradicate(), LineCollide::object, LineCollide::type, and LineCollide::UNIT.
void KillCollideTable | ( | LineCollide * | lc, |
StarSystem * | ss | ||
) |
Definition at line 90 of file collide.cpp.
References CollideTable::c, StarSystem::collidetable, LineCollide::object, UnitHash3d< CTSIZ, CTACCURACY, CTHUGE >::Remove(), LineCollide::type, and LineCollide::UNIT.
bool lcwithin | ( | const LineCollide & | lc, |
const LineCollide & | tmp | ||
) |
Definition at line 75 of file collide.cpp.
References _Universe, Universe::activeStarSystem(), CollideTable::c, StarSystem::collidetable, and UnitHash3d< CTSIZ, CTACCURACY, CTHUGE >::hash_int().
Referenced by TableLocationChanged(), and Beam::UpdatePhysics().
bool TableLocationChanged | ( | const LineCollide & | lc, |
const QVector & | minx, | ||
const QVector & | maxx | ||
) |
Definition at line 85 of file collide.cpp.
References LineCollide::Maxi, LineCollide::Mini, and TableLocationChanged().
bool usehuge_table | ( | ) |
Definition at line 30 of file collide.cpp.
|
static |
Definition at line 18 of file collide.cpp.