Class GameSetupData

java.lang.Object
  |
  +--GameSetupData

public class GameSetupData
extends java.lang.Object
implements java.io.Serializable

Used to save and load game setup data.

Author:
Karen Stevens
See Also:
Serialized Form

Field Summary
 boolean Before
          Sets if questions are supposed to be loaded before running boards.
 GroupData[] Board1Data
          Stores information from first board.
 GroupShell Board1Shell
          Stores information from first board.
 GroupData[] Board2Data
          Stores information from second board.
 GroupShell Board2Shell
          Stores information from second board.
 QuestionsData QueryChildren
          Stores question data.
 boolean Randomize
          Sets if boards are to be randomized or not.
 int[] Rank1
          How the person setting up the 1st board ranks the 1st items.
 int[] Rank2
          How the person setting up the 2nd board ranks the 2nd items.
 
Constructor Summary
GameSetupData()
          Empty default constructor.
GameSetupData(GroupShell S1, GroupShell S2, GroupData[] D1, GroupData[] D2, QuestionsData Q, boolean R, boolean B, int[] R1, int[] R2)
          Used to load and save serialized data.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

Board1Shell

public GroupShell Board1Shell
Stores information from first board.

Board2Shell

public GroupShell Board2Shell
Stores information from second board.

Board1Data

public GroupData[] Board1Data
Stores information from first board.

Board2Data

public GroupData[] Board2Data
Stores information from second board.

QueryChildren

public QuestionsData QueryChildren
Stores question data.

Randomize

public boolean Randomize
Sets if boards are to be randomized or not.

Before

public boolean Before
Sets if questions are supposed to be loaded before running boards.

Rank1

public int[] Rank1
How the person setting up the 1st board ranks the 1st items.

Rank2

public int[] Rank2
How the person setting up the 2nd board ranks the 2nd items.
Constructor Detail

GameSetupData

public GameSetupData()
Empty default constructor.

GameSetupData

public GameSetupData(GroupShell S1,
                     GroupShell S2,
                     GroupData[] D1,
                     GroupData[] D2,
                     QuestionsData Q,
                     boolean R,
                     boolean B,
                     int[] R1,
                     int[] R2)
Used to load and save serialized data.
Parameters:
S1 - Header data from board 1.
S2 - Header data from board 2.
D1 - Data from board 1.
D2 - Data from board 2.
Q - Question data.
R - Randomized board setting.
B - Setting to determine if questions are asked before of after boards.
R1 - Ranking information for board 1.
R2 - Ranking information for board 2.