com.TeamHEC.LocomotionCommotion.UI_Elements
Class SpriteButton

java.lang.Object
  extended by com.badlogic.gdx.scenes.scene2d.Actor
      extended by com.TeamHEC.LocomotionCommotion.UI_Elements.Sprite
          extended by com.TeamHEC.LocomotionCommotion.UI_Elements.SpriteButton
Direct Known Subclasses:
Game_Map_StationBtn, PlayerGoalRemoveBtn

public class SpriteButton
extends Sprite

Author:
Matthew Taylor , Rob

Field Summary
 
Fields inherited from class com.TeamHEC.LocomotionCommotion.UI_Elements.Sprite
started
 
Constructor Summary
SpriteButton(float x, float y, com.badlogic.gdx.graphics.Texture texture)
          A sprite which can be clicked on.
 
Method Summary
 
Methods inherited from class com.TeamHEC.LocomotionCommotion.UI_Elements.Sprite
act, draw, getPosition, getTexture, getX, getY, increaseX, increaseY, refreshBounds, setPosition, setTexture, setX, setY
 
Methods inherited from class com.badlogic.gdx.scenes.scene2d.Actor
addAction, addCaptureListener, addListener, clear, clearActions, clearListeners, clipBegin, clipBegin, clipEnd, debug, drawDebug, fire, getActions, getCaptureListeners, getColor, getDebug, getHeight, getListeners, getName, getOriginX, getOriginY, getParent, getRight, getRotation, getScaleX, getScaleY, getStage, getTop, getTouchable, getUserObject, getWidth, getX, getY, getZIndex, hasParent, hit, isAscendantOf, isDescendantOf, isTouchable, isVisible, localToAscendantCoordinates, localToParentCoordinates, localToStageCoordinates, moveBy, notify, parentToLocalCoordinates, remove, removeAction, removeCaptureListener, removeListener, rotateBy, scaleBy, scaleBy, screenToLocalCoordinates, setBounds, setColor, setColor, setDebug, setHeight, setName, setOrigin, setOrigin, setOriginX, setOriginY, setPosition, setRotation, setScale, setScale, setScaleX, setScaleY, setSize, setTouchable, setUserObject, setVisible, setWidth, setZIndex, sizeBy, sizeBy, stageToLocalCoordinates, toBack, toFront, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SpriteButton

public SpriteButton(float x,
                    float y,
                    com.badlogic.gdx.graphics.Texture texture)
A sprite which can be clicked on. The onClicked method can be overwritten using anonymous Java Classes

Parameters:
x - xPosition on screen
y - yPosition on screen
texture - Image texture to use