|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Sprite | +--SpriteWall
Use a SpriteWall to visually show when the bounce flag is on, we'll trigger it using the ship.bounce inside AsteroidsGame draw. We make it a Sprite so we can use the render function to keep resizing it to the current window size.
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 | |
SpriteWall(RealPixelConverter rtopc)
|
Method Summary | |
boolean |
advance(double dt)
Do-nothing advance method means don't move. |
void |
draw(java.awt.Graphics g,
boolean detail)
Draw method draws it as a disk if game.diskflag. |
void |
reset(RealPixelConverter rtopc)
Do-nothing reset method means there's nothing to reset. |
void |
update(RealPixelConverter rtopc)
Do-nothing update method means don't look at other sprites. |
Methods inherited from class Sprite |
explode,
fixRadius,
isColliding,
isTouching,
loopsound,
mass,
radius,
randomizeFillcolor,
render,
setFakeRadius,
stop,
wrapandbounce |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public SpriteWall(RealPixelConverter rtopc)
Method Detail |
public boolean advance(double dt)
public void update(RealPixelConverter rtopc)
public void reset(RealPixelConverter rtopc)
public void draw(java.awt.Graphics g, boolean detail)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |