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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddrawScreen(Graphics g, int x, int y, int w, int h) booleanCheck 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, setTilesetMethods 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:EffectLayerCheck if the effect is old enough to have expired so that it should be removed.- Overrides:
isExpiredin classEffectLayer- Returns:
trueif the effect has expired, otherwisefalse
-
drawScreen
-