|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectes.ucm.fdi.hysteria.game.scene.ReactionManager
public class ReactionManager
This class manages multiple reactions
| Constructor Summary | |
|---|---|
ReactionManager(java.lang.String message)
Constructor |
|
| Method Summary | |
|---|---|
void |
addReaction(Reaction r)
Adds a new reaction to the manager |
java.lang.String |
getReaction(Item i)
This method returns the message tied to a given item, or the default one if no reaction is found |
boolean |
getReactionExtinguish(Item i)
|
boolean |
hasReactionTo(Item i)
It checks if a item has a reaction tied. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReactionManager(java.lang.String message)
message - The default message| Method Detail |
|---|
public java.lang.String getReaction(Item i)
i - The item
public boolean getReactionExtinguish(Item i)
public void addReaction(Reaction r)
r - The reactionpublic boolean hasReactionTo(Item i)
i - The item
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||