Class PlayerInkedStatusEffect
java.lang.Object
com.csse3200.game.minigames.maze.components.PlayerInkedStatusEffect
- All Implemented Interfaces:
StatusEffect
Class for the Octopus Ink affect on player.
When active, will show a black ink spill that covers the screen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Create the status effect and attach it to the entity.void
start()
Start the effects of this status.void
stop()
Stop the effects of this status immediately.void
update()
Updates the ink, setting its position to track the player and fading out the ink gradually.
-
Constructor Details
-
PlayerInkedStatusEffect
public PlayerInkedStatusEffect()
-
-
Method Details
-
create
Create the status effect and attach it to the entity.- Specified by:
create
in interfaceStatusEffect
- Parameters:
entity
- Entity to attach to
-
start
public void start()Start the effects of this status. Called whenever the status goes from inactive to active.- Specified by:
start
in interfaceStatusEffect
-
stop
public void stop()Stop the effects of this status immediately. This can be called at any time.- Specified by:
stop
in interfaceStatusEffect
-
update
public void update()Updates the ink, setting its position to track the player and fading out the ink gradually.- Specified by:
update
in interfaceStatusEffect
-