dip.gui.report
Class StateWriter

java.lang.Object
  extended bydip.gui.report.StateWriter

public class StateWriter
extends java.lang.Object

Writes the current game state as HTML.

Includes:

  1. Current Phase
  2. Current Unit Positions
  3. Current Orders
  4. Current Supply Center owners
  5. Current Adjustments or Current Retreats


Method Summary
static void displayDialog(ClientFrame clientFrame, TurnState ts)
          Returns the HTML-encoded current state inside a dialog.
static java.lang.String stateToHTML(ClientFrame cf, TurnState ts)
          Displays a summary of the current game state as HTML.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

stateToHTML

public static java.lang.String stateToHTML(ClientFrame cf,
                                           TurnState ts)
Displays a summary of the current game state as HTML. Obeys the displayablePowers setting (obtained from ClientFrame). If no ClientFrame supplied, all displayable powers are shown.


displayDialog

public static void displayDialog(ClientFrame clientFrame,
                                 TurnState ts)
Returns the HTML-encoded current state inside a dialog.



Copyright 2002-2004 Zachary DelProposto / jDip Development Team. All Rights Reserved.