|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectActor
QuantumObject
Collectible
MoreGuns
public class MoreGuns
Add one gun to a spaceship.
| Field Summary |
|---|
| Fields inherited from class QuantumObject |
|---|
destroysOnNextTurn, disappear, mantissa, speed |
| Constructor Summary | |
|---|---|
MoreGuns()
|
|
| Method Summary | |
|---|---|
void |
act()
A day in the life of a quantum object: 1. |
boolean |
hit(ManuallyControlledSpaceship ship)
Dummy hit method. |
void |
setNumberOfGuns(ManuallyControlledSpaceship ship,
int new_n_guns)
Set the number of guns for a spaceship. |
| 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 |
| Constructor Detail |
|---|
public MoreGuns()
| Method Detail |
|---|
public void act()
QuantumObject
act in class Collectiblepublic boolean hit(ManuallyControlledSpaceship ship)
Collectible
hit in class Collectibleship - The object we are interacting with
public void setNumberOfGuns(ManuallyControlledSpaceship ship,
int new_n_guns)
ship - guess whatnew_n_guns - number of guns to set
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||