Nebula
Loading...
Searching...
No Matches
navagentcontext.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
8//------------------------------------------------------------------------------
10#include "ids/id.h"
11#include "ids/idallocator.h"
12#include "streamnavmeshcache.h"
13
14namespace Navigation
15{
16
17ID_32_24_8_NAMED_TYPE(CrowdAgentId, instance, navmeshId, generation, agentType);
18
20{
21
22public:
26 virtual ~AgentContext();
27
29 static void Create();
30
32 static void SetTarget(const Navigation::CrowdAgentId id, const Math::point& target);
33
36
37
38
39private:
40
41 typedef Ids::IdAllocator<
43 int, // agentId in dtcrowds
44 NavMeshId, // navmesh this agent is connected to
45 Math::point // current target point
48};
49
50} // namespace Models
An ID allocator associates an id with a slice in an N number of arrays.
Definition idallocator.h:39
Ids::IdAllocator< CrowdAgentId, int, NavMeshId, Math::point > AgentContextAllocator
Definition navagentcontext.h:46
static AgentContextAllocator agentContextAllocator
Definition navagentcontext.h:47
virtual ~AgentContext()
destructor
static Math::point GetTarget(const Navigation::CrowdAgentId id)
set the transform for a model
static void Create()
create context
static void SetTarget(const Navigation::CrowdAgentId id, const Math::point &target)
set the target for an agent
#define ID_32_24_8_NAMED_TYPE(x, id32_name, id24_name, id8_name, combined_name)
Definition id.h:46
Navigation::Recast.
Definition detourdebug.cc:9
agentType
Definition navagentcontext.h:17
Represents a 3D point in space.
Definition point.h:22
Definition navagentcontext.h:17
Definition streamnavmeshcache.h:30