Class PowerUp
java.lang.Object
uno.anahata.asi.swing.games.PowerUp
Represents a power-up falling item.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidupdate()Advances the power-up falling position.
-
Field Details
-
x
double xCenter X-coordinate of the item. -
y
double yCenter Y-coordinate of the item. -
speedY
double speedYVertical falling speed. -
type
int typePower-up type (0: Multiball, 1: Wide Paddle, 2: Fireball).
-
-
Constructor Details
-
PowerUp
PowerUp(double x, double y, int type) Constructs a PowerUp item.- Parameters:
x- Starting X.y- Starting Y.type- Power Type index.
-
-
Method Details
-
update
void update()Advances the power-up falling position.
-

