Package zombie.iso.weather.fx
Class WeatherParticle
java.lang.Object
zombie.iso.weather.fx.WeatherParticle
- Direct Known Subclasses:
CloudParticle,FogParticle,RainParticle,SnowParticle
public abstract class WeatherParticle
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description protected floatalphaprotected SteppedUpdateFloatalphaFadeModprotected org.lwjgl.util.Rectangleboundsprotected Colorcolorprotected floatlastZoomModprotected floatoHeightprotected floatoWidthprotected ParticleRectangleparentprotected Vector2positionprotected booleanrecalcSizeOnZoomprotected floatrenderAlphaprotected floatspeedprotected Texturetextureprotected Vector2velocityprotected floatzoomMultiHprotected floatzoomMultiW -
Constructor Summary
Constructors Constructor Description WeatherParticle(Texture texture)WeatherParticle(Texture texture, int int1, int int2) -
Method Summary
Modifier and Type Method Description voidrender(float float1, float float2)protected voidsetParent(ParticleRectangle particleRectangle)voidupdate(float float1)voidupdate(float float1, boolean boolean1)protected booleanupdateZoomSize()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
parent
-
bounds
protected org.lwjgl.util.Rectangle bounds -
texture
-
color
-
position
-
velocity
-
alpha
protected float alpha -
speed
protected float speed -
alphaFadeMod
-
renderAlpha
protected float renderAlpha -
oWidth
protected float oWidth -
oHeight
protected float oHeight -
zoomMultiW
protected float zoomMultiW -
zoomMultiH
protected float zoomMultiH -
recalcSizeOnZoom
protected boolean recalcSizeOnZoom -
lastZoomMod
protected float lastZoomMod
-
-
Constructor Details
-
WeatherParticle
-
WeatherParticle
-
-
Method Details
-
setParent
-
update
public void update(float float1) -
update
public void update(float float1, boolean boolean1) -
updateZoomSize
protected boolean updateZoomSize() -
render
public void render(float float1, float float2)
-