Class GiveCommand
- java.lang.Object
-
- org.drools.games.adventures.model.Command
-
- org.drools.games.adventures.model.GiveCommand
-
public class GiveCommand extends Command
-
-
Constructor Summary
Constructors Constructor Description GiveCommand(Character giver, Thing thing, Character receiver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)CharactergetGiver()CharactergetReceiver()ThinggetThing()inthashCode()voidsetGiver(Character giver)voidsetReceiver(Character receiver)voidsetThing(Thing thing)java.lang.StringtoString()-
Methods inherited from class org.drools.games.adventures.model.Command
getSession, setSession
-
-
-
-
Method Detail
-
getGiver
public Character getGiver()
-
setGiver
public void setGiver(Character giver)
-
getThing
public Thing getThing()
-
setThing
public void setThing(Thing thing)
-
getReceiver
public Character getReceiver()
-
setReceiver
public void setReceiver(Character receiver)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-