|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectActor
QuantumObject
Missile
public class Missile
Base class for projectiles and other kinds of things one can shoot on his enemies.
| Field Summary | |
|---|---|
protected int |
damage
|
protected int |
side
|
| Fields inherited from class QuantumObject |
|---|
destroysOnNextTurn, disappear, mantissa, speed |
| Constructor Summary | |
|---|---|
Missile()
|
|
| Method Summary | |
|---|---|
void |
act()
A day in the life of a quantum object: 1. |
int |
getDamage()
|
int |
getSide()
|
boolean |
hit(Spaceship s)
Dummy hit function that allows for dummy missiles. |
void |
setDamage(int the_damage)
|
void |
setSide(int gun_side)
|
| Methods inherited from class QuantumObject |
|---|
getDestroysOnNextTurn, getSpeed, move, setDestroysOnNextTurn, setSpeed |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int side
protected int damage
| Constructor Detail |
|---|
public Missile()
| Method Detail |
|---|
public void act()
QuantumObject
act in class QuantumObjectpublic void setSide(int gun_side)
public int getSide()
public void setDamage(int the_damage)
public int getDamage()
public boolean hit(Spaceship s)
hit in class QuantumObjects - The object we are interacting with
Spaceship.hit(Missile)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||