Package games.stendhal.client.gui
Class BlackenScreenEffect
java.lang.Object
games.stendhal.client.LayerRenderer
games.stendhal.client.gui.EffectLayer
games.stendhal.client.gui.BlackenScreenEffect
An effect that turns the screen black, fading in specified duration.
-
Field Summary
Fields inherited from class games.stendhal.client.LayerRenderer
height, width
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
drawScreen(Graphics g, int x, int y, int w, int h)
boolean
Check if the effect is old enough to have expired so that it should be removed.Methods inherited from class games.stendhal.client.gui.EffectLayer
draw, setTileset
Methods inherited from class games.stendhal.client.LayerRenderer
getHeight, getWidth
-
Constructor Details
-
BlackenScreenEffect
public BlackenScreenEffect(int duration)
-
-
Method Details
-
isExpired
public boolean isExpired()Description copied from class:EffectLayer
Check if the effect is old enough to have expired so that it should be removed.- Overrides:
isExpired
in classEffectLayer
- Returns:
true
if the effect has expired, otherwisefalse
-
drawScreen
-