org.starhope.vergil.game
Class PubliusVergiliusMaro

java.lang.Object
  extended by org.starhope.vergil.game.PubliusVergiliusMaro

public class PubliusVergiliusMaro
extends Object

This is the static class that dispatches calls to the specific GameImplementor for the local client implementation

Author:
brpocock@star-hope.org

Field Summary
private static AppianClient client
          the AppianClient for the current instance
private static GameImplementor gameImplementor
          The game implementation must supply these callbacks in its interface
private static String userLogin
          WRITEME: Document this brpocock@star-hope.org
private static String userPassword
          WRITEME: Document this brpocock@star-hope.org
 
Constructor Summary
PubliusVergiliusMaro()
           
 
Method Summary
static void connectClient(String hostName, int portNumber)
          WRITEME
static String getImplementorCanonicalName()
          WRITEME
static String getImplementorCopyright()
          WRITEME
static String getImplementorSubtitle()
          WRITEME
static String getImplementorTitle()
          WRITEME
static String getUserLogin()
           
static String getUserPassword()
           
static boolean isDebug()
          WRITEME
static void promptForLogin()
          WRITEME: Document this method brpocock@star-hope.org
static void reportBug(String string)
          WRITEME
static void reportBug(String string, Throwable t)
          WRITEME
static void reportBug(Throwable t)
          WRITEME
static void send(String string)
          WRITEME: Document this method brpocock@star-hope.org
static void sendCommand(String command, com.google.gwt.json.client.JSONObject data)
          WRITEME: Document this method brpocock@star-hope.org
static void setImplementation(GameImplementor implementation)
          WRITEME
 void setLoginCredentials(String login, String password)
          Set the user's login and password at one go.
 void setUserLogin(String newLogin)
           
 void setUserPassword(String newPassword)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

client

private static AppianClient client
the AppianClient for the current instance


gameImplementor

private static GameImplementor gameImplementor
The game implementation must supply these callbacks in its interface


userLogin

private static String userLogin
WRITEME: Document this brpocock@star-hope.org


userPassword

private static String userPassword
WRITEME: Document this brpocock@star-hope.org

Constructor Detail

PubliusVergiliusMaro

public PubliusVergiliusMaro()
Method Detail

connectClient

public static void connectClient(String hostName,
                                 int portNumber)
WRITEME

Parameters:
hostName - WRITEME
portNumber - WRITEME

getImplementorCanonicalName

public static String getImplementorCanonicalName()
WRITEME

Returns:
WRITEME

getImplementorCopyright

public static String getImplementorCopyright()
WRITEME

Returns:
WRITEME

getImplementorSubtitle

public static String getImplementorSubtitle()
WRITEME

Returns:
WRITEME

getImplementorTitle

public static String getImplementorTitle()
WRITEME

Returns:
WRITEME

getUserLogin

public static String getUserLogin()
Returns:
the userLogin

getUserPassword

public static String getUserPassword()
Returns:
the userPassword

isDebug

public static boolean isDebug()
WRITEME

Returns:
WRITEME

promptForLogin

public static void promptForLogin()
WRITEME: Document this method brpocock@star-hope.org


reportBug

public static void reportBug(String string)
WRITEME

Parameters:
string - WRITEME

reportBug

public static void reportBug(String string,
                             Throwable t)
WRITEME

Parameters:
string - WRITEME
t - WRITEME

reportBug

public static void reportBug(Throwable t)
WRITEME

Parameters:
t - WRITEME

send

public static void send(String string)
WRITEME: Document this method brpocock@star-hope.org

Parameters:
string - string to be sent

sendCommand

public static void sendCommand(String command,
                               com.google.gwt.json.client.JSONObject data)
                        throws ServerDisconnectedException
WRITEME: Document this method brpocock@star-hope.org

Parameters:
command - command verb
data - any ancillary data (null is accepted)
Throws:
ServerDisconnectedException - if it did

setImplementation

public static void setImplementation(GameImplementor implementation)
WRITEME

Parameters:
implementation - WRITEME

setLoginCredentials

public void setLoginCredentials(String login,
                                String password)
Set the user's login and password at one go.

Parameters:
login - login
password - password

setUserLogin

public void setUserLogin(String newLogin)
Parameters:
newLogin - the userLogin to set

setUserPassword

public void setUserPassword(String newPassword)
Parameters:
newPassword - the userPassword to set