Package de.tum.cit.ase.maze.objects.still.collectable
package de.tum.cit.ase.maze.objects.still.collectable
This module contains all the functionality, of collectables.
Collectables are GameElement
's, that can be collected by a Player
.
These can also be differentiated between normal collectables and time based ones. Time based ones, give an effect to players for a specified amount of time.
-
ClassDescriptionA collectable is a
GameElement
that can be collected by a player and then applies an effect to thePlayer
.Makes thePlayer
invulnerable for theTimedCollectable.duration
this has an effectCollectable
that restores the health of the player byHealthCollectable.HEALTH_TO_RESTORE
Boosts the speed of the player bySpeedBoost.speedBoost