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
currentColFields inherited from class rekit.logic.gameelements.GameElement
deleteMe, deltaTime, team, visible -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionabstract DamageParticlecreate()Create a particle.getFrame()Returns aFramethat represents the collision box theGameElementwill be using.voidreactToCollision(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, setPropertiesMethods 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, setVelMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface rekit.logic.Collidable
addDamage, collidedWithSolid, getLives
-
Constructor Details
-
DamageParticle
public DamageParticle()
-
-
Method Details
-
reactToCollision
Description copied from interface:CollidableNotification 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:
reactToCollisionin interfaceCollidable- Overrides:
reactToCollisionin classGameElement- Parameters:
element- the GameElement that collided with this GameElementdir- the Direction this GameElement has been collided from.
-
create
Description copied from class:ParticleCreate a particle. -
getFrame
Description copied from class:GameElementReturns aFramethat represents the collision box theGameElementwill be using. Is dependent of theGameElementsposition and size.- Overrides:
getFramein classGameElement- Returns:
- the
GameElementscollision box
-