|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgizmoball.board.Gizmo
gizmoball.board.Bumper
public class Bumper
This class represents a bumper gizmo, such as a square bumper, that extends the abstract Gizmo class. The bumper's action when it gets triggered is to change its color to the opposite color.
| Field Summary |
|---|
| Fields inherited from class gizmoball.board.Gizmo |
|---|
color, connections, name, reverseConnections |
| Constructor Summary | |
|---|---|
Bumper(java.lang.String name,
java.awt.Color color,
Shape shape)
Constructs a Bumper gizmo. |
|
| Method Summary | |
|---|---|
void |
action()
the action that the bumper takes when it gets triggered. |
| Methods inherited from class gizmoball.board.Gizmo |
|---|
getColor, getName, getShape, getTriggeredGizmos, getTriggeringGizmos, setColor, triggerConnections |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Bumper(java.lang.String name,
java.awt.Color color,
Shape shape)
name - the name of the bumpercolor - the color of the bumpershape - the shape of the bumper| Method Detail |
|---|
public void action()
action in class Gizmo
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||