|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.planet_ink.coffee_mud.Common.DefaultTattoo
public class DefaultTattoo
Constructor Summary | |
---|---|
DefaultTattoo()
|
Method Summary | |
---|---|
int |
compareTo(CMObject o)
|
Tattoo |
copyOf()
Similar to Cloneable.clone(), but does its best to make sure that any internal objects to this class are also copyOfed. |
java.lang.String |
getTattooName()
Returns the tattoo Name |
int |
getTickDown()
Returns the current tick-down |
java.lang.String |
ID()
The CoffeeMud Java Class ID shared by all instances of this object. |
void |
initializeClass()
Called ONCE after all objects are loaded, but before the map is read in during initialization. |
java.lang.String |
name()
The displayable name of this object. |
CMObject |
newInstance()
Returns a new instance of this class. |
Tattoo |
parse(java.lang.String tattooCode)
Parse a new tattoo object from the coded data, of the form: TATOONAME or NUMBER TATTOONAME |
Tattoo |
set(java.lang.String name)
Set the tattoo name |
Tattoo |
set(java.lang.String name,
int down)
Set the tatoo name and tick-down |
int |
tickDown()
Reduces the tick down by one and returns the new value |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DefaultTattoo()
Method Detail |
---|
public java.lang.String ID()
CMObject
ID
in interface CMObject
public java.lang.String name()
CMObject
name
in interface CMObject
Environmental.Name()
public Tattoo set(java.lang.String name)
Tattoo
set
in interface Tattoo
name
- the tattoo name
public Tattoo set(java.lang.String name, int down)
Tattoo
set
in interface Tattoo
name
- the tatoo namedown
- the tick down life span
public final int getTickDown()
Tattoo
getTickDown
in interface Tattoo
public final java.lang.String getTattooName()
Tattoo
getTattooName
in interface Tattoo
public java.lang.String toString()
toString
in class java.lang.Object
public Tattoo copyOf()
CMObject
copyOf
in interface CMObject
public int compareTo(CMObject o)
compareTo
in interface java.lang.Comparable<CMObject>
public CMObject newInstance()
CMObject
newInstance
in interface CMObject
public void initializeClass()
CMObject
initializeClass
in interface CMObject
public int tickDown()
Tattoo
tickDown
in interface Tattoo
public Tattoo parse(java.lang.String tattooCode)
Tattoo
parse
in interface Tattoo
tattooCode
- coded data
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |