|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object spellcast.beings.Being spellcast.beings.Wizard
public class Wizard
A Wizard
of Spellcast.
Field Summary |
---|
Fields inherited from class spellcast.beings.Being |
---|
ACTIVE_PROP |
Constructor Summary | |
---|---|
protected |
Wizard()
Provided for serialization, do not use as a constructor. |
|
Wizard(Id id,
java.lang.String name,
Gender gender)
Creates a new Wizard object. |
|
Wizard(Wizard original)
Create a view of the original wizard that the gestures of the original wizard are correctly hidden. |
Method Summary | |
---|---|
void |
addQuestion(IQuestion theQuestionToAsk)
Add a IQuestion to the IWizard . |
Gesture |
getLeftHandGesture()
Get the value of leftHandGesture. |
Gesture |
getRightHandGesture()
Get the value of rightHandGesture. |
boolean |
isReady()
Whether the Wizard has completed their actions for this turn and is ready for the next turn. |
static Wizard |
newNull()
Return a Null Wizard . |
void |
setLeftHandGesture(Gesture theGesture)
Set the value of leftHandGesture. |
void |
setReady(boolean isReady)
Indicate whether the Wizard has completed all the actions for this turn and is ready for the turn to be completed. |
void |
setRightHandGesture(Gesture theGesture)
Set the value of rightHandGesture. |
java.lang.String |
toString()
|
Methods inherited from class spellcast.beings.Being |
---|
addEnchantment, addPropertyChangeListener, getEnchantments, getGender, getHitPoints, getId, getLeavesCorpse, getMaxHitPoints, getName, getPropertySupport, isActive, isAlive, isNull, removeEnchantment, removePropertyChangeListener, setActive, setAlive, setGender, setHitPoints, setId, setLeavesCorpse, setMaxHitPoints, setName, setNull, shouldDie, takeDamage, updateEnchantments |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface spellcast.beings.IBeing |
---|
addEnchantment, getEnchantments, getGender, getHitPoints, getId, getLeavesCorpse, getMaxHitPoints, getName, isActive, isAlive, removeEnchantment, setActive, setAlive, setGender, setHitPoints, setId, setLeavesCorpse, setMaxHitPoints, setName, shouldDie, takeDamage, updateEnchantments |
Constructor Detail |
---|
protected Wizard()
public Wizard(Id id, java.lang.String name, Gender gender)
id
- DOCUMENT ME!name
- DOCUMENT ME!gender
- DOCUMENT ME!public Wizard(Wizard original)
original
- DOCUMENT ME!Method Detail |
---|
public final boolean isReady()
isReady
in interface IWizard
public final void setReady(boolean isReady)
setReady
in interface IWizard
isReady
- true if the Wizard is ready, false otherwise.public final Gesture getLeftHandGesture()
getLeftHandGesture
in interface IWizard
public final void setLeftHandGesture(Gesture theGesture)
setLeftHandGesture
in interface IWizard
theGesture
- Value to assign to leftHandGesture.public final Gesture getRightHandGesture()
getRightHandGesture
in interface IWizard
public void setRightHandGesture(Gesture theGesture)
setRightHandGesture
in interface IWizard
theGesture
- Value to assign to rightHandGesture.public void addQuestion(IQuestion theQuestionToAsk)
IQuestion
to the IWizard
.
addQuestion
in interface IWizard
theQuestionToAsk
- the IQuestion
to ask the IWizard
public final java.lang.String toString()
toString
in class java.lang.Object
public static Wizard newNull()
Wizard
.
Wizard
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |