Brunot
Loading...
Searching...
No Matches
PathUp.h
Go to the documentation of this file.
1
11// ____ __ __ __
12// /\__ _\/\ \ /\ \/\ \
13// \/_/\ \/\ \ \___ __ \ \ \_\ \ ___ __ __ ____ __
14// \ \ \ \ \ _ `\ /'__`\ \ \ _ \ / __`\/\ \/\ \ /',__\ /'__`\
15// \ \ \ \ \ \ \ \/\ __/ \ \ \ \ \/\ \L\ \ \ \_\ \/\__, `\/\ __/
16// \ \_\ \ \_\ \_\ \____\ \ \_\ \_\ \____/\ \____/\/\____/\ \____\
17// \/_/ \/_/\/_/\/____/ \/_/\/_/\/___/ \/___/ \/___/ \/____/
18
19
20#pragma once
22
23namespace gobj
24{
25
30struct PathUp : public PathNode
31{
32 ~PathUp() override = default;
33
34 auto begin() -> path_iterator override;
35 auto end() -> path_iterator override;
38 auto getNext(GameObject* ptr) -> GameObject* override;
39
44};
45
46}
Base class for a linked list of Path sections, which altogether represent the logic of a Path,...
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
Internal Path Node that takes a range of GameObjects on the left, and transforms the range into the p...
Definition PathUp.h:31
~PathUp() override=default
static auto getProperParent(path_iterator begin) -> GameObject *
helper function to get the proper parent of a GameObject ( used for entities, to skip from sceneroot ...
Definition PathUp.cpp:35
auto begin() -> path_iterator override
Definition PathUp.cpp:25
auto end() -> path_iterator override
Definition PathUp.cpp:30
auto getNext(GameObject *ptr) -> GameObject *override
Used by PathNode::path_iterator to increment.
Definition PathUp.cpp:86