Brunot
Loading...
Searching...
No Matches
gobj Namespace Reference

namespace for things relating to GameObject, other than GameObject itself More...

Classes

class  Path
 An object that represents where a GameObject or a range of GameObjects exists in the Engine. More...
struct  PathBase
 Starts a range with an arbitrary GameObject. More...
struct  PathDir
 Given a range of GameObjects, generates a range of all of those GameObjects children. More...
struct  PathFilter
 Internal PathNode that takes a range of GameObjects on the left, and filters the range to only GameObjects fulfilling a predicate. More...
struct  PathName
 Internal PathNode that takes a range of GameObjects on the left, and filters the range to only GameObjects matching a given name. More...
struct  PathNode
 internal type for computing Paths More...
struct  PathRoot
 Path Node that represents the Root object in the Engine, and provides a starting point for a Path. More...
struct  PathUp
 Internal Path Node that takes a range of GameObjects on the left, and transforms the range into the parent of every GameObject in the range. More...

Typedefs

using UUID = unsigned int

Enumerations

enum class  Type {
  null_obj_type = 0 , no_parent_type = 100 , Engine = 200 , Root = 300 ,
  Node = 400 , ChildrenHandler = 500 , System = 600 , Entity = 700 ,
  Component = 800 , Action = 900
}

Functions

auto moveEntity (Entity &entityToMove, Entity &newParent) -> void
 Makes the provided entity a child of another entity.
auto operator< (const GameObject &lhs, const GameObject &rhs) -> bool
 default comparator for gameobjects.

Detailed Description

namespace for things relating to GameObject, other than GameObject itself

Typedef Documentation

◆ UUID

using gobj::UUID = unsigned int

Enumeration Type Documentation

◆ Type

enum class gobj::Type
strong
Enumerator
null_obj_type 
no_parent_type 
Engine 
Root 
Node 
ChildrenHandler 
System 
Entity 
Component 
Action 

Function Documentation

◆ moveEntity()

auto gobj::moveEntity ( Entity & entityToMove,
Entity & newParent )->void

Makes the provided entity a child of another entity.

Parameters
entityToMoveThe entity you want to be moved
newParentThe parent you want the entity to move to be a child of

◆ operator<()

auto gobj::operator< ( const GameObject & lhs,
const GameObject & rhs )->bool

default comparator for gameobjects.

currently implemented only to sort based on UUID, so gameobjects are sorted arbitrarily, but consistently (until a copy operation)

Parameters
lhs
rhs
Returns
true if lhs UUID is less than rhs UUID
Todo
: Organize System's properly