|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Contingent
One step above a basic CMObject is an object that is contingent on its environment. It can be created and destroyed, savable, or not.
CMClass| Method Summary | |
|---|---|
boolean |
amDestroyed()
Whether the destroy() method has been previousy called on this object. |
void |
destroy()
Utterly and permanently destroy this object, not only removing it from the map, but causing this object to be collected as garbage by Java. |
boolean |
isSavable()
Whether, if this object is in a room, whether it is appropriate to save this object to the database as a permanent feature of its container. |
void |
setSavable(boolean truefalse)
Sets whether this behavior can be saved as a permanent aspect of its host. |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.CMObject |
|---|
copyOf, ID, initializeClass, newInstance |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Method Detail |
|---|
void destroy()
boolean isSavable()
boolean amDestroyed()
void setSavable(boolean truefalse)
truefalse - whether this behavior can be saved as part of its host.isSavable()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||