AI_Global.h File Reference

#include <stdio.h>
#include <windows.h>
#include "math/AI_Vector.h"

Go to the source code of this file.

Defines

#define ai_index   unsigned short
#define ai_dword   unsigned int
#define ai_log(s)   MessageBox(0,s,"AI Message", MB_OK | MB_ICONWARNING)
#define ai_assert(b)
#define ai_assert2(b, s)
#define ai_new(type)   new type
#define ai_delete(ptr)   delete ptr
#define ai_new_array(type, size)   new type[size]
#define ai_delete_array(ptr)   delete[] ptr
#define AI_WAY_TOLERANCE   0.0001f
#define AI_PIVOT_MAX_LEADING   1.0f
#define AI_PIVOT_MAX_DISTANCE   1.5f
#define AI_AUTO_ENABLE_CHECK   0.2
#define AI_WANDER_DEVIATION_SPEED   AI_QUARTERPI
#define AI_STR_TOO_MANY_TRI_EDGES   "Too many edges for one triangle! Each triangle must have exactly three edges."
#define AI_STR_TOO_MANY_VERTICES   "Too many vertices! Maximum allowed number of vertices is 65535!"
#define AI_STR_TOO_MANY_TRIANGLES   "Too many triangles! Maximum allowed number of triangles is 65535!"
#define AI_STR_TOO_MANY_EDGES   "Too many edges! Maximum allowed number of edges is 65535!"
#define AI_STR_NO_VERTEX   "Unknown vertex number!"
#define AI_STR_NO_TRIANGLE   "Unknown triangle number!"
#define AI_STR_WRONG_BORDER_EDGES   "Wrong number of edges! Exactly two border edges can share one vertex."
#define AI_STR_TOO_HIGH_STATE_INDEX   "Too high state index."
#define AI_STR_FILLED_INDEX   "The item of this index allready filled."
#define AI_STR_AGENT_ISNT_IN_WORLD   "Agent must be added into the world before he is set as a pivot."

Functions

static float ai_getDeterminant (const AI_Vector2 &v0, const AI_Vector2 &v1, const AI_Vector2 &v2)
static bool ai_isInRange (const AI_Vector3 &v_a, const AI_Vector3 &v_b, const float f_range)


Define Documentation

#define ai_assert (  ) 

#define ai_assert2 ( b,
 ) 

#define AI_AUTO_ENABLE_CHECK   0.2

#define ai_delete ( ptr   )     delete ptr

#define ai_delete_array ( ptr   )     delete[] ptr

#define ai_dword   unsigned int

#define ai_index   unsigned short

#define ai_log (  )     MessageBox(0,s,"AI Message", MB_OK | MB_ICONWARNING)

#define ai_new ( type   )     new type

#define ai_new_array ( type,
size   )     new type[size]

#define AI_PIVOT_MAX_DISTANCE   1.5f

#define AI_PIVOT_MAX_LEADING   1.0f

#define AI_STR_AGENT_ISNT_IN_WORLD   "Agent must be added into the world before he is set as a pivot."

#define AI_STR_FILLED_INDEX   "The item of this index allready filled."

#define AI_STR_NO_TRIANGLE   "Unknown triangle number!"

#define AI_STR_NO_VERTEX   "Unknown vertex number!"

#define AI_STR_TOO_HIGH_STATE_INDEX   "Too high state index."

#define AI_STR_TOO_MANY_EDGES   "Too many edges! Maximum allowed number of edges is 65535!"

#define AI_STR_TOO_MANY_TRI_EDGES   "Too many edges for one triangle! Each triangle must have exactly three edges."

#define AI_STR_TOO_MANY_TRIANGLES   "Too many triangles! Maximum allowed number of triangles is 65535!"

#define AI_STR_TOO_MANY_VERTICES   "Too many vertices! Maximum allowed number of vertices is 65535!"

#define AI_STR_WRONG_BORDER_EDGES   "Wrong number of edges! Exactly two border edges can share one vertex."

#define AI_WANDER_DEVIATION_SPEED   AI_QUARTERPI

#define AI_WAY_TOLERANCE   0.0001f


Function Documentation

static float ai_getDeterminant ( const AI_Vector2 v0,
const AI_Vector2 v1,
const AI_Vector2 v2 
) [inline, static]

static bool ai_isInRange ( const AI_Vector3 v_a,
const AI_Vector3 v_b,
const float  f_range 
) [inline, static]