Class DamageParticle
java.lang.Object
rekit.logic.gameelements.GameElement
rekit.logic.gameelements.particles.Particle
rekit.logic.gameelements.particles.DamageParticle
- All Implemented Interfaces:
Collidable
- Author:
- Angelo Aracri
-
Nested Class Summary
Nested classes/interfaces inherited from interface rekit.logic.Collidable
Collidable.Optional
-
Field Summary
Fields inherited from class rekit.logic.gameelements.particles.Particle
currentCol
Fields inherited from class rekit.logic.gameelements.GameElement
deleteMe, deltaTime, team, visible
-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionabstract DamageParticle
create()
Create a particle.getFrame()
Returns aFrame
that represents the collision box theGameElement
will be using.void
reactToCollision
(GameElement element, Direction dir) Notification that this GameElement has been collided with from another GameElement element from the given direction dir.Methods inherited from class rekit.logic.gameelements.particles.Particle
capColor, internalRender, logicLoop, setProperties
Methods inherited from class rekit.logic.gameelements.GameElement
checkCollision, create, destroy, getDeleteMe, getPos, getScene, getSize, getTeam, getVel, getZ, getZHint, init, isAddableToGroup, isVisible, killBoost, render, setPos, setScene, setSize, setVel
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface rekit.logic.Collidable
addDamage, collidedWithSolid, getLives
-
Constructor Details
-
DamageParticle
public DamageParticle()
-
-
Method Details
-
reactToCollision
Description copied from interface:Collidable
Notification that this GameElement has been collided with from another GameElement element from the given direction dir.
Can be overwritten for defining an optional reaction that the GameElement performs on the other GameElement and/or itself upon collision.
- Specified by:
reactToCollision
in interfaceCollidable
- Overrides:
reactToCollision
in classGameElement
- Parameters:
element
- the GameElement that collided with this GameElementdir
- the Direction this GameElement has been collided from.
-
create
Description copied from class:Particle
Create a particle. -
getFrame
Description copied from class:GameElement
Returns aFrame
that represents the collision box theGameElement
will be using. Is dependent of theGameElements
position and size.- Overrides:
getFrame
in classGameElement
- Returns:
- the
GameElements
collision box
-