|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.badlogic.gdx.scenes.scene2d.Actor
com.TeamHEC.LocomotionCommotion.Goal.GoalActor
public class GoalActor
| Field Summary | |
|---|---|
int |
index
|
| Constructor Summary | |
|---|---|
GoalActor(int actorY,
int actorX,
boolean empty,
Goal goal)
|
|
| Method Summary | |
|---|---|
void |
act(float delta)
|
void |
draw(com.badlogic.gdx.graphics.g2d.Batch batch,
float alpha)
|
Goal |
getGoal()
Gets the goal assigned to the goal actor |
int |
getIndex()
Gets the goals index |
float |
getX()
Gets the X coordinated of the actor |
float |
getY()
Gets the Y coordinate for the actor |
boolean |
isEmpty()
Returns if the goal actor is empty |
boolean |
isOwnedgoal()
Gets if the goal is owned |
boolean |
isPlanRouteButtonVisible()
gets if the route plan button is visible |
void |
refreshBounds()
|
void |
setEmpty(java.lang.Boolean empty)
When we set empty we set the value AND change the texture to the relevant texture; |
void |
setGoal(Goal goal)
Sets the goal for the goal actor |
void |
setIndex(int i)
Sets the goal's index |
void |
setOwnedgoal(boolean ownedgoal)
Sets if a goal has an owner |
void |
setPlanRouteButtonVisible(boolean planRouteButtonVisible)
Sets of the route plan button is visible |
void |
setX(float x)
Sets the X coordinate of the actor |
void |
setY(float y)
Sets the Y coordinate of the goal actor |
| 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, 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 |
|---|
public int index
| Constructor Detail |
|---|
public GoalActor(int actorY,
int actorX,
boolean empty,
Goal goal)
| Method Detail |
|---|
public void draw(com.badlogic.gdx.graphics.g2d.Batch batch,
float alpha)
draw in class com.badlogic.gdx.scenes.scene2d.Actorpublic void act(float delta)
act in class com.badlogic.gdx.scenes.scene2d.Actorpublic boolean isEmpty()
public void setEmpty(java.lang.Boolean empty)
empty - - Boolean for whether or not the Goal Actor has an assigned goal.public void setGoal(Goal goal)
goal - public Goal getGoal()
public void setX(float x)
setX in class com.badlogic.gdx.scenes.scene2d.Actorx - the x-coordinate of the goal actor on the screenpublic void setY(float y)
setY in class com.badlogic.gdx.scenes.scene2d.Actory - the y-coordinate of the goal actor on the screenpublic float getX()
getX in class com.badlogic.gdx.scenes.scene2d.Actorpublic float getY()
getY in class com.badlogic.gdx.scenes.scene2d.Actorpublic int getIndex()
public void setIndex(int i)
i - public boolean isPlanRouteButtonVisible()
public void setPlanRouteButtonVisible(boolean planRouteButtonVisible)
planRouteButtonVisible - public boolean isOwnedgoal()
public void setOwnedgoal(boolean ownedgoal)
ownedgoal - public void refreshBounds()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||