|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
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 |
---|
void addMessage(java.lang.String message)
void addQuery(Question query)
void addWizard(IWizard w)
void removeWizard(IWizard w)
void connected(boolean success)
success
- indicates whether the connection was success (true),
or unsuccessful (false)void disconnected()
void setID(Id v)
v
- Value to assign to id.void setGame(Game v)
v
- Value to assign to game.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |