OpenMoHAA
0.82.0
Loading...
Searching...
No Matches
navigation_recast_debug.h
Go to the documentation of this file.
1
/*
2
===========================================================================
3
Copyright (C) 2025 the OpenMoHAA team
4
5
This file is part of OpenMoHAA source code.
6
7
OpenMoHAA source code is free software; you can redistribute it
8
and/or modify it under the terms of the GNU General Public License as
9
published by the Free Software Foundation; either version 2 of the License,
10
or (at your option) any later version.
11
12
OpenMoHAA source code is distributed in the hope that it will be
13
useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
GNU General Public License for more details.
16
17
You should have received a copy of the GNU General Public License
18
along with OpenMoHAA source code; if not, write to the Free Software
19
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20
===========================================================================
21
*/
22
23
#pragma once
24
30
31
#include "../qcommon/vector.h"
32
33
void
G_Navigation_DebugDraw();
34
35
class
dtCrowd;
36
struct
navModel_t
;
37
38
class
NavigationMapDebug
39
{
40
public
:
41
NavigationMapDebug();
42
~NavigationMapDebug();
43
44
void
DebugDraw();
45
46
private
:
47
void
TestAgent(
const
Vector
& start,
const
Vector
& end,
Vector
*paths,
int
*numPaths,
int
maxPaths);
48
49
void
50
DrawModel(
const
Vector
& origin,
const
navModel_t
& model,
float
maxDistSquared,
const
Vector
& offset = vec_zero);
51
52
public
:
53
dtCrowd *crowd;
54
int
agentId;
55
56
Vector
ai_startpath;
57
Vector
ai_endpath;
58
Vector
ai_pathlist[256];
59
int
ai_numPaths;
60
int
ai_lastpath;
61
};
Vector
Definition
vector.h:61
navModel_t
Navigation model containing faces.
Definition
navigation_bsp.h:84
code
fgame
navigation_recast_debug.h
Generated by
1.13.2