1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-09-20 09:21:44 +02:00
openrw/rwengine/include/ai/AIGraphNode.hpp

36 lines
551 B
C++
Raw Normal View History

2013-08-11 22:50:29 +02:00
#pragma once
2014-06-06 18:04:00 +02:00
#ifndef _AIGRAPHNODE_HPP_
#define _AIGRAPHNODE_HPP_
2013-08-11 22:50:29 +02:00
#include <glm/glm.hpp>
#include <cstdint>
2013-08-16 02:59:32 +02:00
#include <vector>
2013-08-11 22:50:29 +02:00
2014-06-06 18:04:00 +02:00
struct AIGraphNode
2013-08-11 22:50:29 +02:00
{
enum NodeType {
Vehicle,
Pedestrian
};
enum {
None = 0,
2013-09-19 02:46:36 +02:00
CrossesRoad = 1 /// No documentation for other flags yet, but this is mentioned.
2013-08-11 22:50:29 +02:00
};
NodeType type;
glm::vec3 position;
2013-09-19 04:33:13 +02:00
float size;
int other_thing;
int other_thing2;
2013-09-19 02:46:36 +02:00
bool external;
uint8_t flags;
2013-08-11 22:50:29 +02:00
int32_t nextIndex;
2013-08-16 02:59:32 +02:00
bool disabled;
2014-06-06 18:04:00 +02:00
std::vector<AIGraphNode*> connections;
2013-08-11 22:50:29 +02:00
};
#endif