Brunot
Loading...
Searching...
No Matches
PathBase.h
Go to the documentation of this file.
1
11// ____ __ __ __
12// /\__ _\/\ \ /\ \/\ \
13// \/_/\ \/\ \ \___ __ \ \ \_\ \ ___ __ __ ____ __
14// \ \ \ \ \ _ `\ /'__`\ \ \ _ \ / __`\/\ \/\ \ /',__\ /'__`\
15// \ \ \ \ \ \ \ \/\ __/ \ \ \ \ \/\ \L\ \ \ \_\ \/\__, `\/\ __/
16// \ \_\ \ \_\ \_\ \____\ \ \_\ \_\ \____/\ \____/\/\____/\ \____\
17// \/_/ \/_/\/_/\/____/ \/_/\/_/\/___/ \/___/ \/___/ \/____/
18
19
20#pragma once
21#include "Utility/Path/Private/PathNode.h"
22
23
24namespace gobj
25{
26
30struct PathBase : public PathNode
31{
32public:
37 explicit PathBase(GameObject& gameObject);
38 ~PathBase() override = default;
39
40 auto begin() -> path_iterator override;
41 auto end() -> path_iterator override;
44 auto getNext(GameObject* ptr) -> GameObject* override;
45
46private:
47 GameObject* base{nullptr};
48};
49
50}
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
auto begin() -> path_iterator override
Definition PathBase.cpp:27
~PathBase() override=default
GameObject * base
Definition PathBase.h:47
auto end() -> path_iterator override
Definition PathBase.cpp:41
PathBase(GameObject &gameObject)
constructor
Definition PathBase.cpp:21
auto getNext(GameObject *ptr) -> GameObject *override
Used by PathNode::path_iterator to increment.
Definition PathBase.cpp:65
internal type for computing Paths
Definition PathNode.h:37
friend GameObject
Definition PathNode.h:38