Interface SceneObject
- All Superinterfaces:
HasProperties
- All Known Subinterfaces:
SceneObjectList
- All Known Implementing Classes:
GCurve, GLine, GObject, GPoint, GPolygon, GPolyline, GTri, Layer, Thing
A generic object within the scene. Either this is itself some object or an object that encapsulate others.
- Author:
- Lehlogonolo Poole
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetId()Retrieves the unique identifier (UUID) of this scene object.getName()Retrieves the name of this scene object.getTags()Returns the map of instance tags.default voidWrapper overSceneObjectTags.put(String, Class, Object)which allows putting a single tag on this instancetoObject()Converts this SceneObject to aEngineObjectbeing a Jaiva-readableArrayListof data.Methods inherited from interface HasProperties
getProperties
-
Method Details
-
getName
String getName()Retrieves the name of this scene object.- Returns:
- The name of the scene object as a String.
-
getId
UUID getId()Retrieves the unique identifier (UUID) of this scene object.- Returns:
- The UUID of the scene object.
-
toObject
EngineObject toObject()Converts this SceneObject to aEngineObjectbeing a Jaiva-readableArrayListof data.- Returns:
- An
EngineObject
-
getTags
-
tag
Wrapper overSceneObjectTags.put(String, Class, Object)which allows putting a single tag on this instance- Parameters:
name- The name of the tagtagProvider- The class of the instance which is providing this tag.value- The tag value.
-