ScreenLine.java

ScreenLine.java · 886 B

From the archive palrichclient.zip

Download the archive   « Back to the archive contents

/*
    Java Mud Client -- ScreenLine module
    by Michael Barton <red@smileyface.com>
    Originally written for Divine Blood, telnet://shell.tetradine.com:4000

    Permission is granted to modify and distribute freely.
    Credit/links are appreciated, but not necessary.
    Bugs and other issues can be noted to red@smileyface.com.
*/

import java.awt.*;

public class ScreenLine
{
  public Color endColor = Color.white;
  public Color endBGColor = Color.black;
  public String text = "";
  public boolean finished = false;

  public ScreenLine(String txt)
  {
    this.text = txt;
  }

  public void concat(String str)
  {
    text = text.concat(str);
  }

  public String getText()
  {
    return text;
  }

  public boolean isFinished()
  {
    return finished;
  }

  public void setFinished(boolean b)
  {
    finished = b;
  }
}

Site Stats

Snippets: 1791
Codebases: 571