bluegammon.gui
Class BGMath

java.lang.Object
  extended bybluegammon.gui.BGMath

public class BGMath
extends java.lang.Object

BGMath.java

Author:
Peter Andersson

Method Summary
static int blendColors(int col1, int col2, int i)
           
static int loadSeed(java.io.DataInputStream dis)
           
static int random()
           
static float randomFloat()
           
static int saveSeed(java.io.DataOutputStream dos)
           
static void setRandomSeed(long seed)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setRandomSeed

public static void setRandomSeed(long seed)

random

public static int random()

randomFloat

public static float randomFloat()

blendColors

public static int blendColors(int col1,
                              int col2,
                              int i)

loadSeed

public static int loadSeed(java.io.DataInputStream dis)
                    throws java.io.IOException
Parameters:
dis -
Throws:
java.io.IOException

saveSeed

public static int saveSeed(java.io.DataOutputStream dos)
                    throws java.io.IOException
Throws:
java.io.IOException