|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Sprite | +--SpriteBullet
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 | |
SpriteBullet(RealPixelConverter rtopc)
|
Method Summary | |
boolean |
advance(double dt)
We'll deactivate a bullet if it wraps or bounces. |
(package private) void |
initialize(Sprite shooter,
RealPixelConverter rtopc)
|
void |
reset(RealPixelConverter rtopc)
The abstract reset method is called by the child sprite constructors, and may also be called when resetting a sprite's state. |
void |
update(RealPixelConverter rtopc)
We'll deactivate a bullet if its lifetime runs out. |
Methods inherited from class Sprite |
draw,
explode,
fixRadius,
isColliding,
isTouching,
loopsound,
mass,
radius,
randomizeFillcolor,
render,
setFakeRadius,
stop,
wrapandbounce |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public SpriteBullet(RealPixelConverter rtopc)
Method Detail |
public void reset(RealPixelConverter rtopc)
void initialize(Sprite shooter, RealPixelConverter rtopc)
public boolean advance(double dt)
public void update(RealPixelConverter rtopc)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |