Class DraggableAreaEntity
java.lang.Object
ch.epfl.cs107.play.engine.actor.Entity
ch.epfl.cs107.play.areagame.actor.AreaEntity
ch.epfl.cs107.play.areagame.actor.DraggableAreaEntity
- All Implemented Interfaces:
Interactable,Acoustics,Actor,Draggable,Graphics,Updatable,Positionable
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.epfl.cs107.play.areagame.actor.Interactable
Interactable.Listener -
Constructor Summary
ConstructorsConstructorDescriptionDraggableAreaEntity(Area area, Orientation orientation, DiscreteCoordinates position) -
Method Summary
Methods inherited from class ch.epfl.cs107.play.areagame.actor.AreaEntity
getCurrentMainCellCoordinates, getOrientation, getOwnerArea, isMouseOver, onEntering, onLeaving, orientate, setCurrentPosition, setOwnerAreaMethods inherited from class ch.epfl.cs107.play.engine.actor.Entity
getPosition, getTransform, getVelocityMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ch.epfl.cs107.play.areagame.actor.Interactable
acceptInteraction, getCurrentCells, isCellInteractable, isViewInteractable, takeCellSpace
-
Constructor Details
-
DraggableAreaEntity
-
-
Method Details
-
update
public void update(float deltaTime) Description copied from interface:UpdatableSimulates a single time step. Note: Need to be Override -
getInitialPosition
-
canDrag
public boolean canDrag() -
isDragging
public boolean isDragging()- Specified by:
isDraggingin interfaceDraggable- Returns:
- (boolean): true if this is dragging
-
wantsDropInteraction
public boolean wantsDropInteraction()- Specified by:
wantsDropInteractionin interfaceDraggable- Returns:
- (boolean): true if this wants to be dropped
-
acknowledgeDrop
public void acknowledgeDrop()Description copied from interface:Draggableacknowledge that a drop do happened- Specified by:
acknowledgeDropin interfaceDraggable
-