CMCommon
, CMObject
, Tattooable
, java.lang.Cloneable
, java.lang.Comparable<CMObject>
public class DefaultTattooable extends java.lang.Object implements Tattooable, CMCommon
Modifier and Type | Field | Description |
---|---|---|
protected CMUniqNameSortSVec<Tattoo> |
tattoos |
idConverter
Constructor | Description |
---|---|
DefaultTattooable() |
Modifier and Type | Method | Description |
---|---|---|
void |
addTattoo(Tattoo of) |
Add a new tattoo to this object
|
void |
addTattoo(java.lang.String of) |
Manipulation of the tatoo list
|
void |
addTattoo(java.lang.String of,
int tickDown) |
Add a new tattoo to this object
|
int |
compareTo(CMObject o) |
|
Tattooable |
copyOf() |
Similar to Cloneable.clone(), but does its best to make sure that
any internal objects to this class are also copyOfed.
|
void |
delTattoo(Tattoo of) |
Remove a specific tattoo from this object
|
boolean |
delTattoo(java.lang.String of) |
Remove a specific tattoo from this object
|
Tattoo |
findTattoo(java.lang.String of) |
Returns the tattoo of the given marker name
|
Tattoo |
findTattooStartsWith(java.lang.String of) |
Returns the tattoo that starts with the given marker name
|
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.
|
java.util.Enumeration<Tattoo> |
tattoos() |
Returns an enumeration of all the tattoos on this object.
|
protected CMUniqNameSortSVec<Tattoo> tattoos
public java.lang.String ID()
CMObject
public java.lang.String name()
CMObject
name
in interface CMObject
Environmental.Name()
public Tattooable copyOf()
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 void addTattoo(java.lang.String of)
addTattoo
in interface Tattooable
of
- the permanent tattoo name to addTattooable
,
Tattooable.addTattoo(String, int)
,
Tattooable.addTattoo(Tattoo)
public void addTattoo(java.lang.String of, int tickDown)
Tattooable
addTattoo
in interface Tattooable
of
- the permanent tattoo name to addtickDown
- the ticks of life for this tattooTattooable
,
Tattooable.addTattoo(String)
,
Tattooable.addTattoo(Tattoo)
public boolean delTattoo(java.lang.String of)
Tattooable
delTattoo
in interface Tattooable
of
- the tattoo name of the tattoo to removeTattooable
,
Tattooable.delTattoo(Tattoo)
public void addTattoo(Tattoo of)
Tattooable
addTattoo
in interface Tattooable
of
- the tattoo object to addTattooable
,
Tattooable.addTattoo(String, int)
,
Tattooable.addTattoo(String)
public void delTattoo(Tattoo of)
Tattooable
delTattoo
in interface Tattooable
of
- the tattoo object to removeTattooable
,
Tattooable.delTattoo(String)
public java.util.Enumeration<Tattoo> tattoos()
Tattooable
tattoos
in interface Tattooable
Tattooable
public Tattoo findTattoo(java.lang.String of)
Tattooable
findTattoo
in interface Tattooable
of
- the marker name to return a tattoo forTattooable
,
Tattooable.findTattooStartsWith(String)
public Tattoo findTattooStartsWith(java.lang.String of)
Tattooable
findTattooStartsWith
in interface Tattooable
of
- the marker name to return a tattoo starter forTattooable
,
Tattooable.findTattoo(String)