Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <collide_map.h>
Public Member Functions | |
CollideMap (unsigned int location_offset) | |
bool | CheckCollisions (Bolt *bol, const Collidable &updated) |
bool | CheckUnitCollisions (Bolt *bol, const Collidable &updated) |
bool | CheckCollisions (Unit *un, const Collidable &updated) |
bool | CheckUnitCollisions (Unit *un, const Collidable &updated) |
![]() | |
void | SetLocationIndex (unsigned int li) |
bool | Iterable (iterator) |
void | UpdateBoltInfo (iterator iter, Collidable::CollideRef ref) |
void | flatten () |
void | flatten (CollideArray &example) |
iterator | insert (const Collidable &newKey, iterator hint) |
iterator | insert (const Collidable &newKey) |
iterator | changeKey (iterator iter, const Collidable &newKey) |
iterator | changeKey (iterator iter, const Collidable &newKey, iterator tless, iterator tmore) |
iterator | begin () |
iterator | end () |
iterator | lower_bound (const Collidable &) |
void | erase (iterator iter) |
void | checkSet () |
CollideArray (unsigned int location_index) | |
Additional Inherited Members | |
![]() | |
typedef Collidable * | iterator |
typedef std::vector< Collidable > | ResizableArray |
![]() | |
std::vector< float > | max_radius |
unsigned int | location_index |
ResizableArray | sorted |
ResizableArray | unsorted |
std::vector< std::list < CollidableBackref > > | toflattenhints |
unsigned int | count |
![]() | |
static float | max_bolt_radius = 0 |
Definition at line 150 of file collide_map.h.
|
inline |
Definition at line 154 of file collide_map.h.
bool CollideMap::CheckCollisions | ( | Bolt * | bol, |
const Collidable & | updated | ||
) |
Definition at line 516 of file collide_map.cpp.
References CollideChecker< T, canbebolt >::CheckCollisions(), and Unit::UNIT_BOLT.
Referenced by Bolt::Collide(), Unit::CollideAll(), and UpdateBolt::operator()().
bool CollideMap::CheckCollisions | ( | Unit * | un, |
const Collidable & | updated | ||
) |
Definition at line 525 of file collide_map.cpp.
References _Universe, Universe::activeStarSystem(), Unit::activeStarSystem, CollideChecker< T, canbebolt >::CheckCollisions(), and Unit::UNIT_BOLT.
bool CollideMap::CheckUnitCollisions | ( | Bolt * | bol, |
const Collidable & | updated | ||
) |
Definition at line 521 of file collide_map.cpp.
References CollideChecker< T, canbebolt >::CheckCollisions(), and Unit::UNIT_ONLY.
bool CollideMap::CheckUnitCollisions | ( | Unit * | un, |
const Collidable & | updated | ||
) |
Definition at line 535 of file collide_map.cpp.
References _Universe, Universe::activeStarSystem(), Unit::activeStarSystem, CollideChecker< T, canbebolt >::CheckCollisions(), and Unit::UNIT_ONLY.