Class CompanionInteractionControllerComponent
java.lang.Object
com.csse3200.game.components.Component
com.csse3200.game.components.Companion.CompanionInteractionControllerComponent
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinteract(boolean effectAll) Initiates an interaction with other entities in the game world.Methods inherited from class com.csse3200.game.components.Component
create, dispose, earlyUpdate, getEntity, setEnabled, setEntity, toString, triggerEarlyUpdate, triggerUpdate, update
-
Constructor Details
-
CompanionInteractionControllerComponent
public CompanionInteractionControllerComponent()
-
-
Method Details
-
interact
public void interact(boolean effectAll) Initiates an interaction with other entities in the game world.- Parameters:
effectAll- If true, the interaction will affect all nearby entities; otherwise, only the closest one is affected.
-