Package cs.eng1.piazzapanic.stations
Class StationCollider
- java.lang.Object
-
- com.badlogic.gdx.scenes.scene2d.Actor
-
- cs.eng1.piazzapanic.stations.StationCollider
-
-
Constructor Summary
Constructors Constructor Description StationCollider(ChefManager manager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
act(float delta)
void
clearAllObservers()
void
deregister(Observer<Chef> observer)
Stop an observer from receiving future updates from this subjectChef
getLastNotification()
void
notifyObservers(Chef chef)
void
register(Observer<Chef> observer)
Add an observer which will be notified with every new T-
Methods inherited from class com.badlogic.gdx.scenes.scene2d.Actor
addAction, addCaptureListener, addListener, ancestorsVisible, ascendantsVisible, clear, clearActions, clearListeners, clipBegin, clipBegin, clipEnd, debug, draw, 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, toString
-
-
-
-
Constructor Detail
-
StationCollider
public StationCollider(ChefManager manager)
-
-
Method Detail
-
act
public void act(float delta)
- Overrides:
act
in classcom.badlogic.gdx.scenes.scene2d.Actor
-
register
public void register(Observer<Chef> observer)
Description copied from interface:Subject
Add an observer which will be notified with every new T
-
deregister
public void deregister(Observer<Chef> observer)
Description copied from interface:Subject
Stop an observer from receiving future updates from this subject- Specified by:
deregister
in interfaceSubject<Chef>
- Parameters:
observer
- the observer to deregister from this subject
-
clearAllObservers
public void clearAllObservers()
- Specified by:
clearAllObservers
in interfaceSubject<Chef>
-
notifyObservers
public void notifyObservers(Chef chef)
- Specified by:
notifyObservers
in interfaceSubject<Chef>
- Parameters:
chef
- The new T to send to every registered observer
-
getLastNotification
public Chef getLastNotification()
- Specified by:
getLastNotification
in interfaceSubject<Chef>
- Returns:
- the most recent value that was sent to the observers.
-
-