![]() |
Nazara Engine
0.4
A fast, complete, cross-platform API designed for game development
|
NDK class that represents the owner of the entity and so its lifetime. More...
Public Member Functions | |
| EntityOwner (Entity *entity) | |
| Constructs a EntityOwner object. More... | |
| EntityOwner (const EntityOwner &handle)=delete | |
| EntityOwner (EntityOwner &&handle) noexcept=default | |
| ~EntityOwner () | |
| Destructs the object and calls Reset. More... | |
| void | Reset (Entity *entity=nullptr) |
| Resets the ownership of the entity, previous is killed. More... | |
| void | Reset (EntityOwner &&handle) |
| Resets the ownership of the entity by move semantic. More... | |
| EntityOwner & | operator= (Entity *entity) |
| Resets the ownership of the entity to the affected one. More... | |
| EntityOwner & | operator= (const EntityOwner &handle)=delete |
| EntityOwner & | operator= (EntityOwner &&handle) noexcept=default |
Public Member Functions inherited from Nz::ObjectHandle< Entity > | |
| ObjectHandle () | |
| Constructs a ObjectHandle object by default. | |
| ObjectHandle (Entity *object) | |
| Constructs a ObjectHandle object with a pointer to an object. More... | |
| ObjectHandle (const ObjectHandle &handle) | |
| Constructs a ObjectHandle object by assignation. More... | |
| ObjectHandle (ObjectHandle &&handle) noexcept | |
| Constructs a ObjectHandle object by move semantic. More... | |
| ~ObjectHandle () | |
| Destructs the object and calls reset with nullptr. More... | |
| Entity * | GetObject () const |
| Gets the underlying object. More... | |
| bool | IsValid () const |
| Checks whether the object is valid. More... | |
| void | Reset (Entity *object=nullptr) |
| Resets the content of the ObjectHandle with another object. More... | |
| void | Reset (const ObjectHandle &handle) |
| Resets the content of this with another object. More... | |
| void | Reset (ObjectHandle &&handle) noexcept |
| Resets the content of this with another object by move semantic. More... | |
| ObjectHandle & | Swap (ObjectHandle &handle) |
| Swaps the content of the two ObjectHandle. More... | |
| Nz::String | ToString () const |
| Gives a string representation. More... | |
| operator bool () const | |
| Converts the ObjectHandle to bool. More... | |
| operator Entity * () const | |
| Dereferences the ObjectHandle. More... | |
| Entity * | operator-> () const |
| Dereferences the ObjectHandle. More... | |
| ObjectHandle & | operator= (Entity *object) |
| Assigns the entity into this. More... | |
| ObjectHandle & | operator= (const ObjectHandle &handle) |
| Sets the handle of the ObjectHandle with the handle from another. More... | |
| ObjectHandle & | operator= (ObjectHandle &&handle) noexcept |
| Moves the ObjectHandle into this. More... | |
Additional Inherited Members | |
Static Public Attributes inherited from Nz::ObjectHandle< Entity > | |
| static const ObjectHandle | InvalidHandle |
Protected Member Functions inherited from Nz::ObjectHandle< Entity > | |
| void | OnObjectDestroyed () |
| Action to do on object destruction. | |
| void | OnObjectMoved (Entity *newObject) |
| Action to do on object move. | |
Protected Attributes inherited from Nz::ObjectHandle< Entity > | |
| Entity * | m_object |
NDK class that represents the owner of the entity and so its lifetime.
|
inlineexplicit |
Constructs a EntityOwner object.
| entity | Entity to own |
|
inline |
Destructs the object and calls Reset.
|
inline |
Resets the ownership of the entity to the affected one.
| entity | Entity to own |
|
inline |
Resets the ownership of the entity, previous is killed.
| entity | Entity to own |
|
inline |
Resets the ownership of the entity by move semantic.
| handle | EntityOwner to move into this |