|
|||||||||
| 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.ProjectileDefault2
This projectile arcs through the air. When it falls to the ground, 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 | |
ProjectileDefault2()
Creates a new instance of ProjectileDefault2 |
|
| Method Summary | |
void |
draw(GameViewer v)
Draw self on v, by drawing 3 intersecting perpendicular lines. |
protected void |
Explode()
Deal damage to the target, if it is in range. |
protected boolean |
mustExplode()
Projectile default2 will explode if it's life runs out while in the air (doesn't happen) |
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 ProjectileDefault2()
| 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 | ||||||||