spellcast.beings
Class Wizard

java.lang.Object
  extended by spellcast.beings.Being
      extended by spellcast.beings.Wizard
All Implemented Interfaces:
java.io.Serializable, IBeing, IWizard, PropertyUpdater, util.Nullable
Direct Known Subclasses:
NullWizard

public class Wizard
extends Being
implements util.Nullable, IWizard

A Wizard of Spellcast.

Version:
$Revision: 1.1 $
Author:
Barrie Treloar
See Also:
Serialized Form

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

Wizard

protected Wizard()
Provided for serialization, do not use as a constructor.


Wizard

public Wizard(Id id,
              java.lang.String name,
              Gender gender)
Creates a new Wizard object.

Parameters:
id - DOCUMENT ME!
name - DOCUMENT ME!
gender - DOCUMENT ME!

Wizard

public Wizard(Wizard original)
Create a view of the original wizard that the gestures of the original wizard are correctly hidden.

Parameters:
original - DOCUMENT ME!
Method Detail

isReady

public final boolean isReady()
Whether the Wizard has completed their actions for this turn and is ready for the next turn.

Specified by:
isReady in interface IWizard
Returns:
true if the Wizard is ready, false otherwise.

setReady

public final 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.

Specified by:
setReady in interface IWizard
Parameters:
isReady - true if the Wizard is ready, false otherwise.

getLeftHandGesture

public final Gesture getLeftHandGesture()
Get the value of leftHandGesture.

Specified by:
getLeftHandGesture in interface IWizard
Returns:
value of leftHandGesture.

setLeftHandGesture

public final void setLeftHandGesture(Gesture theGesture)
Set the value of leftHandGesture.

Specified by:
setLeftHandGesture in interface IWizard
Parameters:
theGesture - Value to assign to leftHandGesture.

getRightHandGesture

public final Gesture getRightHandGesture()
Get the value of rightHandGesture.

Specified by:
getRightHandGesture in interface IWizard
Returns:
value of rightHandGesture.

setRightHandGesture

public void setRightHandGesture(Gesture theGesture)
Set the value of rightHandGesture.

Specified by:
setRightHandGesture in interface IWizard
Parameters:
theGesture - Value to assign to rightHandGesture.

addQuestion

public void addQuestion(IQuestion theQuestionToAsk)
Add a IQuestion to the IWizard.

Specified by:
addQuestion in interface IWizard
Parameters:
theQuestionToAsk - the IQuestion to ask the IWizard

toString

public final java.lang.String toString()

Overrides:
toString in class java.lang.Object

newNull

public static Wizard newNull()
Return a Null Wizard.

Returns:
an instance of the Null Wizard.


Copyright © 2001-2005 Spellcast. All Rights Reserved.