Brunot
Loading...
Searching...
No Matches
PathRoot.h
Go to the documentation of this file.
1
10// ____ __ __ __
11// /\__ _\/\ \ /\ \/\ \
12// \/_/\ \/\ \ \___ __ \ \ \_\ \ ___ __ __ ____ __
13// \ \ \ \ \ _ `\ /'__`\ \ \ _ \ / __`\/\ \/\ \ /',__\ /'__`\
14// \ \ \ \ \ \ \ \/\ __/ \ \ \ \ \/\ \L\ \ \ \_\ \/\__, `\/\ __/
15// \ \_\ \ \_\ \_\ \____\ \ \_\ \_\ \____/\ \____/\/\____/\ \____\
16// \/_/ \/_/\/_/\/____/ \/_/\/_/\/___/ \/___/ \/___/ \/____/
17
18#pragma once
19#include "Utility/Path/Private/PathNode.h"
20
21namespace gobj
22{
23
27struct PathRoot : public PathNode
28{
29public:
30 ~PathRoot() override = default;
31
32 auto begin() -> path_iterator override;
33 auto end() -> path_iterator override;
36 auto getNext(GameObject* ptr) -> GameObject* override;
37};
38
39}
iterator type, refers to a GameObject, and holds onto a reference to a PathNode to determine its rang...
Definition PathNode.h:45
namespace for things relating to GameObject, other than GameObject itself
Definition Entity.h:229
internal type for computing Paths
Definition PathNode.h:37
friend GameObject
Definition PathNode.h:38
Path Node that represents the Root object in the Engine, and provides a starting point for a Path.
Definition PathRoot.h:28
~PathRoot() override=default
auto end() -> path_iterator override
Definition PathRoot.cpp:37
auto getNext(GameObject *ptr) -> GameObject *override
Used by PathNode::path_iterator to increment.
Definition PathRoot.cpp:61
auto begin() -> path_iterator override
Definition PathRoot.cpp:23