Class ParticleSystem
java.lang.Object
ActiverseEngine.Actor
ActiverseUtils.ParticleSystem
ParticleSystem - System for creating and managing visual particle effects
- Version:
- 1.4.1
- Author:
- Knivier
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidact()Performs the actor's action.voidEmits particles from a positionvoidemitDirectional(int x, int y, int count, Color color, long lifetime, double angle, double spread) Emits particles in a specific directionvoidDraws the actor on the given graphics context.Methods inherited from class Actor
addItem, delayNext, disableInventory, enableInventory, enablePrecisePosition, getAngleTo, getBoundingBox, getDistanceTo, getHeight, getImage, getInventory, getInventorySize, getMaxInventorySize, getOneIntersectingObject, getPreciseX, getPreciseY, getVelocityX, getVelocityY, getWidth, getWorld, getX, getY, hasInventory, intersects, isStatic, keyIsDown, knockback, move, removeItem, setHeight, setImage, setInventorySize, setLocation, setPreciseLocation, setStatic, setVelocityX, setVelocityY, setWidth, setWorld, setX, setY, turn, useAStar
-
Constructor Details
-
ParticleSystem
public ParticleSystem()
-
-
Method Details
-
emit
Emits particles from a position- Parameters:
x- X positiony- Y positioncount- Number of particlescolor- Particle colorlifetime- Lifetime in milliseconds
-
emitDirectional
public void emitDirectional(int x, int y, int count, Color color, long lifetime, double angle, double spread) Emits particles in a specific direction- Parameters:
x- X positiony- Y positioncount- Number of particlescolor- Particle colorlifetime- Lifetime in millisecondsangle- Direction angle in radiansspread- Spread angle in radians
-
act
-
paint
Description copied from class:ActorDraws the actor on the given graphics context. If no image is set, this method does nothing. Subclasses should override this method to draw shapes or custom graphics when not using images.
-