com.TeamHEC.LocomotionCommotion.Goal
Class PlayerGoalRemoveBtn

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
              extended by com.TeamHEC.LocomotionCommotion.Goal.PlayerGoalRemoveBtn

public class PlayerGoalRemoveBtn
extends SpriteButton

Author:
Robert Precious The Remove Button has two different modes, remove or undo. Remove (if undo is false) removes the goal completely from player goals. Undo (if undo is true and only available when you select a goal from the goal menu BEFORE closing.) allows you to put the goal back.

Field Summary
 int index
           
 int newgoalindex
           
 boolean undo
           
 
Fields inherited from class com.TeamHEC.LocomotionCommotion.UI_Elements.Sprite
started
 
Constructor Summary
PlayerGoalRemoveBtn(float x, float y, com.badlogic.gdx.graphics.Texture texture, int index)
           
 
Method Summary
 int getnewgoalindex()
          Gets the new goal index of the goal
 boolean getUndo()
          returns if you can undo selecting the goal
 void resetButtons()
          resets the button texture
 void setnewgoalindex(int i)
          Sets the goal index
 void setRedoBtn()
          Sets the redo button
 void setUndo(boolean b)
          Sets if you can undo selecting the goal
 
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
 

Field Detail

index

public int index

newgoalindex

public int newgoalindex

undo

public boolean undo
Constructor Detail

PlayerGoalRemoveBtn

public PlayerGoalRemoveBtn(float x,
                           float y,
                           com.badlogic.gdx.graphics.Texture texture,
                           int index)
Method Detail

getnewgoalindex

public int getnewgoalindex()
Gets the new goal index of the goal

Returns:
Int new goal index

setnewgoalindex

public void setnewgoalindex(int i)
Sets the goal index

Parameters:
i -

getUndo

public boolean getUndo()
returns if you can undo selecting the goal

Returns:
Boolean can undo

setUndo

public void setUndo(boolean b)
Sets if you can undo selecting the goal

Parameters:
b - true if selecting the goal can be undone

resetButtons

public void resetButtons()
resets the button texture


setRedoBtn

public void setRedoBtn()
Sets the redo button