Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 336 vs 337 for /trunk/Source Code/AI/PathFinding/Waypoints/Headers/Waypoint.h

Diff revisions: vs.
  @@ -29,38 +29,38 @@
29 29 namespace Divide {
30 30 namespace Navigation {
31 31
32 - /// A point in space that AI units can navigate to
33 - class Waypoint {
34 - public:
35 - Waypoint();
36 - ~Waypoint();
37 -
38 - inline U32 getID() const {return _id;}
39 - public:
40 -
41 - vec3<F32> _position;
42 - Quaternion<F32> _orientation;
43 - U32 _time;
44 -
45 - private:
46 - U32 _id;
47 - };
48 -
49 - /// A straight line between 2 waypoints
50 - ///
51 - class WaypointPath {
52 - public:
53 - WaypointPath(Waypoint* first, Waypoint* second);
54 - ~WaypointPath();
55 -
56 - private:
57 - Waypoint* _first;
58 - Waypoint* _second;
59 - /// If the path intersects an object in the scene, is the path still valid?
60 - bool _throughObjects;
61 - /// ray used for collision detection
62 - Ray _collisionRay;
63 - };
32 + /// A point in space that AI units can navigate to
33 + class Waypoint {
34 + public:
35 + Waypoint();
36 + ~Waypoint();
37 +
38 + inline U32 getID() const {return _id;}
39 + public:
40 +
41 + vec3<F32> _position;
42 + Quaternion<F32> _orientation;
43 + U32 _time;
44 +
45 + private:
46 + U32 _id;
47 + };
48 +
49 + /// A straight line between 2 waypoints
50 + ///
51 + class WaypointPath {
52 + public:
53 + WaypointPath(Waypoint* first, Waypoint* second);
54 + ~WaypointPath();
55 +
56 + private:
57 + Waypoint* _first;
58 + Waypoint* _second;
59 + /// If the path intersects an object in the scene, is the path still valid?
60 + bool _throughObjects;
61 + /// ray used for collision detection
62 + Ray _collisionRay;
63 + };
64 64
65 65 }; //namespace Navigation
66 66 }; //namespace Divide