|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wyvern.kernel.properties.PList wyvern.kernel.maps.MapObject wyvern.lib.classes.StaticObject wyvern.lib.classes.Statue
A petrified monster. You can create one from an existing (living) monster by calling wyvern.kernel.monsters.Petrifier.petrify() on monster.
Field Summary |
Fields inherited from class wyvern.kernel.maps.MapObject |
IN_MAP_EDITOR, listenerList_ |
Fields inherited from class wyvern.kernel.properties.PList |
readOnly_ |
Fields inherited from interface wyvern.lib.PropertyList |
PROPERTY_PACKAGE |
Constructor Summary | |
Statue()
|
|
Statue(Monster mon)
Constructs a new Statue from the specified monster. |
Method Summary | |
void |
createAndSetPetrifiedImage(Monster mon)
Invokes a Petrifier to create the statue image on disk, then sets our appearance to point to it. |
java.lang.String |
getMonsterArchetype()
Returns the path to the archetype of the monster that was turned to stone. |
void |
initialize()
Initializes the object's default properties. |
void |
initWeightFromMonster(Monster mon)
Sets the statue weight from the monster weight. |
void |
rememberMonsterArch(Monster mon)
Remembers the monster type that was used, so we can reconstruct it if necessary. |
protected void |
setBlockingIfLarge()
If the statue size is greater than 1x1, make it blocking. |
void |
setFrameAndDirection(Monster mon)
Makes sure the statue's animation frame and direction are correct for where the monster was when it froze. |
void |
setMonster(Monster mon)
Initializes the statue from the monster's appearance. |
void |
setShortDescFromMonsterName(Monster mon)
Sets a short description like "statue of a goblin". |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Statue()
public Statue(Monster mon)
Method Detail |
public void initialize()
GameObject
initialize
in interface GameObject
initialize
in class StaticObject
public void setMonster(Monster mon)
public void createAndSetPetrifiedImage(Monster mon)
public void setShortDescFromMonsterName(Monster mon)
mon
- the monster that was petrifiedpublic void setFrameAndDirection(Monster mon)
public void initWeightFromMonster(Monster mon)
public void rememberMonsterArch(Monster mon)
mon
- the monster used to create the statueprotected void setBlockingIfLarge()
public java.lang.String getMonsterArchetype()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |