Starts a range with an arbitrary GameObject.
More...
#include <PathBase.h>
|
| static auto | getChildren (const GameObject &gobj) -> std::shared_ptr< std::vector< GameObject * > > |
| | helper function to get children of GameObjects as a vector of pointers
|
| friend | GameObject |
| auto | getBegin () const -> path_iterator |
| | function to get the cached beginning of our parent ( or left ) range
|
| auto | setBegin (const path_iterator &begin) -> void |
| | function to set the cached beginning of our parent ( or left ) range
|
| auto | getEnd () const -> path_iterator |
| | function to get the cached beginning of our parent ( or left ) range
|
| auto | setEnd (const path_iterator &end) -> void |
| | function to set the cached end of our parent ( or left ) range
|
| static auto | isNamed (const GameObject &obj, const std::string &name) -> bool |
| | helper function that checks nickname, and then typename if nickname doesn't match used by PathName
|
| std::shared_ptr< PathNode > | next |
| | next Path Node in linked list. Represents the next (right) range
|
Starts a range with an arbitrary GameObject.
◆ PathBase()
| gobj::PathBase::PathBase |
( |
GameObject & | gameObject | ) |
|
|
explicit |
◆ ~PathBase()
| gobj::PathBase::~PathBase |
( |
| ) |
|
|
overridedefault |
◆ begin() [1/2]
- Returns
- iterator to the beginning of the range
Implements gobj::PathNode.
◆ begin() [2/2]
Traverses the linked list of PathNode s to calculate the beginning of the range of GameObjects.
One of the main functions for calculating a path. Takes the left range, and applies whatever modifier the specific PathNode represents (filter by name, filter arbitrarily, get parent, get children, etc.) then gives it's range to the right (next) range, which continues the sequence. Once the end of the linked list is reached, an iterator to the beginning of the final range is returned.
- Parameters
-
| begin | the beginning of the parents ( or left ) range |
| end | sentinel iterator (past the end) of the parents ( left ) range |
- Returns
- iterator to the beginning of the final iterators range
Implements gobj::PathNode.
◆ end() [1/2]
◆ end() [2/2]
Traverses the linked list of PathNode s to find the proper end to the range of GameObjects.
- Parameters
-
| begin | beginning of parents ( or left ) range. Doesn't need to be the actual beginning, because end doesn't depend on beginning at all |
| end | end of parent ( or left ) range. |
- Returns
- iterator to the end
Implements gobj::PathNode.
◆ getNext()
◆ base
The documentation for this struct was generated from the following files:
- /home/egrazil/sites/Brunot/The House/source/Utility/Path/private/PathBase.h
- /home/egrazil/sites/Brunot/The House/source/Utility/Path/private/PathBase.cpp