Serialized Form
-
Package uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base
-
Class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.base.MineMap.MapCopyException extends Exception implements Serializable
- serialVersionUID:
- -8312441820699627778L
-
-
Package uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui
-
Class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.AIConfigPanel extends JPanel implements Serializable
- serialVersionUID:
- 4402385903158103537L
-
Serialized Fields
-
aiSpeed
JLabel aiSpeed
-
baseConfig
JPanel baseConfig
-
cl1
JTextField cl1
The textfield to contain the class name of the first competing AI -
cl2
JTextField cl2
The textfield to contain the class name of the second competing AI. Note that this does not necessarily have to be filled and its correctness is only checked if the tickboxAIConfigPanel.singleaicheckis picked. -
classNamePanel
JPanel classNamePanel
-
firstAIQuestion
JLabel firstAIQuestion
-
parent
MineSweeper parent
-
secondAIQuestion
JLabel secondAIQuestion
-
singleaicheck
JCheckBox singleaicheck
Checkbox to show if we want one or two AIs. If this is selected then two AIs are needed. -
singleQuestion
JLabel singleQuestion
-
sliderPanel
JPanel sliderPanel
-
speedSlider
JSlider speedSlider
The slider that allows to set the speed of the AIs. The value of this gets propagated touidelayin MineMap.
-
-
Class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.FlashableJLabel extends JLabel implements Serializable
- serialVersionUID:
- 1728909396799612303L
-
Serialized Fields
-
blocker
String blocker
Used as to block access to inThread and expectedBackground while dealing with flashing initialisation and background changes. -
ex
ExecutorService ex
This executor allows queueing flashing threads so only one is doing its flashing operations at a given time -
expectedBackground
Color expectedBackground
If this is not null then there was a background change request during an ongoing flash. -
inThread
boolean inThread
Do we have a running thread to flash the background?
-
-
Class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.MineSweeper extends JFrame implements Serializable
- serialVersionUID:
- -879006114019674131L
-
Serialized Fields
-
aicheck
JCheckBox aicheck
-
aiconfig
AIConfigPanel aiconfig
-
currentGuis
ArrayList<RestartableGamePanel> currentGuis
-
height
JTextField height
-
lb
JButton lb
-
level
JComboBox<String> level
-
width
JTextField width
-
-
Class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.RestartableGamePanel extends SimpleGamePanel implements Serializable
- serialVersionUID:
- -4222596642204133499L
-
Serialized Fields
-
configReturn
JPanel configReturn
-
overallStatus
JLabel overallStatus
-
parent
MineSweeper parent
A reference to the configurator window which created us. If this is null then the current window is not in control of the configurator. -
playAgain
JButton playAgain
-
reconfig
JButton reconfig
-
stats
JPanel stats
-
-
Class uk.ac.ljmu.fet.cs.csw.CompetitiveMinesweeper.gui.SimpleGamePanel extends JFrame implements Serializable
- serialVersionUID:
- -7488536857391039958L
-
Serialized Fields
-
disposeAfterRun
boolean disposeAfterRun
-
field
List<List<FlashableJLabel>> field
This is the visual representation of a MineMap. This is a completely unalterable array so it is always in alignment with MineMap's coordinates. Allows access to the individual visualisation labels on the play area. Thus allows their customisation without changing the main visualisation logic. -
flashedCol
int flashedCol
-
flashedRow
int flashedRow
-
playArea
JPanel playArea
-
toMonitor
MineMap toMonitor
-
-