|
3DRadSpace 0.1.0Alpha
3DRadSpace is a free, simple to use, rapid application development game engine.
|
Base polymorphic type of all objects that can be contained in a scene/ObjectList. More...
#include <IObject.hpp>


Public Member Functions | |
| void | Enable () |
| void | Disable () |
| bool | Switch () |
| void | Show () |
| void | Hide () |
| bool | SwitchVisibility () |
| IObject | GetChild (int idx) |
| int | GetChildrenCount () |
| void | InternalInitialize (IGame *game) |
| Called by ObjectsList to set the _game Game instance. If there are objects manually managed, this MUST be called before Initialize or EditorInitialize. | |
| virtual Reflection::UUID | GetUUID () const noexcept=0 |
| Returns the unique identifier of this object. This is used for serialization and deserialization. | |
| virtual Objects::Gizmos::IGizmo * | GetGizmo () const noexcept=0 |
| Returns the gizmo object of this object, used for editor/debug rendering. | |
| Graphics::IGraphicsDevice * | GetGraphicsDeviceHandle () const noexcept |
| Returns the graphics device handle associated with this object. | |
| IGame * | GetGame () const noexcept |
| Gets the game that this object belongs to. | |
| IObject * | operator[] (size_t idxChild) const |
| Returns the idx-th child of this object. | |
| IObject * | GetParent () const noexcept |
| Returns the parent of this object. | |
| void | SetParent (IObject *newParent) noexcept |
| Sets the parent of this object. | |
| bool | HasParent () const noexcept |
| Checks if this object has a parent. | |
| size_t | GetChildrenCount () const noexcept |
| Returns the number of children of this object. | |
| virtual void | Enable () |
| Enables this object. | |
| virtual void | Disable () |
| Disables this object. | |
| virtual bool | Switch () |
| Switched the enable/disable state of this object. | |
| virtual void | Show () |
| Shows this object. | |
| virtual void | Hide () |
| Hides this object. | |
| virtual bool | SwitchVisibility () |
| Switches the visibility state of this object. | |
| void | Uninitialize () override |
| Called before the object has the destructor called. | |
| virtual | ~IObject () |
| Public Member Functions inherited from Engine3DRadSpace.IInitializable | |
| void | Initialize () |
| virtual void | Initialize ()=0 |
| Initialization method. | |
| virtual | ~IInitializable ()=default |
| Public Member Functions inherited from Engine3DRadSpace.IUpdateable | |
| void | Update () |
| virtual void | Update ()=0 |
| Update function. | |
| virtual | ~IUpdateable ()=default |
| Public Member Functions inherited from Engine3DRadSpace.ILoadable | |
| void | Load () |
| void | Load (string path) |
| virtual void | Load ()=0 |
| Loads object's assets. | |
| virtual void | Load (const std::filesystem::path &path)=0 |
| Reloads assets from another path. The initial underlying asset will not be replaced in the content manager. | |
| virtual | ~ILoadable ()=default |
Public Attributes | |
| std::string | Name |
| Name of the object. | |
| ChildObjectCollection | Children |
| Children of this object. | |
Protected Member Functions | |
| IObject (const std::string &name="Empty", bool enabled=false, bool visible=false) | |
| Default constructor used for reflection. Objects created with this constructor are initially invalid, until internalInitialize() is called. | |
| IObject (const IObject &) noexcept=delete | |
| IObject & | operator= (const IObject &) noexcept=delete |
| IObject (IObject &&) noexcept=default | |
| IObject & | operator= (IObject &&) noexcept=default |
| Protected Member Functions inherited from Engine3DRadSpace.IInitializable | |
| IInitializable ()=default | |
| IInitializable (const IInitializable &) noexcept=default | |
| IInitializable & | operator= (const IInitializable &) noexcept=default |
| IInitializable (IInitializable &&) noexcept=default | |
| IInitializable & | operator= (IInitializable &&) noexcept=default |
| Protected Member Functions inherited from Engine3DRadSpace.IUpdateable | |
| IUpdateable ()=default | |
| IUpdateable (const IUpdateable &) noexcept=default | |
| IUpdateable & | operator= (const IUpdateable &) noexcept=default |
| IUpdateable (IUpdateable &&) noexcept=default | |
| IUpdateable & | operator= (IUpdateable &&) noexcept=default |
| Protected Member Functions inherited from Engine3DRadSpace.ILoadable | |
| ILoadable ()=default | |
| ILoadable (const ILoadable &) noexcept=default | |
| ILoadable & | operator= (const ILoadable &) noexcept=default |
| ILoadable (ILoadable &&) noexcept=default | |
| ILoadable & | operator= (ILoadable &&) noexcept=default |
Protected Attributes | |
| IGame * | _game = nullptr |
| Graphics::IGraphicsDevice * | _device = nullptr |
| IObject * | _parent = nullptr |
Properties | |
| string | Name [get, set] |
| bool | Enabled [get, set] |
| Is this object enabled? | |
| bool | Visible [get, set] |
| Is this object visible? | |
| Reflection.UUID | UUID [get] |
| IGame | Game [get] |
| IGraphicsDevice | GraphicsDevice [get] |
| IGizmo | Gizmo [get] |
| ObjectCollection | Children [get] |
| IObject | Parent [get, set] |
| Properties inherited from Engine3DRadSpace.IPtrWrapper | |
| IntPtr | Handle [get] |
Friends | |
| class | Game |
| class | ObjectList |
Base polymorphic type of all objects that can be contained in a scene/ObjectList.
|
explicitprotected |
Default constructor used for reflection. Objects created with this constructor are initially invalid, until internalInitialize() is called.
| name | |
| tag | |
| enabled | |
| visible |
|
protecteddeletenoexcept |
|
protecteddefaultnoexcept |
|
virtual |
| void IObject.Disable | ( | ) |
|
virtual |
Disables this object.
Reimplemented in Engine3DRadSpace.Objects.InstIObject, Engine3DRadSpace.Objects.SoundEffect, Engine3DRadSpace.Objects.SoundSource, and Engine3DRadSpace.Physics::Objects::Force.
| void IObject.Enable | ( | ) |
|
virtual |
Enables this object.
Reimplemented in Engine3DRadSpace.Objects.InstIObject, Engine3DRadSpace.Objects.SoundEffect, Engine3DRadSpace.Objects.SoundSource, and Engine3DRadSpace.Physics::Objects::Force.
| int Engine3DRadSpace.Objects.IObject.GetChildrenCount | ( | ) |
|
noexcept |
Returns the number of children of this object.
|
noexcept |
Gets the game that this object belongs to.
|
pure virtualnoexcept |
Returns the gizmo object of this object, used for editor/debug rendering.
Implemented in Engine3DRadSpace.Objects.Box, Engine3DRadSpace.Objects.Camera, Engine3DRadSpace.Objects.Cone, Engine3DRadSpace.Objects.Counter, Engine3DRadSpace.Objects.Cylinder, Engine3DRadSpace.Objects.Empty, Engine3DRadSpace.Objects.ExitFade, Engine3DRadSpace.Objects.Fog, Engine3DRadSpace.Objects.FreeCam, Engine3DRadSpace.Objects.Skinmesh, Engine3DRadSpace.Objects.Skybox, Engine3DRadSpace.Objects.SkyColor, Engine3DRadSpace.Objects.SoundEffect, Engine3DRadSpace.Objects.SoundSource, Engine3DRadSpace.Objects.Sphere, Engine3DRadSpace.Objects.Sprite, Engine3DRadSpace.Objects.TextPrint, Engine3DRadSpace.Objects::DirectionalLight, Engine3DRadSpace.Objects::EventOnKey, Engine3DRadSpace.Objects::EventOnLocation, Engine3DRadSpace.Objects::SettingsManager, Engine3DRadSpace.Objects::SpriteBillboard, Engine3DRadSpace.Objects::Timer, Engine3DRadSpace.Physics::Objects::Force, Engine3DRadSpace.Physics::Objects::GForce, Engine3DRadSpace.Physics::Objects::Joint, Engine3DRadSpace.Physics::Objects::RigidDynamic, Engine3DRadSpace.Physics::Objects::RigidStatic, and TestObject.
|
noexcept |
Returns the graphics device handle associated with this object.
|
noexcept |
Returns the parent of this object.
|
pure virtualnoexcept |
Returns the unique identifier of this object. This is used for serialization and deserialization.
Implemented in Engine3DRadSpace.Objects.Box, Engine3DRadSpace.Objects.Camera, Engine3DRadSpace.Objects.Cone, Engine3DRadSpace.Objects.Counter, Engine3DRadSpace.Objects.Cylinder, Engine3DRadSpace.Objects.Empty, Engine3DRadSpace.Objects.ExitFade, Engine3DRadSpace.Objects.Fog, Engine3DRadSpace.Objects.FreeCam, Engine3DRadSpace.Objects.Skinmesh, Engine3DRadSpace.Objects.Skybox, Engine3DRadSpace.Objects.SkyColor, Engine3DRadSpace.Objects.SoundEffect, Engine3DRadSpace.Objects.SoundSource, Engine3DRadSpace.Objects.Sphere, Engine3DRadSpace.Objects.Sprite, Engine3DRadSpace.Objects.TextPrint, Engine3DRadSpace.Objects::Button, Engine3DRadSpace.Objects::DirectionalLight, Engine3DRadSpace.Objects::EventOnKey, Engine3DRadSpace.Objects::EventOnLocation, Engine3DRadSpace.Objects::SettingsManager, Engine3DRadSpace.Objects::SpriteBillboard, Engine3DRadSpace.Objects::Timer, Engine3DRadSpace.Physics::Objects::Force, Engine3DRadSpace.Physics::Objects::FPCharacter, Engine3DRadSpace.Physics::Objects::GForce, Engine3DRadSpace.Physics::Objects::Joint, Engine3DRadSpace.Physics::Objects::RigidDynamic, Engine3DRadSpace.Physics::Objects::RigidStatic, and TestObject.
|
noexcept |
Checks if this object has a parent.
| void IObject.Hide | ( | ) |
|
virtual |
Hides this object.
Reimplemented in Engine3DRadSpace.Objects.InstIObject.
| void IObject::InternalInitialize | ( | IGame * | game | ) |
Called by ObjectsList to set the _game Game instance. If there are objects manually managed, this MUST be called before Initialize or EditorInitialize.
| game | Application context |
| IObject * IObject::operator[] | ( | size_t | idxChild | ) | const |
Returns the idx-th child of this object.
| idxChild | Child index |
|
noexcept |
Sets the parent of this object.
| newParent | Pointer to the new parent object. |
| void IObject.Show | ( | ) |
|
virtual |
Shows this object.
Reimplemented in Engine3DRadSpace.Objects.InstIObject.
| bool IObject.Switch | ( | ) |
|
virtual |
Switched the enable/disable state of this object.
Reimplemented in Engine3DRadSpace.Objects.InstIObject, Engine3DRadSpace.Objects.SoundEffect, and Engine3DRadSpace.Objects.SoundSource.
| bool IObject.SwitchVisibility | ( | ) |
|
virtual |
Switches the visibility state of this object.
Reimplemented in Engine3DRadSpace.Objects.InstIObject.
|
overridevirtual |
Called before the object has the destructor called.
Implements Engine3DRadSpace.IInitializable.
|
friend |
|
friend |
|
protected |
|
protected |
|
protected |
Children of this object.
| std::string Engine3DRadSpace.Objects.IObject.Name |
Name of the object.
|
get |
|
getset |
Is this object enabled?
|
get |
|
get |
|
get |
|
getset |
|
getset |
|
get |
|
getset |
Is this object visible?