AI_NavigationMesh::Corner Class Reference

#include <AI_NavigationMesh.h>

List of all members.


Detailed Description

Corner (convex or concave) of navigation mesh.

Public Member Functions

 Corner ()
 Default constructor.
VertexgetVertex (void)
 Return vertex index to which the corner referes.

Protected Member Functions

void addVisibleConcaveCorner (Corner *ptr_corner)
 Add corner into list of corners visible from this corner.
void adjustWidth (float f)
 Store minimum from actual corner width and width passes as parameter.

Protected Attributes

Vertexm_ptr_vertex
 Corner vertex.
Edgem_ptr_edges [2]
 Border edges adjacent to corner in CW order.
AI_Vector2 m_v_shift
float m_f_width
 Corner width. Maximum edge offset for which the corner remains inside navigation mesh.
bool m_b_concave
 Concave corner flag.
CornerArray m_arr_visible_corners
 All other corners visible from this corner.
AI_AStar::Nodem_ptr_astar_node
 Pointer to user data.

Constructor & Destructor Documentation

AI_NavigationMesh::Corner::Corner (  )  [inline]

Default constructor.


Member Function Documentation

void AI_NavigationMesh::Corner::addVisibleConcaveCorner ( Corner ptr_corner  )  [inline, protected]

Add corner into list of corners visible from this corner.

void AI_NavigationMesh::Corner::adjustWidth ( float  f  )  [inline, protected]

Store minimum from actual corner width and width passes as parameter.

AI_NavigationMesh::Vertex * AI_NavigationMesh::Corner::getVertex ( void   )  [inline]

Return vertex index to which the corner referes.


Member Data Documentation

Corner vertex.

Border edges adjacent to corner in CW order.

Vector of offset. Ensure that corner will always lie on both edges when edge's normals and corner shift will be multiplyed by same constant (agent width).

Corner width. Maximum edge offset for which the corner remains inside navigation mesh.

Concave corner flag.

All other corners visible from this corner.

Pointer to user data.


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