|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Duct
Copyright (c) Amish Parkh November 2001 Duct.java: The Duct class includes the private variables for representing the balls within the rectangular shaped duct.
Field Summary | |
Ball[] |
ball
|
Constructor Summary | |
Duct(Rectangle rect,
int nballs,
int staticBalls)
Constructor with three parameters |
Method Summary | |
void |
addBall(Ball b)
Add one ball to the balls in the duct |
Ball |
getBall(int i)
Get specific ball |
int |
getBallCount()
Get ball count in duct |
Rectangle |
getRect()
Get Rectangle |
int |
getStaticBallCount()
Set Stationary duct ball count |
void |
increaseBalls()
Increment the number of balls in the duct by one |
void |
setBall(Ball b,
int i)
Set specific ball |
void |
setStaticBallCount(int staticBalls)
Set Stationary duct ball count |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public Ball[] ball
Constructor Detail |
public Duct(Rectangle rect, int nballs, int staticBalls)
Method Detail |
public void increaseBalls()
public void addBall(Ball b)
public Rectangle getRect()
public int getBallCount()
public void setStaticBallCount(int staticBalls)
public int getStaticBallCount()
public Ball getBall(int i)
public void setBall(Ball b, int i)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |