Package fr.formiko.kokcinelo.view
Class MapActor
java.lang.Object
com.badlogic.gdx.scenes.scene2d.Actor
fr.formiko.kokcinelo.view.MapActor
public class MapActor
extends com.badlogic.gdx.scenes.scene2d.Actor
Represent the map & overlay actor
- Since:
- 0.1
- Version:
- 0.1
-
Constructor Summary
ConstructorsConstructorDescriptionMapActor
(float width, float height, com.badlogic.gdx.graphics.Color color, boolean withDetails) MapActor
(float width, float height, com.badlogic.gdx.graphics.Color color, boolean withDetails, int stones, int sticks) MapActor
(float width, float height, com.badlogic.gdx.graphics.Color color, boolean withDetails, int stones, int sticks, com.badlogic.gdx.graphics.Color color2) Main constructor.MapActor
(float width, float height, com.badlogic.gdx.graphics.Color color, com.badlogic.gdx.graphics.Color color2) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addToExclude
(float x, float y, float radius) void
void
draw
(com.badlogic.gdx.graphics.g2d.Batch batch, float parentAlpha) Draw the texture that represent this.toString()
Standard toString that return important vars as String.Methods inherited from class com.badlogic.gdx.scenes.scene2d.Actor
act, addAction, addCaptureListener, addListener, ancestorsVisible, ascendantsVisible, clear, clearActions, clearListeners, clipBegin, clipBegin, clipEnd, debug, drawDebug, 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, hit, 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, setStage, setTouchable, setUserObject, setVisible, setWidth, setX, setX, setY, setY, setZIndex, sizeBy, sizeBy, sizeChanged, stageToLocalCoordinates, toBack, toFront
-
Constructor Details
-
MapActor
public MapActor(float width, float height, com.badlogic.gdx.graphics.Color color, boolean withDetails, int stones, int sticks, @Null com.badlogic.gdx.graphics.Color color2) Main constructor.- Parameters:
width
- width of thisheight
- height of thiscolor
- color of thiswithDetails
- if true, add some details to the map.stones
- number of stones to add to the map.sticks
- number of sticks to add to the map.color2
- color of the gradient.
-
MapActor
public MapActor(float width, float height, com.badlogic.gdx.graphics.Color color, boolean withDetails, int stones, int sticks) -
MapActor
public MapActor(float width, float height, com.badlogic.gdx.graphics.Color color, boolean withDetails) -
MapActor
public MapActor(float width, float height, com.badlogic.gdx.graphics.Color color, com.badlogic.gdx.graphics.Color color2)
-
-
Method Details
-
draw
public void draw(com.badlogic.gdx.graphics.g2d.Batch batch, float parentAlpha) Draw the texture that represent this.- Overrides:
draw
in classcom.badlogic.gdx.scenes.scene2d.Actor
-
toString
Standard toString that return important vars as String.- Overrides:
toString
in classcom.badlogic.gdx.scenes.scene2d.Actor
-
clearToExclude
public void clearToExclude() -
addToExclude
public void addToExclude(float x, float y, float radius)
-