Class BlackenScreenEffect


public class BlackenScreenEffect extends EffectLayer
An effect that turns the screen black, fading in specified duration.
  • 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 class EffectLayer
      Returns:
      true if the effect has expired, otherwise false
    • drawScreen

      public void drawScreen(Graphics g, int x, int y, int w, int h)