Class PhoneBooth
- java.lang.Object
-
- de.unistuttgart.informatik.fius.icge.simulation.entity.BasicEntity
-
- de.unistuttgart.informatik.fius.jvk.provided.entity.PhoneBooth
-
- All Implemented Interfaces:
Entity
,SolidEntity
public class PhoneBooth extends BasicEntity implements SolidEntity
A block to leave the Matrix- Author:
- paulesn
-
-
Field Summary
-
Fields inherited from class de.unistuttgart.informatik.fius.icge.simulation.entity.BasicEntity
endOfLastEnqueuedOperation
-
-
Constructor Summary
Constructors Constructor Description PhoneBooth()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Supplier<Boolean>
getRequirementsChecker()
protected String
getTextureHandle()
protected int
getZPosition()
boolean
isCurrentlySolid()
void
setRequirementsAsFulfilled()
Set the status of the requirements for this phoneBooth to fulfilled.void
setRequirementsChecker(Supplier<Boolean> requirementsChecker)
Set a checker function that returns true if and only if all requirements to access this phonebooth are met.void
setRequirementsNotFulfilled()
Set the status of the requirements for this phoneBooth to unfulfilled.-
Methods inherited from class de.unistuttgart.informatik.fius.icge.simulation.entity.BasicEntity
enqueueToPerformNewOperation, getDrawInformation, getPlayfield, getPosition, getSimulation, initOnPlayfield, isOnPlayfield, sleep, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface de.unistuttgart.informatik.fius.icge.simulation.entity.Entity
getDrawInformation, getPosition, initOnPlayfield
-
-
-
-
Method Detail
-
setRequirementsAsFulfilled
public void setRequirementsAsFulfilled()
Set the status of the requirements for this phoneBooth to fulfilled.
-
setRequirementsNotFulfilled
public void setRequirementsNotFulfilled()
Set the status of the requirements for this phoneBooth to unfulfilled.
-
setRequirementsChecker
public void setRequirementsChecker(Supplier<Boolean> requirementsChecker)
Set a checker function that returns true if and only if all requirements to access this phonebooth are met.- Parameters:
requirementsChecker
- the requirementsChecker to set
-
getRequirementsChecker
public Supplier<Boolean> getRequirementsChecker()
- Returns:
- the requirementsChecker
-
isCurrentlySolid
public boolean isCurrentlySolid()
- Specified by:
isCurrentlySolid
in interfaceSolidEntity
-
getTextureHandle
protected String getTextureHandle()
- Specified by:
getTextureHandle
in classBasicEntity
-
getZPosition
protected int getZPosition()
- Specified by:
getZPosition
in classBasicEntity
-
-