com.TeamHEC.LocomotionCommotion.Scene
Class Scene

java.lang.Object
  extended by com.TeamHEC.LocomotionCommotion.Scene.Scene
All Implemented Interfaces:
com.badlogic.gdx.Screen
Direct Known Subclasses:
StartMenu

public class Scene
extends java.lang.Object
implements com.badlogic.gdx.Screen

Author:
Matthew Taylor

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

stage

public com.badlogic.gdx.scenes.scene2d.Stage stage

camera

public static com.badlogic.gdx.graphics.Camera camera

screenX

public static int screenX

screenY

public static int screenY

actors

public static com.badlogic.gdx.utils.Array<com.badlogic.gdx.scenes.scene2d.Actor> actors
Constructor Detail

Scene

public Scene()
Method Detail

addToStage

public void addToStage()
Adds the actors to the scene for all actors


removeFromStage

public void removeFromStage()
Removes actors from the scene for all actors


setVisibility

public void setVisibility(boolean visible)
Parameters:
visible - boolean value denoting the visiblilty the actor is becoming

setActorsTouchable

public void setActorsTouchable(boolean touchable)
Parameters:
touchable - boolean value denoting the interactiblity of an actor

changeCam

public void changeCam(int x,
                      int y)
Can be used to change or animate the cameras position

Parameters:
x - New x coordinate
y - New y coordinate

render

public void render(float delta)
Draws an actor onto screen

Specified by:
render in interface com.badlogic.gdx.Screen

resize

public void resize(int width,
                   int height)
Changes the size of an actor in the scene

Specified by:
resize in interface com.badlogic.gdx.Screen

dispose

public void dispose()
Clears the stage

Specified by:
dispose in interface com.badlogic.gdx.Screen

show

public void show()
Specified by:
show in interface com.badlogic.gdx.Screen

pause

public void pause()
Specified by:
pause in interface com.badlogic.gdx.Screen

resume

public void resume()
Specified by:
resume in interface com.badlogic.gdx.Screen

hide

public void hide()
Specified by:
hide in interface com.badlogic.gdx.Screen