Package fr.formiko.kokcinelo.view
Class EnvironmentMenuScreen
java.lang.Object
com.badlogic.gdx.scenes.scene2d.Actor
com.badlogic.gdx.scenes.scene2d.Group
fr.formiko.kokcinelo.view.EnvironmentMenuScreen
- All Implemented Interfaces:
com.badlogic.gdx.scenes.scene2d.utils.Cullable
public class EnvironmentMenuScreen
extends com.badlogic.gdx.scenes.scene2d.Group
Group of actor able to display moving background.
- Since:
- 0.3
- Version:
- 1.3
-
Constructor Summary
ConstructorsConstructorDescriptionEnvironmentMenuScreen
(com.badlogic.gdx.graphics.OrthographicCamera camera) Create the environment. -
Method Summary
Modifier and TypeMethodDescriptionvoid
act
(float delta) Act for actors & be sure that the background actors always cover all background pixels.void
draw
(com.badlogic.gdx.graphics.g2d.Batch batch, float parentAlpha) Draw the background.float
float
float
float
float
float
boolean
float
void
setWithGrass
(boolean withGrass) void
setZoom
(float zoom) Methods inherited from class com.badlogic.gdx.scenes.scene2d.Group
addActor, addActorAfter, addActorAt, addActorBefore, applyTransform, applyTransform, childrenChanged, clear, clear, clearChildren, clearChildren, computeTransform, debugAll, drawChildren, drawDebug, drawDebugChildren, findActor, getChild, getChildren, getCullingArea, hasChildren, hit, isTransform, localToDescendantCoordinates, removeActor, removeActor, removeActorAt, resetTransform, resetTransform, setCullingArea, setDebug, setStage, setTransform, swapActor, swapActor, toString
Methods inherited from class com.badlogic.gdx.scenes.scene2d.Actor
addAction, addCaptureListener, addListener, ancestorsVisible, ascendantsVisible, clearActions, clearListeners, clipBegin, clipBegin, clipEnd, debug, drawDebugBounds, fire, firstAscendant, getActions, getCaptureListeners, getColor, getDebug, getHeight, getListeners, getName, getOriginX, getOriginY, getParent, getRight, getRotation, getScaleX, getScaleY, getStage, getTop, getTouchable, getUserObject, getWidth, getX, getX, getY, getY, getZIndex, hasActions, hasKeyboardFocus, hasParent, hasScrollFocus, isAscendantOf, isDescendantOf, isTouchable, isTouchFocusListener, isTouchFocusTarget, isVisible, localToActorCoordinates, localToAscendantCoordinates, localToParentCoordinates, localToScreenCoordinates, localToStageCoordinates, moveBy, notify, parentToLocalCoordinates, positionChanged, remove, removeAction, removeCaptureListener, removeListener, rotateBy, rotationChanged, scaleBy, scaleBy, scaleChanged, screenToLocalCoordinates, setBounds, setColor, setColor, setDebug, setHeight, setName, setOrigin, setOrigin, setOriginX, setOriginY, setParent, setPosition, setPosition, setRotation, setScale, setScale, setScaleX, setScaleY, setSize, setTouchable, setUserObject, setVisible, setWidth, setX, setX, setY, setY, setZIndex, sizeBy, sizeBy, sizeChanged, stageToLocalCoordinates, toBack, toFront
-
Constructor Details
-
EnvironmentMenuScreen
public EnvironmentMenuScreen(com.badlogic.gdx.graphics.OrthographicCamera camera) Create the environment.- Parameters:
camera
- The camera to use
-
-
Method Details
-
setZoom
public void setZoom(float zoom) -
isWithGrass
public boolean isWithGrass() -
setWithGrass
public void setWithGrass(boolean withGrass) -
maxUnzoom
public float maxUnzoom() -
getVisibleWidth
public float getVisibleWidth() -
getVisibleHeight
public float getVisibleHeight() -
getMinVisibleX
public float getMinVisibleX() -
getMaxVisibleX
public float getMaxVisibleX() -
getMinVisibleY
public float getMinVisibleY() -
getMaxVisibleY
public float getMaxVisibleY() -
act
public void act(float delta) Act for actors & be sure that the background actors always cover all background pixels.- Overrides:
act
in classcom.badlogic.gdx.scenes.scene2d.Group
-
draw
public void draw(com.badlogic.gdx.graphics.g2d.Batch batch, float parentAlpha) Draw the background.- Overrides:
draw
in classcom.badlogic.gdx.scenes.scene2d.Group
-