Interface SceneObject

All Superinterfaces:
HasProperties
All Known Subinterfaces:
SceneObjectList
All Known Implementing Classes:
GCurve, GLine, GObject, GPoint, GPolygon, GPolyline, GTri, Layer, Thing

public interface SceneObject extends HasProperties
A generic object within the scene. Either this is itself some object or an object that encapsulate others.
Author:
Lehlogonolo Poole
See Also:
  • 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 a EngineObject being a Jaiva-readable ArrayList of data.
      Returns:
      An EngineObject
    • getTags

      SceneObjectTags getTags()
      Returns the map of instance tags.
      Returns:
      A SceneObjectTags
    • tag

      default void tag(String name, @NotNull Class<?> tagProvider, @NotNull Object value)
      Wrapper over SceneObjectTags.put(String, Class, Object) which allows putting a single tag on this instance
      Parameters:
      name - The name of the tag
      tagProvider - The class of the instance which is providing this tag.
      value - The tag value.