net.sourceforge.worldsaver.names
Class Charlist

java.lang.Object
  |
  +--net.sourceforge.worldsaver.names.Charlist
All Implemented Interfaces:
java.io.Serializable

public class Charlist
extends java.lang.Object
implements java.io.Serializable

This is a class encapturing the probabilities of the Names-configfile.

Version:
7 Dec 2000
Author:
Andreas Schmitz
See Also:
Serialized Form

Constructor Summary
Charlist(char ch)
          The constructor. ch is the char that should be encaptured by the new instance.
 
Method Summary
 char follower(int rand)
          Returns a follower-char for a given integer value.
 char getIdent()
          Returns the char the instance is representing.
 void increase(char a)
          Use this to increase the probability of the char `a' following the char represented by this class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Charlist

public Charlist(char ch)
The constructor. ch is the char that should be encaptured by the new instance.
Parameters:
ch - The char for this class...
Method Detail

getIdent

public char getIdent()
Returns the char the instance is representing.

increase

public void increase(char a)
Use this to increase the probability of the char `a' following the char represented by this class.
Parameters:
a - the char a

follower

public char follower(int rand)
Returns a follower-char for a given integer value. The integer value should of course be a random value.
Parameters:
rand - The integer value