|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgroup1.model.DeathModelMediator
public class DeathModelMediator
A special mediator class that tells the Environment when GameObjs should be removed. Used whenever a GameObj dies/dissipates/vanishes/is squished/is banished to another dimension/etc. (Um, rest in peace?)
| Method Summary | |
|---|---|
static DeathModelMediator |
getInstance()
Get an instance of this class. |
boolean |
removeObj(GameObj obj)
Remove the requested object from the current environment. |
void |
setEnvironment(Environment e)
Set the environment referenced by this class. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static DeathModelMediator getInstance()
public void setEnvironment(Environment e)
e - The environment with the GameObjs.public boolean removeObj(GameObj obj)
obj - The GameObj to be removed.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||