Recast Navigation
Navigation-mesh Toolset for Games
CrowdToolState Class Reference

#include <CrowdTool.h>

Inheritance diagram for CrowdToolState:
SampleToolState

Public Member Functions

 CrowdToolState ()
 
virtual ~CrowdToolState ()
 
virtual void init (class Sample *sample)
 
virtual void reset ()
 
virtual void handleRender ()
 
virtual void handleRenderOverlay (double *proj, double *model, int *view)
 
virtual void handleUpdate (const float dt)
 
bool isRunning () const
 
void setRunning (const bool s)
 
void addAgent (const float *pos)
 
void removeAgent (const int idx)
 
void hilightAgent (const int idx)
 
void updateAgentParams ()
 
int hitTestAgents (const float *s, const float *p)
 
void setMoveTarget (const float *p, bool adjust)
 
void updateTick (const float dt)
 
CrowdToolParamsgetToolParams ()
 
- Public Member Functions inherited from SampleToolState
virtual ~SampleToolState ()
 

Constructor & Destructor Documentation

◆ CrowdToolState()

CrowdToolState::CrowdToolState ( )

◆ ~CrowdToolState()

CrowdToolState::~CrowdToolState ( )
virtual

Member Function Documentation

◆ addAgent()

void CrowdToolState::addAgent ( const float *  pos)

◆ getToolParams()

CrowdToolParams* CrowdToolState::getToolParams ( )
inline

◆ handleRender()

void CrowdToolState::handleRender ( )
virtual

Implements SampleToolState.

◆ handleRenderOverlay()

void CrowdToolState::handleRenderOverlay ( double *  proj,
double *  model,
int *  view 
)
virtual

Implements SampleToolState.

◆ handleUpdate()

void CrowdToolState::handleUpdate ( const float  dt)
virtual

Implements SampleToolState.

◆ hilightAgent()

void CrowdToolState::hilightAgent ( const int  idx)

◆ hitTestAgents()

int CrowdToolState::hitTestAgents ( const float *  s,
const float *  p 
)

◆ init()

void CrowdToolState::init ( class Sample sample)
virtual

Implements SampleToolState.

◆ isRunning()

bool CrowdToolState::isRunning ( ) const
inline

◆ removeAgent()

void CrowdToolState::removeAgent ( const int  idx)

◆ reset()

void CrowdToolState::reset ( )
virtual

Implements SampleToolState.

◆ setMoveTarget()

void CrowdToolState::setMoveTarget ( const float *  p,
bool  adjust 
)

◆ setRunning()

void CrowdToolState::setRunning ( const bool  s)
inline

◆ updateAgentParams()

void CrowdToolState::updateAgentParams ( )

◆ updateTick()

void CrowdToolState::updateTick ( const float  dt)

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