All Packages Class Hierarchy This Package Previous Next Index
Class rebelsky.fun.balloons.Balloon
java.lang.Object
|
+----rebelsky.fun.balloons.Balloon
- public class Balloon
- extends Object
A simple implementation of racing balloons.
Copyright (c) 1998 Samuel A. Rebelsky. All rights reserved.
- Version:
- 1.0
- Author:
- Samuel A. Rebelsky
Variable Index
- o
MAX_INFLATION
- The maximum safe inflation of a balloon.
- o
MIN_INFLATION
- The minimum inflation of a balloon.
Constructor Index
- o
Balloon(Color)
- Build a new baloon of a particular color.
Method Index
- o
blowLeft(int)
- Blow the baloon to the left a certain amoutn.
- o
blowRight(int)
- Blow the balloon to the right a certain amount.
- o
deflate()
- Deflate the balloon.
- o
draw(Graphics, int)
- Draw this balloon at its current location.
- o
drop()
- Drop a weight.
- o
getHeight()
- Get the height of the balloon in units above ground level.
- o
getInflation()
- Get the current inflation of the balloon.
- o
getPosition()
- Get the position of the balloon in units to the left of start.
- o
getSandbags()
- Get the number of sandbags left in the balloon.
- o
getVelocity()
- Get the vertical velocity (positive is up, negative is down).
- o
getWeight()
- Get the weight of the balloon.
- o
inflate()
- Inflate the balloon.
- o
pop()
- Pop the balloon.
- o
popped()
- Has the balloon popped?