|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Object
|
+--GameObject
|
+--RealObject
|
+--Ensnarler
|
+--Vines
Vines are Ensnarlers that spread. Perhaps this class should also implement Food, along the lines of FoodHunk.
| Inner classes inherited from class RealObject |
RealObject.ContentsMessager, RealObject.DescriptionLineProcessor |
| Inner classes inherited from class GameObject |
GameObject.LeaveInfo |
| Field Summary | |
protected double |
growth
How likely we are to spread on a given turn. |
| Fields inherited from class Ensnarler |
ensnarlMessage, ensnarlRate |
| Fields inherited from class RealObject |
contents, longDescription, parentObject, shortDescription, spreadto |
| Fields inherited from class GameObject |
masterGame, name |
| Constructor Summary | |
(package private) |
Vines()
|
| Method Summary | |
void |
doAction()
Take the default action, then make us a bit more likely to spread or ensnarl. |
double |
getSpreadability()
Tell how likely we are to spread this turn. |
protected void |
preClone()
Cut back on excitement in cloned pieces. |
| Methods inherited from class Ensnarler |
initialize |
| Methods inherited from class RealObject |
checkLeave, clone, getLongDescription, getParent, getShortDescription, goodbye, hello, isPredicate, register, roomOf, runSpy, setParent, spread, tellAll, unregister, wanderVia |
| Methods inherited from class GameObject |
announce, compareTo, getMasterGame, kill, listen, newInstance, setMasterGame, toString |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
protected double growth
| Constructor Detail |
Vines()
| Method Detail |
public void doAction()
doAction in class RealObjectpublic double getSpreadability()
getSpreadability in class RealObjectprotected void preClone()
preClone in class RealObject
|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||