Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CollideMap Class Reference

#include <collide_map.h>

Inheritance diagram for CollideMap:
CollideArray

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)
 
- Public Member Functions inherited from CollideArray
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

- Public Types inherited from CollideArray
typedef Collidableiterator
 
typedef std::vector< CollidableResizableArray
 
- Public Attributes inherited from CollideArray
std::vector< floatmax_radius
 
unsigned int location_index
 
ResizableArray sorted
 
ResizableArray unsorted
 
std::vector< std::list
< CollidableBackref > > 
toflattenhints
 
unsigned int count
 
- Static Public Attributes inherited from CollideArray
static float max_bolt_radius = 0
 

Detailed Description

Definition at line 150 of file collide_map.h.

Constructor & Destructor Documentation

CollideMap::CollideMap ( unsigned int  location_offset)
inline

Definition at line 154 of file collide_map.h.

154 : CollideMap( unsigned int location_offset ) : CollideArray( location_offset ) {}

Member Function Documentation

bool CollideMap::CheckCollisions ( Bolt bol,
const Collidable updated 
)
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.

526 {
527  //need to check beams
528  if (un->activeStarSystem == NULL)
530  else
531  assert( un->activeStarSystem == _Universe->activeStarSystem() );
533 }
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.

522 {
524 }
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.

536 {
537  //need to check beams
538  if (un->activeStarSystem == NULL)
540  else
541  assert( un->activeStarSystem == _Universe->activeStarSystem() );
543 }

The documentation for this class was generated from the following files: