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 voidact(float delta)voidclearAllObservers()voidderegister(Observer<Chef> observer)Stop an observer from receiving future updates from this subjectChefgetLastNotification()voidnotifyObservers(Chef chef)voidregister(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:
actin classcom.badlogic.gdx.scenes.scene2d.Actor
-
register
public void register(Observer<Chef> observer)
Description copied from interface:SubjectAdd an observer which will be notified with every new T
-
deregister
public void deregister(Observer<Chef> observer)
Description copied from interface:SubjectStop an observer from receiving future updates from this subject- Specified by:
deregisterin interfaceSubject<Chef>- Parameters:
observer- the observer to deregister from this subject
-
clearAllObservers
public void clearAllObservers()
- Specified by:
clearAllObserversin interfaceSubject<Chef>
-
notifyObservers
public void notifyObservers(Chef chef)
- Specified by:
notifyObserversin interfaceSubject<Chef>- Parameters:
chef- The new T to send to every registered observer
-
getLastNotification
public Chef getLastNotification()
- Specified by:
getLastNotificationin interfaceSubject<Chef>- Returns:
- the most recent value that was sent to the observers.
-
-