- All Implemented Interfaces:
public class Kill
- extends AbstractAction
The Kill action flags an object for removal from the
Book, causing it
to cease to exist completely.
Note that the object is not immediately removed for synchronization
reasons. Rather, it will be eliminated at the end of the current frame.
TextObjectGroup will destroy all of its children as
|Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public Action.ActionResult behave(TextObject to)
- Kills a TextObject.
See class comments for details on the exact time of death.
- Specified by:
behave in interface
behave in class
- ActionResult will always be set as complete, although this is
really a formality because apply Kill will cause an object to be removed
from any Behaviour regardless.
java.lang.NullPointerException - if the object has not been attached to