Interface Interactor
public interface Interactor
Represents Interactor object (i.e. it can interact with some Interactable)
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionGet this Interactor's current occupying cells coordinatesGet this Interactor's current field of view cells coordinatesvoidinteractWith(Interactable other, boolean isCellInteraction) Do this Interactor interact with the given Interactable The interaction is implemented on the interactor side !booleanboolean
-
Method Details
-
getCurrentCells
List<DiscreteCoordinates> getCurrentCells()Get this Interactor's current occupying cells coordinates- Returns:
- (List of DiscreteCoordinates). May be empty but not null
-
getFieldOfViewCells
List<DiscreteCoordinates> getFieldOfViewCells()Get this Interactor's current field of view cells coordinates- Returns:
- (List of DiscreteCoordinates). May be empty but not null
-
wantsCellInteraction
boolean wantsCellInteraction()- Returns:
- (boolean): true if this require cell interaction
-
wantsViewInteraction
boolean wantsViewInteraction()- Returns:
- (boolean): true if this require view interaction
-
interactWith
Do this Interactor interact with the given Interactable The interaction is implemented on the interactor side !- Parameters:
other- (Interactable). Not nullisCellInteraction- True if this is a cell interaction
-