Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <unit_collide.h>
Public Member Functions | |
bool | usingColTree () const |
csOPCODECollider * | colTree (Unit *un, const Vector &othervelocity) |
collideTrees (const std::string &hk, csOPCODECollider *cT, csOPCODECollider *cS) | |
void | Inc () |
void | Dec () |
Static Public Member Functions | |
static collideTrees * | Get (const std::string &hash_key) |
Public Attributes | |
std::string | hash_key |
csOPCODECollider * | rapidColliders [collideTreesMaxTrees] |
csOPCODECollider * | colShield |
int | refcount |
Definition at line 274 of file unit_collide.h.
collideTrees::collideTrees | ( | const std::string & | hk, |
csOPCODECollider * | cT, | ||
csOPCODECollider * | cS | ||
) |
Definition at line 19 of file collide.cpp.
References collideTreesMaxTrees, hash_key, i, Hashtable< KEY, VALUE, SIZ >::Put(), rapidColliders, and refcount.
csOPCODECollider * collideTrees::colTree | ( | Unit * | un, |
const Vector & | othervelocity | ||
) |
Definition at line 32 of file collide.cpp.
References collideTreesMaxTrees, Unit::getCollideTree(), VegaConfig::getVariable(), Unit::GetVelocity(), XMLSupport::parse_int(), rapidColliders, Unit::rSize(), SIMULATION_ATOM, Vector, and vs_config.
Referenced by ContinuousTerrain::Collide(), Unit::Collide(), Unit::InsideCollideTree(), and Unit::rayCollide().
void collideTrees::Dec | ( | ) |
Definition at line 60 of file collide.cpp.
References collideTreesMaxTrees, colShield, Hashtable< KEY, VALUE, SIZ >::Delete(), hash_key, i, rapidColliders, and refcount.
|
static |
Definition at line 55 of file collide.cpp.
References Hashtable< KEY, VALUE, SIZ >::Get().
Referenced by Unit::LoadRow().
|
inline |
|
inline |
Definition at line 280 of file unit_collide.h.
References rapidColliders.
Referenced by Unit::InsideCollideTree(), and LaunchOneParticle().
csOPCODECollider* collideTrees::colShield |
Definition at line 289 of file unit_collide.h.
Referenced by Dec().
std::string collideTrees::hash_key |
Definition at line 276 of file unit_collide.h.
Referenced by collideTrees(), and Dec().
csOPCODECollider* collideTrees::rapidColliders[collideTreesMaxTrees] |
Definition at line 278 of file unit_collide.h.
Referenced by collideTrees(), colTree(), Dec(), LaunchOneParticle(), Unit::LoadRow(), and usingColTree().
int collideTrees::refcount |
Definition at line 291 of file unit_collide.h.
Referenced by collideTrees(), Dec(), and Inc().