DetourCrowdManager.pkg 788 B

12345678910111213141516171819202122232425262728293031
  1. $#include "Navigation/DetourCrowdManager.h"
  2. enum NavigationQuality
  3. {
  4. NAVIGATIONQUALITY_LOW = 0,
  5. NAVIGATIONQUALITY_MEDIUM = 1,
  6. NAVIGATIONQUALITY_HIGH = 2
  7. };
  8. enum NavigationPushiness
  9. {
  10. PUSHINESS_LOW,
  11. PUSHINESS_MEDIUM,
  12. PUSHINESS_HIGH
  13. };
  14. class DetourCrowdManager : public Component
  15. {
  16. bool CreateCrowd();
  17. void SetNavigationMesh(NavigationMesh *navMesh);
  18. void SetMaxAgents(unsigned agentCt);
  19. void SetAreaCost(unsigned filterID, unsigned areaID, float cost);
  20. NavigationMesh* GetNavigationMesh();
  21. unsigned GetMaxAgents() const;
  22. float GetAreaCost(unsigned filterID, unsigned areaID) const;
  23. unsigned GetAgentCount() const;
  24. tolua_property__get_set NavigationMesh* navigationMesh;
  25. tolua_property__get_set int maxAgents;
  26. };