|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Sprite | +--SpriteUfo
Field Summary | |
(package private) double |
ageDoneShootwait
Next time you can shoot a missile. |
(package private) static int |
newUfoScore
The next score the player has to pass to make a new Ufo come to life. |
(package private) static int |
UFO_PASSES
Number of times a Ufo gets to cross the screen. |
(package private) static int |
UFO_POINTS
Points for shooting a Ufo. |
(package private) int |
ufoPassesLeft
The ufo gets a fixed number of passes across the screen. |
Fields inherited from class Sprite |
acceleration,
active,
age,
ageDone,
angle,
angularAcceleration,
bounce,
edgecolor,
fillcolor,
fillflag,
game,
mass,
maxspeed,
ownerApp,
position,
positiontransform,
radius,
shape,
shapetransform,
soundplaying,
velocity |
Constructor Summary | |
SpriteUfo(RealPixelConverter rtopc)
|
Method Summary | |
void |
fire(RealPixelConverter rtopc)
|
void |
loopsound(boolean onoff)
Toggles the saucerSound. |
void |
reset(RealPixelConverter rtopc)
Randomly set flying saucer at an edge of the screen. |
void |
stop()
Turn off the UFO, set ufoPassesLeft to 0. |
void |
update(RealPixelConverter rtopc)
The update method can be overloaded by the child sprite. |
Methods inherited from class Sprite |
advance,
draw,
explode,
fixRadius,
isColliding,
isTouching,
mass,
radius,
randomizeFillcolor,
render,
setFakeRadius,
wrapandbounce |
Methods inherited from class java.lang.Object |
|
Field Detail |
static final int UFO_PASSES
static final int UFO_POINTS
int ufoPassesLeft
static int newUfoScore
double ageDoneShootwait
Constructor Detail |
public SpriteUfo(RealPixelConverter rtopc)
Method Detail |
public void reset(RealPixelConverter rtopc)
public void loopsound(boolean onoff)
public void update(RealPixelConverter rtopc)
public void fire(RealPixelConverter rtopc)
public void stop()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |