Package buildengine.engine.stage.scene
Class Scene
A scene is responsible for holding data like a container (no functionality).
The scene holds a list of Actors, Directors, UIElements and some basic systems like
physics, renderer and collisions. See respectable classes for functionality.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds an actor to the scene.void
addDirector
(Director director) void
addDirector
(Director... directors) void
addElement
(UIElement element) Creates a list containing all the active actors (= the actors to be updated).<U> List<U>
getComponents
(Class<U> classType) List all ACTIVE components with type UgetList()
Creates a list containing all the actors (destroyed actors excluded).getName()
void
removeDirector
(Director director) void
removeElement
(UIElement element) toString()
-
Constructor Details
-
Scene
public Scene() -
Scene
-
Scene
-
-
Method Details
-
addDirector
-
addDirector
-
removeDirector
-
getDirectors
-
addElement
-
removeElement
-
add
Adds an actor to the scene. Updates the scene object of the actor and automatically activates it. -
getList
Creates a list containing all the actors (destroyed actors excluded). -
getActiveList
Creates a list containing all the active actors (= the actors to be updated).- Returns:
- a list of all active actors in the scene.
-
select
-
getComponents
List all ACTIVE components with type U- Type Parameters:
U
- The type of component- Parameters:
classType
- The class of the component- Returns:
- a list of all actor components in this scene of type U
-
getCursorPosition
-
getCollisions
-
getPhysics
-
getElements
-
getName
-
getCamera
-
getRenderer
-
toString
-