Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
aiworld.c
Go to the documentation of this file.
2 {
3  NONE,
4 
5  WALK, // Ability to walk (ground, grass, road)
6  DISABLED, // Disabled polygon
7  DOOR, // Ability to move through doors
8  INSIDE, // Ability to move inside buildings
9 
10  SWIM, // Ability to swim (water)
11  SWIM_SEA, // Ability to swim (sea water)
12 
13  LADDER, // Ability to climb on ladders
14  JUMP_OVER, // Ability to do jumps overs
15  JUMP_DOWN, // Ability to jump down
16  CLIMB, // Ability to climb up
17  CRAWL, // Ability to crawl
18  CROUCH, // Ability to crouch
19 
21 
22  ALL,
23 
24  JUMP, // JUMP_OVER | JUMP_DOWN
25  SPECIAL // JUMP | CLIMB | CRAWL | CROUCH
26 }
27 
28 enum PGAreaType
29 {
30  NONE,
31 
32  TERRAIN,
33 
34  WATER,
35  WATER_DEEP,
36  WATER_SEA,
39 
40  OBJECTS,
41  BUILDING,
42  ROADWAY,
43  TREE,
45 
48 
49  LADDER,
50  CRAWL,
51  CROUCH,
52  FENCE_WALL,
53  JUMP
54 }
55 
59 class PGFilter : Managed
60 {
61  // Uses PGPolyFlags bitmasks
62  proto native int GetIncludeFlags();
63  proto native int GetExcludeFlags();
64  proto native int GetExlusiveFlags();
65  proto native void SetFlags(int includeFlags, int excludeFlags, int exclusiveFlags);
66 
67  proto native void SetCost(PGAreaType areaType, float cost);
68 }
69 
71 {
72  private void AIWorld();
73  private void ~AIWorld();
74 
79  proto native AIGroup CreateGroup(string templateName);
83  proto native AIGroup CreateDefaultGroup();
87  proto native void DeleteGroup(notnull AIGroup group);
88 
98  proto native bool FindPath(vector from, vector to, PGFilter pgFilter, out TVectorArray waypoints);
99 
110  proto native bool RaycastNavMesh(vector from, vector to, PGFilter pgFilter, out vector hitPos, out vector hitNormal);
111 
122  proto native bool SampleNavmeshPosition(vector position, float maxDistance, PGFilter pgFilter, out vector sampledPosition);
123 }
JUMP_OVER
JUMP_OVER
Definition: aiworld.c:13
SPECIAL
SPECIAL
Definition: aiworld.c:25
DOOR
DOOR
Definition: aiworld.c:6
WATER_DEEP
enum PGPolyFlags WATER_DEEP
OBJECTS_NOFFCON
enum PGPolyFlags OBJECTS_NOFFCON
GetIncludeFlags
enum PGPolyFlags GetIncludeFlags()
DOOR_CLOSED
enum PGPolyFlags DOOR_CLOSED
CLIMB
CLIMB
Definition: aiworld.c:15
JUMP_DOWN
JUMP_DOWN
Definition: aiworld.c:14
GetExlusiveFlags
proto native int GetExlusiveFlags()
Managed
TODO doc.
Definition: enscript.c:117
SetFlags
proto native void SetFlags(int includeFlags, int excludeFlags, int exclusiveFlags)
ROADWAY_BUILDING
enum PGPolyFlags ROADWAY_BUILDING
OBJECTS
enum PGPolyFlags OBJECTS
UNREACHABLE
UNREACHABLE
Definition: aiworld.c:19
SWIM
SWIM
Definition: aiworld.c:9
ALL
ALL
Definition: aiworld.c:21
PGPolyFlags
PGPolyFlags
Definition: aiworld.c:1
CRAWL
enum PGPolyFlags CRAWL
Definition: aiworld.c:16
ROADWAY
enum PGPolyFlags ROADWAY
TREE
enum PGPolyFlags TREE
vector
Definition: enconvert.c:105
NONE
enum PGPolyFlags NONE
Definition: aiworld.c:2
WATER_SEA_DEEP
enum PGPolyFlags WATER_SEA_DEEP
WATER
enum PGPolyFlags WATER
JUMP
JUMP
Definition: aiworld.c:23
LADDER
enum PGPolyFlags LADDER
Definition: aiworld.c:12
CROUCH
enum PGPolyFlags CROUCH
Definition: aiworld.c:17
AIGroup
Definition: aigroup.c:1
array< vector >
FENCE_WALL
enum PGPolyFlags FENCE_WALL
DISABLED
DISABLED
Definition: aiworld.c:5
TERRAIN
enum PGPolyFlags TERRAIN
SetCost
proto native void SetCost(PGAreaType areaType, float cost)
AIWorld
Definition: aiworld.c:70
INSIDE
INSIDE
Definition: aiworld.c:7
WATER_SEA
enum PGPolyFlags WATER_SEA
DOOR_OPENED
enum PGPolyFlags DOOR_OPENED
WALK
WALK
Definition: aiworld.c:4
BUILDING
enum PGPolyFlags BUILDING
SWIM_SEA
SWIM_SEA
Definition: aiworld.c:10
GetExcludeFlags
proto native int GetExcludeFlags()