Back to index

wims  3.65+svn20090927
Public Member Functions | Package Attributes | Static Package Attributes
PlinkoBall Class Reference
Collaboration diagram for PlinkoBall:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 PlinkoBall ()

Package Attributes

Color color
PlinkoBall nextBall
PlinkoBall previousBall
double X
double Y
int ROW
int COL
int DIR
int C
int t
int spaz
boolean sound = false

Static Package Attributes

static final double A = -2.0 - Math.sqrt(3)
static final double B = 1.0 + Math.sqrt(3)

Detailed Description

Definition at line 5 of file PlinkoBall.java.


Constructor & Destructor Documentation

PlinkoBall.PlinkoBall ( ) [inline]

Definition at line 22 of file PlinkoBall.java.

                        {
              // pick a random color for the ball
              spaz = (int)( PlinkoBoard.COLORS.length*Math.random() );
              color = PlinkoBoard.COLORS[spaz];

              nextBall = null;
              previousBall = null;

              ROW = -1;
              COL = 0;
              DIR = 0;
              t = 0;
              C = 11-((Integer)Plinko.rate.getValue()).intValue();
    }

Member Data Documentation

final double PlinkoBall.A = -2.0 - Math.sqrt(3) [static, package]

Definition at line 6 of file PlinkoBall.java.

final double PlinkoBall.B = 1.0 + Math.sqrt(3) [static, package]

Definition at line 7 of file PlinkoBall.java.

int PlinkoBall.C [package]

Definition at line 16 of file PlinkoBall.java.

int PlinkoBall.COL [package]

Definition at line 14 of file PlinkoBall.java.

Color PlinkoBall.color [package]

Definition at line 8 of file PlinkoBall.java.

int PlinkoBall.DIR [package]

Definition at line 15 of file PlinkoBall.java.

Definition at line 9 of file PlinkoBall.java.

Definition at line 10 of file PlinkoBall.java.

int PlinkoBall.ROW [package]

Definition at line 13 of file PlinkoBall.java.

Definition at line 20 of file PlinkoBall.java.

int PlinkoBall.spaz [package]

Definition at line 18 of file PlinkoBall.java.

int PlinkoBall.t [package]

Definition at line 17 of file PlinkoBall.java.

double PlinkoBall.X [package]

Definition at line 11 of file PlinkoBall.java.

double PlinkoBall.Y [package]

Definition at line 12 of file PlinkoBall.java.


The documentation for this class was generated from the following file: