Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <unit_collide.h>
Public Member Functions | |
UnitHash3d (StarSystem *ss) | |
void | SwapHugeAccum () |
void | AddHugeToActive (Unit *un) |
void | Clear () |
clears entire table More... | |
int | Get (const QVector &Exact, UnitCollection *retval[], bool GetHuge) |
returns any objects residing in the sector occupied by Exact More... | |
UnitCollection & | GetHuge () |
Returns all objects too big to be conveniently fit in the array. More... | |
int | Get (const LineCollide *target, UnitCollection *retval[], bool GetHuge) |
Returns all objects within sector(s) occupied by target. More... | |
void | Put (LineCollide *target, Unit *objectToPut) |
Adds objectToPut into collide table with limits specified by target. More... | |
bool | Eradicate (Unit *objectToKill) |
bool | Remove (const LineCollide *target, Unit *objectToKill) |
Removes objectToKill from collide table with span of Target. More... | |
Static Public Member Functions | |
static int | hash_int (const double aye) |
Hashes a single value to a value on the collide table truncated to all 3d constraints. Consider using a swizzle. More... | |
static bool | removeFromVector (UnitCollection &myvector, Unit *objectToKill) |
Hashtable3d is a 3d datastructure that holds various starships that are near enough to crash into each other (or also lights that are big enough to shine on nearby units.
Definition at line 26 of file unit_collide.h.
|
inline |
Definition at line 54 of file unit_collide.h.
|
inline |
Definition at line 73 of file unit_collide.h.
|
inline |
|
inline |
|
inline |
|
inline |
Returns all objects within sector(s) occupied by target.
Definition at line 124 of file unit_collide.h.
|
inline |
Returns all objects too big to be conveniently fit in the array.
Definition at line 119 of file unit_collide.h.
|
inlinestatic |
Hashes a single value to a value on the collide table truncated to all 3d constraints. Consider using a swizzle.
Definition at line 86 of file unit_collide.h.
Referenced by UnitHash3d< char[coltablesize], char[coltableacc], char[tablehuge] >::Get(), UnitHash3d< char[coltablesize], char[coltableacc], char[tablehuge] >::Put(), UnitHash3d< char[coltablesize], char[coltableacc], char[tablehuge] >::Remove(), and TableLocationChanged().
|
inline |
Adds objectToPut into collide table with limits specified by target.
Definition at line 158 of file unit_collide.h.
Referenced by AddCollideQueue().
|
inline |
Removes objectToKill from collide table with span of Target.
Definition at line 222 of file unit_collide.h.
Referenced by KillCollideTable().
|
inlinestatic |
Definition at line 197 of file unit_collide.h.
Referenced by UnitHash3d< char[coltablesize], char[coltableacc], char[tablehuge] >::Eradicate(), and UnitHash3d< char[coltablesize], char[coltableacc], char[tablehuge] >::Remove().
|
inline |
Definition at line 60 of file unit_collide.h.