Serialized Form


Package de.hagenah.diplomacy.diptool

Class de.hagenah.diplomacy.diptool.DipGame extends Game implements Serializable

serialVersionUID: 1194502129611433117L

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream in)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
Restores the class

Throws:
java.io.IOException
java.lang.ClassNotFoundException
Serialized Fields

Group

DipGameGroup Group
The group of this game


ReadFiles

java.util.Set ReadFiles
All already read files (String objects) that modified this game, synchronized


PasswordData

byte[] PasswordData
The password (can be empty), must not be modified (assign a new array to modify it)


EmailAccount

EmailAccount EmailAccount
The e-mail account that is used to send e-mails to the judges, can be null


AutoOrderEditing

boolean AutoOrderEditing
The orders editing mode is automatically activated if the map is clicked


EditProxyOrders

boolean EditProxyOrders
Is the editing of proxy order enabled?

Class de.hagenah.diplomacy.diptool.DipGameGroup extends GameGroup implements Serializable

serialVersionUID: 930379415261487897L

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream In)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
Restores the class

Throws:
java.io.IOException
java.lang.ClassNotFoundException
Serialized Fields

Name

java.lang.String Name
The name of the group


ScanDirectories

java.util.Set ScanDirectories
Directories and Files to scan (File), unmodifiable


ReadFiles

java.util.Map ReadFiles
All already read files (String -> Long), synchronized


ParsedFile

java.lang.String ParsedFile
The currently parsed file, null if no file is parsed


Options

int Options
The options

Class de.hagenah.diplomacy.diptool.DipTool extends javax.swing.JFrame implements Serializable

Serialized Fields

BorderLayout0

java.awt.BorderLayout BorderLayout0

JSplitPane2

javax.swing.JSplitPane JSplitPane2

JGameScrollPane

javax.swing.JScrollPane JGameScrollPane

JGameTree

javax.swing.JTree JGameTree

JSplitPane1

javax.swing.JSplitPane JSplitPane1

JMapPanel

de.hagenah.diplomacy.diptool.DipTool.MapPanel JMapPanel

JOrderScrollPane

javax.swing.JScrollPane JOrderScrollPane

JOrderTextArea

javax.swing.JTextArea JOrderTextArea

JGrayLineBorder

javax.swing.border.Border JGrayLineBorder

JToolBar1

javax.swing.JToolBar JToolBar1

JStatusBarLabel

javax.swing.JLabel JStatusBarLabel

JNewButton

javax.swing.JButton JNewButton

JOpenButton

javax.swing.JButton JOpenButton

JSaveButton

javax.swing.JButton JSaveButton

JAbbreviationsButton

javax.swing.JToggleButton JAbbreviationsButton

JCentersButton

javax.swing.JToggleButton JCentersButton

JUnitsButton

javax.swing.JToggleButton JUnitsButton

JOrdersTypeButton

javax.swing.JToggleButton JOrdersTypeButton

JOrdersPowerButton

javax.swing.JToggleButton JOrdersPowerButton

JEditOrdersButton

javax.swing.JToggleButton JEditOrdersButton

JFullScreenButton

javax.swing.JToggleButton JFullScreenButton

JMenuBar

javax.swing.JMenuBar JMenuBar

JFileMenu

javax.swing.JMenu JFileMenu

JShowMapMenu

javax.swing.JMenu JShowMapMenu

JAutoSaveMenuItem

javax.swing.JCheckBoxMenuItem JAutoSaveMenuItem

JEmailAccountMenu

javax.swing.JMenu JEmailAccountMenu

JGroupMenu

javax.swing.JMenu JGroupMenu

JScanClipboardMenuItem

javax.swing.JMenuItem JScanClipboardMenuItem

JGameMenu

javax.swing.JMenu JGameMenu

JTurnMenu

javax.swing.JMenu JTurnMenu

JClearOrdersMenuItem

javax.swing.JMenuItem JClearOrdersMenuItem

JAdjudicateMenuItem

javax.swing.JMenuItem JAdjudicateMenuItem

JRollBackMenuItem

javax.swing.JMenuItem JRollBackMenuItem

JHelpMenu

javax.swing.JMenu JHelpMenu

JRootPopupMenu

javax.swing.JPopupMenu JRootPopupMenu

JShowMapPopupMenu

javax.swing.JMenu JShowMapPopupMenu

JAutoSavePopupMenuItem

javax.swing.JCheckBoxMenuItem JAutoSavePopupMenuItem

JAccountPopupMenu

javax.swing.JPopupMenu JAccountPopupMenu

JGroupPopupMenu

javax.swing.JPopupMenu JGroupPopupMenu

JScanClipboardPopupMenuItem

javax.swing.JMenuItem JScanClipboardPopupMenuItem

JGamePopupMenu

javax.swing.JPopupMenu JGamePopupMenu

JTurnSubMenu

javax.swing.JMenu JTurnSubMenu

JRollBackSubMenuItem

javax.swing.JMenuItem JRollBackSubMenuItem

JTurnPopupMenu

javax.swing.JPopupMenu JTurnPopupMenu

JClearOrdersPopupMenuItem

javax.swing.JMenuItem JClearOrdersPopupMenuItem

JAdjudicatePopupMenuItem

javax.swing.JMenuItem JAdjudicatePopupMenuItem

JRollBackPopupMenuItem

javax.swing.JMenuItem JRollBackPopupMenuItem

ActionForwarder

java.awt.event.ActionListener ActionForwarder
Forwards the ActionEvent to the action method


OrderMenuActionForwarder

java.awt.event.ActionListener OrderMenuActionForwarder
Forwards the ActionEvent to the action method


AddIns

java.util.ArrayList AddIns
All AddIns


EditedTurn

DipTurn EditedTurn
The currently edited turn


EditedSpecialCenters

java.util.Map EditedSpecialCenters
The special centers (e.g. for MapData.isHomeCenter) if EditedTurn is an adjustment turn, null otherwise


EditedSubProvinces

java.util.ArrayList EditedSubProvinces
The subprovinces of the edited order


EditedCountry

Country EditedCountry
The country of the edited order


EditedOldOrder

Order EditedOldOrder
This order is hidden because the edited order replaces it


EditedOrder

Order EditedOrder
The edited order


EditedHighlighted

java.util.Collection EditedHighlighted
The next possible highlighted subprovinces (SubProvince objects)


EditedOrderType

int EditedOrderType
The type of the edited order


EditedOrderText

java.lang.String EditedOrderText
The text for the order as far as already known, null if not in order completion mode (EditedHighlighted!=null)


StartingPositionMap

MapData StartingPositionMap
The starting position map that is currently displayed

Class de.hagenah.diplomacy.diptool.DipTurn extends Turn implements Serializable

serialVersionUID: -1910666479839063420L

Serialized Fields

Game

DipGame Game
The game of this turn


OrdersSend

boolean OrdersSend
This flag is set if the orders of this turn are send or copied to the clipboard

Class de.hagenah.diplomacy.diptool.EmailAccount extends java.lang.Object implements Serializable

serialVersionUID: -3576695648853864065L

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream in)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
Restores the class

Throws:
java.io.IOException
java.lang.ClassNotFoundException
Serialized Fields

Name

java.lang.String Name
A name for this email account


POP3Server

java.lang.String POP3Server
POP3: the server


POP3Port

int POP3Port
POP3: the port (0 for default)


IMAPServer

java.lang.String IMAPServer
IMAP: the server


IMAPPort

int IMAPPort
IMAP: the port (0 for default)


IMAPFolder

java.lang.String IMAPFolder
IMAP: the folder to use (INBOX is the default)


Account

java.lang.String Account
POP3+IMAP: the account name


PasswordData

byte[] PasswordData
POP3+IMAP: the password (can be empty), must not be modified (assign a new array to modify it)


BaseDirectory

java.lang.String BaseDirectory
The base directory (subdirectories: '<game> (<judge>)')


EmailAddress

java.lang.String EmailAddress
The e-mail address used when sending e-mail messages


SMTPServer

java.lang.String SMTPServer
SMTP: the server


SMTPPort

int SMTPPort
SMTP: the port (0 for default)


SMTPAccount

java.lang.String SMTPAccount
SMTP: the account name


SMTPPasswordData

byte[] SMTPPasswordData
SMTP: the password (can be empty), must not be modified (assign a new array to modify it)


Options

int Options
The options

Class de.hagenah.diplomacy.diptool.EmailAccountDialog.PortField extends javax.swing.JTextField implements Serializable

Class de.hagenah.diplomacy.diptool.HelpDialog extends javax.swing.JDialog implements Serializable

Serialized Fields

BorderLayout0

java.awt.BorderLayout BorderLayout0

JHTMLEditorPane

javax.swing.JEditorPane JHTMLEditorPane

JHTMLScrollPane

javax.swing.JScrollPane JHTMLScrollPane

Class de.hagenah.diplomacy.diptool.Preferences extends java.lang.Object implements Serializable

serialVersionUID: -7542217375385357209L

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream in)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
Restores the class

Throws:
java.io.IOException
java.lang.ClassNotFoundException
Serialized Fields

Version

int Version
The version of this object


ShowOrdersType

boolean ShowOrdersType
Colored orders are shown


ShowOrdersPower

boolean ShowOrdersPower
Orders are colored as the units


ShowCenters

boolean ShowCenters
Centers are shown


ShowUnits

boolean ShowUnits
Units are shown


UnitIcons

boolean UnitIcons
Unit icons are shown instead of unit shapes


ShowAbbreviations

boolean ShowAbbreviations
Abbreviations of provinces are shown


WindowBounds

java.awt.Rectangle WindowBounds
The bounds of the main window


WindowDividerX

int WindowDividerX
The horizontal position of the divider


WindowDividerY

int WindowDividerY
The vertical position of the divider


CurrentDirectory

java.io.File CurrentDirectory
The current directory


CurrentFile

java.io.File CurrentFile
The current data file


Judges

java.util.SortedSet Judges
The set of judges, unmodifiable


Brightness

int Brightness
The brightness of the centers on the map (0=unitcolor to 255=white)


Highlighting

int Highlighting
The highlighting on the map (0=unchanged to 255=black)


AntiAliasing

boolean AntiAliasing
Use antialiasing when drawing the map?


Package de.hagenah.diplomacy.game

Class de.hagenah.diplomacy.game.DiaryEntry extends java.lang.Object implements Serializable

serialVersionUID: 6274978154715306035L

Serialized Fields

From

Person From
The person that created the diary entry (can be null if unknown)


Number

int Number
The number of the diary entry (-1 if unknown)


Text

java.lang.String Text
The diary entry text (\n as line separator)


Phase

Phase Phase
The phase in which the diary entry was created


MessageNumber

int MessageNumber
A unique message number for the diary entry

Class de.hagenah.diplomacy.game.Game extends java.lang.Object implements Serializable

serialVersionUID: -8453538606110600915L

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream in)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
Restores the class

Throws:
java.io.IOException
java.lang.ClassNotFoundException
Serialized Fields

Name

java.lang.String Name
Name of the game (lowercase)


Options

java.util.TreeSet Options
Options (String)


Judge

java.lang.String Judge
Name of the judge


Map

MapData Map
The map of the game


Turns

java.util.TreeMap Turns
All known Turns of the game (Integer -> Turn)


Identity

Person Identity
Your role in this game (a country, master, or observer), null → unknown


MessageNumber

int MessageNumber
Next consecutive message number


TextHash

java.util.Map TextHash
Map (Integer → SortedSet (Message)) with the hash codes of the texts as keys


DateOrder

java.util.SortedMap DateOrder
Map (Date → SortedSet (Message)) with the message dates as keys


TurnOrder

java.util.SortedMap TurnOrder
Map (Integer → SortedSet (Message)) with the last turn numbers as keys


TurnDates

java.util.SortedMap TurnDates
The date of the turn (can be null)


DiaryEntries

java.util.SortedMap DiaryEntries
The diary entries of a phase (Phase -> SortedSet)


Victors

java.util.SortedSet Victors
The victor resp. the draw participants, null if unknown


Concession

boolean Concession
Was the game conceded? Only set if Victors is not null


Comment

java.lang.String Comment
The game comment, null if unknown


Parameters

de.hagenah.util.NormalizedMap Parameters
The parameters of the game, null if unknown


PersonInfos

java.util.SortedSet PersonInfos
The person names and e-mails


LastPhase

Phase LastPhase
The last phase of this game, null if unknown

Class de.hagenah.diplomacy.game.GameGroup extends java.lang.Object implements Serializable

serialVersionUID: 2767379260142908832L

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream in)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
Restores the class

Throws:
java.io.IOException
java.lang.ClassNotFoundException
Serialized Fields

Games

java.util.TreeMap Games
All existing games (Name+" "+Judge -> Game)


MapPath

java.lang.String MapPath
Path to the maps

Class de.hagenah.diplomacy.game.Judge extends java.lang.Object implements Serializable

serialVersionUID: 953123815549591005L

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream in)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
Restores the class

Throws:
java.io.IOException
java.lang.ClassNotFoundException
Serialized Fields

Name

java.lang.String Name
The name of the judge


Email

java.lang.String Email
The email address of the judge


SecondaryEmail

java.lang.String SecondaryEmail
The secondary email address of the judge


Footer

java.lang.String Footer
The begin of the footer, empty string for no footer

Class de.hagenah.diplomacy.game.JudgeParseException extends java.lang.Exception implements Serializable

Serialized Fields

Line

int Line
The line in which the error occured.

Class de.hagenah.diplomacy.game.Message extends java.lang.Object implements Serializable

serialVersionUID: 8272103153919611897L

Serialized Fields

Anonymous

boolean Anonymous
Is the message anonymous (grey)?


From

Person From
The person that sent the message (can be null if unknown)


ToAllBut

boolean ToAllBut
false → the message was sent to To, true → the message was send to all but To (if To is an empty set it was a broadcast message).


To

java.util.SortedSet To
The interpretation depends on ToAllBut (can be null if unknown)


FakeToAllBut

boolean FakeToAllBut
false → the message was faked to FakeTo, true → the message was faked to all but FakeTo (if FakeTo is an empty set it was a faked broadcast message).


FakeTo

java.util.SortedSet FakeTo
The interpretation depends on faketoallbut (cannot be null)


Text

java.lang.String Text
The message text (\n as line separator)


MessageDate

java.util.Date MessageDate
The date of the message (can be null)


LastTurnNumber

int LastTurnNumber
The number of the last turn, when the message was created


MessageNumber

int MessageNumber
The number of the message

Class de.hagenah.diplomacy.game.MessageFilter extends java.lang.Object implements Serializable

serialVersionUID: -7403270787685960636L

Serialized Fields

BroadcastMessages

boolean BroadcastMessages
Are broadcast messages included?


PressMessages

boolean PressMessages
Are press messages included?


DiaryMessages

boolean DiaryMessages
Are diary messages included?


Text

java.lang.String Text
This text must be contained in the message


Persons

java.util.SortedSet Persons
The persons who must know the message

Class de.hagenah.diplomacy.game.Order extends java.lang.Object implements Serializable

serialVersionUID: -3501957757427676291L

Serialized Fields

Country

Country Country
The Country which give this Order


Type

int Type
The type of the order (TYPE_...)


SubProvinces

java.util.ArrayList SubProvinces
List of the SubProvinces in the order in order of appearance, e.g. NWS, Yor, Nwy for F NWS S A Yor-Nwy.


Proxy

Country Proxy
Country for TYPE_PROXY


Result

int Result
Order result flags (combination of RESULT_...)


Identity

de.hagenah.helper.IdentityNumber Identity
An unique Number to distinguish waive orders


CoastHint

int CoastHint
Hint to a coast of a illegal support order e.g. A Mun S A Mos-Tyr(sc) or A Mun S A Mos(sc)

Class de.hagenah.diplomacy.game.PersonInfo extends java.lang.Object implements Serializable

serialVersionUID: -77884291144813352L

Serialized Fields

Person

Person Person
The person


FirstPhase

Phase FirstPhase
The first phase of the game where this person entered orders


Name

java.lang.String Name
The name of the person


Email

java.lang.String Email
The e-mail address

Class de.hagenah.diplomacy.game.Turn extends java.lang.Object implements Serializable

serialVersionUID: 4477819139692300523L

Serialized Fields

Number

int Number
The number of the turn (1, 2, ...)


Phase

Phase Phase
The phase of the turn


Units

java.util.TreeMap Units
Units on the board (Province -> Unit)


DislodgedUnits

java.util.TreeMap DislodgedUnits
Dislodged units that can retreat (Province -> Unit)


Centers

java.util.TreeMap Centers
Centers on the board (Province, Country)


Orders

java.util.TreeSet Orders
Orders for the turn (Order)


Builds

java.util.TreeMap Builds
Builds for the turn (Country -> Integer)


Deadline

java.util.Date Deadline
The deadline of the turn (can be null)

Class de.hagenah.diplomacy.game.Unit extends java.lang.Object implements Serializable

serialVersionUID: -8986009389437801919L

Serialized Fields

Country

Country Country
Owner of the unit


SubProvince

SubProvince SubProvince
SubProvince in which the unit is


Retreats

java.util.TreeSet Retreats
SubProvinces the unit can retreat to, if is was dislodged


Package de.hagenah.diplomacy.map

Class de.hagenah.diplomacy.map.Country extends Person implements Serializable

serialVersionUID: -509793978857256896L

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream in)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
Restores the class

Throws:
java.io.IOException
java.lang.ClassNotFoundException
Serialized Fields

Name

java.lang.String Name
The name of the person.


Abbreviation

java.lang.String Abbreviation
The one letter (uppercase) abbreviation of the person


Color

java.awt.Color Color
The color of the person


OwnerName

java.lang.String OwnerName
Name of the country as owner e.g. Turkish


StartCenters

java.util.TreeSet StartCenters
Centers at the beginning (Province)


HomeCenters

java.util.TreeSet HomeCenters
The home centers (Province)


StartUnits

java.util.TreeSet StartUnits
Units at the beginning (SubProvince)

Class de.hagenah.diplomacy.map.MapData extends java.lang.Object implements Serializable

serialVersionUID: -2707707097808842511L

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream in)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
Restores the class

Throws:
java.io.IOException
java.lang.ClassNotFoundException

writeObject

private void writeObject(java.io.ObjectOutputStream out)
                  throws java.io.IOException
Writes the class

Throws:
java.io.IOException
Serialized Fields

Name

java.lang.String Name
Name of the map


StartPhase

Phase StartPhase
The start phase for the map


MapBy

java.lang.String MapBy
Author of the map


VariantBy

java.lang.String VariantBy
Author of the variant


Comment

java.lang.String Comment
Comment for the map


Provinces

java.util.TreeSet Provinces
All provinces ordered by Name (Province)


ProvinceNames

java.util.Map ProvinceNames
All names of all provinces (String(normalizeCase) -> Province). After the map is read it is made unmodifiable. It was a HashMap in version 1.x and so it must now be a Map.


Countries

java.util.TreeSet Countries
All countries ordered by Name (Country)


CountryNames

java.util.HashMap CountryNames
All names of all countries (String(normalizeCase) -> Country)


HomeCentersType

int HomeCentersType
The home centers type (HOME_CENTERS_...)


HomeCentersPhase

Phase HomeCentersPhase
The special phase if HomeCentersType==HOME_CENTERS_PHASE

Class de.hagenah.diplomacy.map.Person extends java.lang.Object implements Serializable

serialVersionUID: 6913253456359362269L

Serialization Methods

readResolve

java.lang.Object readResolve()
                       throws java.io.ObjectStreamException
Deals with the issue of uniqueness of the master and observer country.

Throws:
java.io.ObjectStreamException
Serialized Fields

Name

java.lang.String Name
The name of the person


Abbreviation

java.lang.String Abbreviation
The one letter (uppercase) abbreviation of the person


Color

java.awt.Color Color
The color of the person

Class de.hagenah.diplomacy.map.Phase extends java.lang.Object implements Serializable

serialVersionUID: -3693797359417197392L

Serialized Fields

Year

int Year
Year of the phase (MIN_YEAR..MAX_YEAR)


Flags

int Flags
Combination of TYPE_RETREAT, ADJUSTMENT, and FALL


MIN_YEAR

int MIN_YEAR
Minimum allowed year of the phase


MAX_YEAR

int MAX_YEAR
Maximum allowed year of the phase

Class de.hagenah.diplomacy.map.Province extends java.lang.Object implements Serializable

serialVersionUID: -1658458110243961590L

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream in)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
Restores the class

Throws:
java.io.IOException
java.lang.ClassNotFoundException

writeObject

private void writeObject(java.io.ObjectOutputStream out)
                  throws java.io.IOException
Writes the class

Throws:
java.io.IOException
Serialized Fields

Name

java.lang.String Name
Name of the province


Abbreviation

java.lang.String Abbreviation
Abbreviation of the province


NoCenter

Country NoCenter
For this country this center is no center (e.g. China for Hong Kong in Colonial)


Sea

boolean Sea
Is it a sea province?


SubProvinces

java.util.TreeSet SubProvinces
All subprovinces (SubProvince)


Center

boolean Center
Is a center in this province?


SummaryOrder

int SummaryOrder
Order of the center in the summary


Special

int Special
Set if this is a special province (SPECIAL_...)


SpecialSubProvinces

java.util.List SpecialSubProvinces
A unmodifiable list of SubProvince objects (the meaning depends on Special), can be null


SpecialProvinces

java.util.List SpecialProvinces
A unmodifiable list (Province objects) with the special provinces that influence this province, can be null


SpecialCountry

Country SpecialCountry
A country (the meaning depends on Special), can be null

Class de.hagenah.diplomacy.map.SubProvince extends java.lang.Object implements Serializable

serialVersionUID: -3916437008350769328L

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream in)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
Restores the class

Throws:
java.io.IOException
java.lang.ClassNotFoundException

writeObject

private void writeObject(java.io.ObjectOutputStream out)
                  throws java.io.IOException
Writes the class

Throws:
java.io.IOException
Serialized Fields

Province

Province Province
Province of the sub province


Coast

int Coast
Coast of the sub province


Moves

java.util.TreeSet Moves
Possible moves (SubProvince)