spellcast.ui
Interface SpellcastView

All Known Implementing Classes:
Client, SpellcastWindow

public interface SpellcastView

This interface provides all the GUI view manipulation methods. This allows the Client code to be independent of the particulars of Swing or AWT. In addition this allows an empty view to be created for the cases when there is no view connected to the client. For example when a bot is created the bot might not have a visible gui.

Author:
Barrie Treloar

Method Summary
 void addMessage(java.lang.String message)
          Add a message to the view.
 void addQuery(Question query)
          Add a query to the view.
 void addWizard(IWizard w)
          Add a wizard to the view.
 void connected(boolean success)
          Indicate that the system has connected to a Spellcast server.
 void disconnected()
          Indicate that the system has disconnected from a Spellcast server.
 void removeWizard(IWizard w)
          Remove a wizard from the view.
 void setGame(Game v)
          Set the value of the current Game.
 void setID(Id v)
          Set the value of Wizard's id.
 

Method Detail

addMessage

void addMessage(java.lang.String message)
Add a message to the view.


addQuery

void addQuery(Question query)
Add a query to the view.


addWizard

void addWizard(IWizard w)
Add a wizard to the view.


removeWizard

void removeWizard(IWizard w)
Remove a wizard from the view.


connected

void connected(boolean success)
Indicate that the system has connected to a Spellcast server. A successful connection will pass true, otherwise false is used.

Parameters:
success - indicates whether the connection was success (true), or unsuccessful (false)

disconnected

void disconnected()
Indicate that the system has disconnected from a Spellcast server.


setID

void setID(Id v)
Set the value of Wizard's id.

Parameters:
v - Value to assign to id.

setGame

void setGame(Game v)
Set the value of the current Game.

Parameters:
v - Value to assign to game.


Copyright © 2001-2005 Spellcast. All Rights Reserved.