org.starhope.appius.game
Class BraqueGame

java.lang.Object
  extended by org.starhope.appius.game.AppiusClaudiusCaecus

public class BraqueGame
extends Object

Author:
brpocock

Field Summary
static int DELAY_MS
          The delay before the first run of the NPC manager task.
static int PERIOD_MS
          The time to wait before repeating the NPC manager task.
private static long serialVersionUID
          The version of the serialized form of this class.
 
Constructor Summary
BraqueGame()
          constructor
 
Method Summary
static Error fatalBug(Exception e)
          The exception passed in will be reported, as per reportBug, and then re-thrown as an Error, killing the process responsible
static void logEvent(String verb, String zoneName, String userName, String targetName, HashMap<String,String> details)
          Record an event to the journal
static void reportBug(Exception e)
           
static void reportBug(String string)
           Report a bug.
static void reportBug(String reason, Throwable throwable)
          Report a bug to the automatic bug-tracking systems.
static void reportClientBug(String string)
          TODO: document this method (brpocock, Sep 2, 2009)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DELAY_MS

public static final int DELAY_MS
The delay before the first run of the NPC manager task.

See Also:
Constant Field Values

PERIOD_MS

public static final int PERIOD_MS
The time to wait before repeating the NPC manager task.

See Also:
Constant Field Values

serialVersionUID

private static final long serialVersionUID
The version of the serialized form of this class.

See Also:
Constant Field Values
Constructor Detail

BraqueGame

public BraqueGame()
constructor

Method Detail

fatalBug

public static Error fatalBug(Exception e)
The exception passed in will be reported, as per reportBug, and then re-thrown as an Error, killing the process responsible

Parameters:
e - An exception to report
Returns:
the error (in theory), which can't be used, but makes the source code more legible.
Throws:
Error - (based upon the exception) every time

logEvent

public static void logEvent(String verb,
                            String zoneName,
                            String userName,
                            String targetName,
                            HashMap<String,String> details)
Record an event to the journal

Parameters:
verb - The verb describing the event
zoneName - The zone in which it occured
userName - The user causing the action
targetName - The target of the action, if any
details - Additional details

reportBug

public static void reportBug(Exception e)
Parameters:
e - An exception to report

reportBug

public static void reportBug(String string)

Report a bug.

This is used to catch either ‘impossible things’ or things that are so bad that immediate programmer intervention is needed.

Bug reports should eventually be funneled into the bug-tracking system or similar automatically, and forwarded to the systems programmers via eMail and SMS.

Parameters:
string - Bug report

reportBug

public static void reportBug(String reason,
                             Throwable throwable)
Report a bug to the automatic bug-tracking systems. This is an exception which "should never" be thrown, being caught and referred back for programmer intervention.

Parameters:
reason - The reason this is a bug, if known.
throwable - The "impossible" exception.

reportClientBug

public static void reportClientBug(String string)
TODO: document this method (brpocock, Sep 2, 2009)

Parameters:
string -