| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- $#include "Navigation/CrowdAgent.h"
- enum CrowdTargetState
- {
- CROWD_AGENT_TARGET_NONE = 0,
- CROWD_AGENT_TARGET_FAILED,
- CROWD_AGENT_TARGET_VALID,
- CROWD_AGENT_TARGET_REQUESTING,
- CROWD_AGENT_TARGET_WAITINGFORPATH,
- CROWD_AGENT_TARGET_WAITINGFORQUEUE,
- CROWD_AGENT_TARGET_VELOCITY,
- CROWD_AGENT_TARGET_ARRIVED
- };
- enum CrowdAgentState
- {
- CROWD_AGENT_INVALID = 0,
- CROWD_AGENT_READY,
- CROWD_AGENT_TRAVERSINGLINK
- };
- class CrowdAgent : public Component
- {
- void SetNavigationFilterType(unsigned filterID);
- bool SetMoveTarget(const Vector3& position);
- bool SetMoveVelocity(const Vector3& velocity);
- void SetUpdateNodePosition(bool unodepos);
- void SetMaxAccel(float val);
- void SetMaxSpeed(float val);
- void SetNavigationQuality(NavigationQuality val);
- void SetNavigationPushiness(NavigationPushiness val);
- void SetRadius(float radius);
- void SetHeight(float height);
- unsigned GetNavigationFilterType() const;
- Vector3 GetDesiredVelocity() const;
- Vector3 GetActualVelocity() const;
- const Vector3& GetTargetPosition() const;
- CrowdAgentState GetAgentState() const;
- CrowdTargetState GetTargetState() const;
- bool GetUpdateNodePosition() const;
- float GetMaxSpeed() const;
- float GetMaxAccel() const;
- NavigationQuality GetNavigationQuality() const;
- NavigationPushiness GetNavigationPushiness() const;
- float GetRadius() const;
- float GetHeight() const;
- Vector3 GetPosition() const;
- void DrawDebugGeometry(bool depthTest);
- tolua_property__get_set bool updateNodePosition;
- tolua_property__get_set NavigationQuality navigationQuality;
- tolua_property__get_set NavigationPushiness navigationPushiness;
- tolua_property__get_set float maxSpeed;
- tolua_property__get_set float maxAccel;
- tolua_property__get_set float radius;
- tolua_property__get_set float height;
- tolua_property__get_set unsigned navigationFilterType;
- tolua_readonly tolua_property__get_set Vector3 desiredVelocity;
- tolua_readonly tolua_property__get_set Vector3 actualVelocity;
- tolua_readonly tolua_property__get_set Vector3 targetPosition;
- tolua_readonly tolua_property__get_set Vector3 position;
- tolua_readonly tolua_property__get_set CrowdAgentState agentState;
- tolua_readonly tolua_property__get_set CrowdTargetState targetState;
- };
|