Changeset View
Changeset View
Standalone View
Standalone View
source/simulation2/components/ICmpObstructionManager.h
Show First 20 Lines • Show All 153 Lines • ▼ Show 20 Lines | public: | ||||
/** | /** | ||||
* Remove an existing shape. The tag will be made invalid and must not be used after this. | * Remove an existing shape. The tag will be made invalid and must not be used after this. | ||||
* @param tag tag of shape (must be valid) | * @param tag tag of shape (must be valid) | ||||
*/ | */ | ||||
virtual void RemoveShape(tag_t tag) = 0; | virtual void RemoveShape(tag_t tag) = 0; | ||||
/** | /** | ||||
* Check if the given point is in range of the other point given those parameters | |||||
*/ | |||||
virtual bool IsPointInPointRange(entity_pos_t x, entity_pos_t z, entity_pos_t px, entity_pos_t pz, entity_pos_t minRange, entity_pos_t maxRange) = 0; | |||||
/** | |||||
* Check if the given entity is in range of the other point given those parameters | |||||
*/ | |||||
virtual bool IsInPointRange(entity_id_t ent, entity_pos_t px, entity_pos_t pz, entity_pos_t minRange, entity_pos_t maxRange) = 0; | |||||
/** | |||||
* Check if the given entity is in range of the target given those parameters | |||||
*/ | |||||
virtual bool IsInTargetRange(entity_id_t ent, entity_id_t target, entity_pos_t minRange, entity_pos_t maxRange) = 0; | |||||
/** | |||||
* Collision test a flat-ended thick line against the current set of shapes. | * Collision test a flat-ended thick line against the current set of shapes. | ||||
* The line caps extend by @p r beyond the end points. | * The line caps extend by @p r beyond the end points. | ||||
* Only intersections going from outside to inside a shape are counted. | * Only intersections going from outside to inside a shape are counted. | ||||
* @param filter filter to restrict the shapes that are counted | * @param filter filter to restrict the shapes that are counted | ||||
* @param x0 X coordinate of line's first point | * @param x0 X coordinate of line's first point | ||||
* @param z0 Z coordinate of line's first point | * @param z0 Z coordinate of line's first point | ||||
* @param x1 X coordinate of line's second point | * @param x1 X coordinate of line's second point | ||||
* @param z1 Z coordinate of line's second point | * @param z1 Z coordinate of line's second point | ||||
▲ Show 20 Lines • Show All 320 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator