Oolite 1.91.0.7645-241119-222d325
|
#include <CollisionRegion.h>
Instance Methods | |
(id) | - initAsUniverse |
(id) | - initAtLocation:withRadius:withinRegion: |
(void) | - clearSubregions |
(void) | - addSubregionAtPosition:withRadius: |
(void) | - clearEntityList |
(void) | - addEntity: |
(BOOL) | - checkEntity: |
(void) | - findCollisions |
(void) | - findShadowedEntities |
(NSString *) | - collisionDescription |
(NSString *) | - debugOut |
(id) | - init [implementation] |
(void) | - dealloc [implementation] |
(NSString *) | - description [implementation] |
(BOOL) | - shadowAtPointOcclusionToValue [implementation] |
Class Methods | |
(static BOOL) | + positionIsWithinRegion [implementation] |
(static BOOL) | + sphereIsWithinRegion [implementation] |
(static BOOL) | + positionIsWithinBorders [implementation] |
(static BOOL) | + entityByEntityOcclusionToValue [implementation] |
(static BOOL) | + testEntityOccludedByEntity [implementation] |
Private Attributes | |
BOOL | isUniverse |
int | crid |
HPVector | location |
GLfloat | radius |
GLfloat | border_radius |
unsigned | checks_this_tick |
unsigned | checks_within_range |
NSMutableArray * | subregions |
BOOL | isPlayerInRegion |
Entity ** | entity_array |
unsigned | n_entities |
unsigned | max_entities |
CollisionRegion * | parentRegion |
Definition at line 39 of file CollisionRegion.h.
- (void) addEntity: | (Entity *) | ent |
Definition at line 180 of file CollisionRegion.m.
References border_radius, isUniverse, location, nil, and radius.
- (void) addSubregionAtPosition: | (HPVector) | pos | |
withRadius: | (GLfloat) | rad |
Definition at line 46 of file CollisionRegion.m.
References COLLISION_MAX_ENTITIES, crid, crid_counter, entity_array, init, max_entities, and nil.
- (BOOL) checkEntity: | (Entity *) | ent |
Definition at line 180 of file CollisionRegion.m.
- (void) clearEntityList |
Definition at line 180 of file CollisionRegion.m.
- (void) clearSubregions |
Definition at line 46 of file CollisionRegion.m.
- (NSString *) collisionDescription |
Definition at line 576 of file CollisionRegion.m.
References entityByEntityOcclusionToValue.
|
implementation |
Definition at line 46 of file CollisionRegion.m.
- (NSString *) debugOut |
Definition at line 576 of file CollisionRegion.m.
|
implementation |
Definition at line 46 of file CollisionRegion.m.
|
implementation |
Definition at line 447 of file CollisionRegion.m.
References Entity::collision_radius, EXPECT_NOT, Entity::position, and shadowAtPointOcclusionToValue().
Referenced by collisionDescription.
- (void) findCollisions |
Definition at line 180 of file CollisionRegion.m.
- (void) findShadowedEntities |
Definition at line 576 of file CollisionRegion.m.
|
implementation |
Definition at line 46 of file CollisionRegion.m.
Referenced by addSubregionAtPosition:withRadius:.
- (id) initAsUniverse |
Definition at line 46 of file CollisionRegion.m.
- (id) initAtLocation: | (HPVector) | locn | |
withRadius: | (GLfloat) | rad | |
withinRegion: | (CollisionRegion*) | otherRegion |
Definition at line 46 of file CollisionRegion.m.
|
implementation |
Definition at line 180 of file CollisionRegion.m.
|
implementation |
Definition at line 142 of file CollisionRegion.m.
References isUniverse, location, nil, and radius.
|
implementation |
Definition at line 458 of file CollisionRegion.m.
References Entity::collision_radius, and Entity::position.
|
implementation |
Definition at line 161 of file CollisionRegion.m.
References isUniverse, location, nil, and radius.
|
implementation |
Definition at line 576 of file CollisionRegion.m.
|
private |
Definition at line 47 of file CollisionRegion.h.
Referenced by addEntity:.
|
private |
Definition at line 49 of file CollisionRegion.h.
|
private |
Definition at line 50 of file CollisionRegion.h.
|
private |
Definition at line 44 of file CollisionRegion.h.
Referenced by addSubregionAtPosition:withRadius:.
|
private |
Definition at line 56 of file CollisionRegion.h.
Referenced by addSubregionAtPosition:withRadius:.
|
private |
Definition at line 54 of file CollisionRegion.h.
|
private |
Definition at line 42 of file CollisionRegion.h.
Referenced by addEntity:, positionIsWithinRegion, and sphereIsWithinRegion.
|
private |
Definition at line 45 of file CollisionRegion.h.
Referenced by addEntity:, positionIsWithinRegion, and sphereIsWithinRegion.
|
private |
Definition at line 58 of file CollisionRegion.h.
Referenced by addSubregionAtPosition:withRadius:.
|
private |
Definition at line 57 of file CollisionRegion.h.
|
private |
Definition at line 60 of file CollisionRegion.h.
|
private |
Definition at line 46 of file CollisionRegion.h.
Referenced by addEntity:, positionIsWithinRegion, and sphereIsWithinRegion.
|
private |
Definition at line 52 of file CollisionRegion.h.