|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.TeamHEC.LocomotionCommotion.Scene.Scene
public class Scene
Field Summary | |
---|---|
static com.badlogic.gdx.utils.Array<com.badlogic.gdx.scenes.scene2d.Actor> |
actors
|
static com.badlogic.gdx.graphics.Camera |
camera
|
static int |
screenX
|
static int |
screenY
|
com.badlogic.gdx.scenes.scene2d.Stage |
stage
|
Constructor Summary | |
---|---|
Scene()
|
Method Summary | |
---|---|
void |
addToStage()
Adds the actors to the scene for all actors |
void |
changeCam(int x,
int y)
Can be used to change or animate the cameras position |
void |
dispose()
Clears the stage |
void |
hide()
|
void |
pause()
|
void |
removeFromStage()
Removes actors from the scene for all actors |
void |
render(float delta)
Draws an actor onto screen |
void |
resize(int width,
int height)
Changes the size of an actor in the scene |
void |
resume()
|
void |
setActorsTouchable(boolean touchable)
|
void |
setVisibility(boolean visible)
|
void |
show()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public com.badlogic.gdx.scenes.scene2d.Stage stage
public static com.badlogic.gdx.graphics.Camera camera
public static int screenX
public static int screenY
public static com.badlogic.gdx.utils.Array<com.badlogic.gdx.scenes.scene2d.Actor> actors
Constructor Detail |
---|
public Scene()
Method Detail |
---|
public void addToStage()
public void removeFromStage()
public void setVisibility(boolean visible)
visible
- boolean value denoting the visiblilty the actor is becomingpublic void setActorsTouchable(boolean touchable)
touchable
- boolean value denoting the interactiblity of an actorpublic void changeCam(int x, int y)
x
- New x coordinatey
- New y coordinatepublic void render(float delta)
render
in interface com.badlogic.gdx.Screen
public void resize(int width, int height)
resize
in interface com.badlogic.gdx.Screen
public void dispose()
dispose
in interface com.badlogic.gdx.Screen
public void show()
show
in interface com.badlogic.gdx.Screen
public void pause()
pause
in interface com.badlogic.gdx.Screen
public void resume()
resume
in interface com.badlogic.gdx.Screen
public void hide()
hide
in interface com.badlogic.gdx.Screen
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |