|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wyvern.kernel.monsters.Petrifier
Contains methods and utilities for turning objects to stone.
Constructor Summary | |
Petrifier()
|
Method Summary | |
java.awt.Image |
createPetrifiedImage(java.awt.Image src)
Creates a grayscale version of the image using the jdk 1.4 "headless" image-manipulation routines, so it works on a server that isn't running X. |
void |
createPetrifiedImageFile(java.lang.String filename)
Takes an image file and creates a "petrified" version of it, writing it to a special directory in the game tree. |
java.lang.String |
getPetrifiedImagePath(java.lang.String path)
Figures out the petrified version of |
java.awt.Image |
loadImage(java.lang.String path)
Loads a GIF image in "headless" mode (i.e. doesn't use Toolkit.getDefaultToolkit(), which requires an X server) |
static void |
main(java.lang.String[] args)
Test. |
void |
petrify(GameObject attacker,
GameObject obj)
Turns the object to stone. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Petrifier()
Method Detail |
public void createPetrifiedImageFile(java.lang.String filename)
filename
- the relative path to the image, e.g.
"monsters/misc/evil_eye.S" (no extension)public java.lang.String getPetrifiedImagePath(java.lang.String path)
path
- the absolute path to the non-petrified version
of the image
public void petrify(GameObject attacker, GameObject obj)
attacker
- obj
- the monster to petrifypublic java.awt.Image createPetrifiedImage(java.awt.Image src)
public java.awt.Image loadImage(java.lang.String path)
path
- the relative image path ("monsters/misc/evil_eye.S")public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |