|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--netwar.game.Projectile
|
+--netwar.game.projectile.ProjectileDefault
This projectile flies straight. When it passes the target, it explodes. If it lasts out its duration, it explodes.
| Fields inherited from class netwar.game.Projectile |
center, damage, enemy, life, maker, Projectiles, radiusSquared, velocity |
| Constructor Summary | |
ProjectileDefault()
Creates a new instance of ProjectileDefault |
|
| Method Summary | |
void |
draw(GameViewer v)
Draw self onto v. |
protected void |
Explode()
Deal damage to the target, if it is in range. |
protected boolean |
mustExplode()
Projectile default will simply fizzle if its life runs out (highly unlikely) |
protected void |
Update()
Move forward. |
| Methods inherited from class netwar.game.Projectile |
basicUpdate, DrawAll, Fizzle, newProjectile, UpdateAll |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ProjectileDefault()
| Method Detail |
protected void Explode()
Explode in class Projectileprotected void Update()
Update in class Projectilepublic void draw(GameViewer v)
draw in class Projectilenetwar.game.Projectilev - The GameViewer seeking to display this Projectile.protected boolean mustExplode()
mustExplode in class Projectile
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||