Brunot
Loading...
Searching...
No Matches
PathName.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
23namespace gobj
24{
25
30struct PathName : public gobj::PathNode
31{
32 ~PathName() override = default;
33
34 explicit PathName(std::string name);
35 auto begin() -> path_iterator override;
36 auto end() -> path_iterator override;
39 auto getNext(GameObject* ptr) -> GameObject* override;
40
43
44private:
45 std::string name_;
46};
47
48}
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 findNewBegin(path_iterator &begin, const path_iterator &end) -> path_iterator
helper function to find the beginning of our range
Definition PathName.cpp:38
auto end() -> path_iterator override
Definition PathName.cpp:33
auto begin() -> path_iterator override
Definition PathName.cpp:28
auto getNext(GameObject *ptr) -> GameObject *override
Used by PathNode::path_iterator to increment.
Definition PathName.cpp:93
~PathName() override=default
std::string name_
Definition PathName.h:45
PathName(std::string name)
Definition PathName.cpp:22
internal type for computing Paths
Definition PathNode.h:37
friend GameObject
Definition PathNode.h:38