|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wyvern.lib.properties.materials.Material
Superclass of all physical materials.
Field Summary | |
protected java.lang.String |
desc_
|
protected int |
phase_
|
Constructor Summary | |
Material()
Constructs a new Material |
|
Material(java.lang.String name)
Constructs a new Material with the specified name. |
Method Summary | |
static Material |
createMaterial(java.lang.Class c,
java.lang.String name)
Creates a material of the specified class with the specified description. |
boolean |
equals(java.lang.Object ob)
Returns true if the materials are considered equal. |
java.lang.String |
getDescription()
Gets the sub-description of this material. |
int |
getPhase()
Gets the phase (solid, liquid, gas). |
void |
setDescription(java.lang.String desc)
Sets the short description for the object. |
void |
setPhase(int phase)
Sets the phase (solid, liquid, gas). |
java.lang.String |
toString()
Returns string name. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected int phase_
protected java.lang.String desc_
Constructor Detail |
public Material()
public Material(java.lang.String name)
name
- the material name, e.g. "jello".Method Detail |
public static Material createMaterial(java.lang.Class c, java.lang.String name)
c
- the Material classname
- the description
java.lang.IllegalArgumentException
- if class isn't derived
from Material.classpublic int getPhase()
public void setPhase(int phase)
public java.lang.String getDescription()
public void setDescription(java.lang.String desc)
desc
- the new short description.public boolean equals(java.lang.Object ob)
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |