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

    Constructors
    Constructor
    Description
    MapActor(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 Type
    Method
    Description
    void
    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.
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 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 this
      height - height of this
      color - color of this
      withDetails - 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 class com.badlogic.gdx.scenes.scene2d.Actor
    • toString

      public String toString()
      Standard toString that return important vars as String.
      Overrides:
      toString in class com.badlogic.gdx.scenes.scene2d.Actor
    • clearToExclude

      public void clearToExclude()
    • addToExclude

      public void addToExclude(float x, float y, float radius)