Serialized Form


Package ballwar.controller

Class ballwar.controller.BallControl extends JApplet implements Serializable

serialVersionUID: 793513781091954451L

Serialized Fields

_view

BallGUI _view
The system's view (GUI).


_windowListener

WindowListener _windowListener
The window listener used by the view when the window is closed. By default, it does nothing, as needed for an applet. One of the constructors can be used to set this value to something else, as needed when run as an application.


_model

BallModel _model
The system's model.


_keysPnl

OptionPanel _keysPnl
An OptionPanel used to display the movement keys. This panel is added to the view.


Package ballwar.view

Class ballwar.view.BallGUI extends JFrame implements Serializable

serialVersionUID: -4878185240028886154L

Serialized Fields

_controlPnl

JPanel _controlPnl
The panel upon which all the game controls are located.


_canvasPnl

JPanel _canvasPnl
The panel upon which the balls are painted.


_clearAllBtn

JButton _clearAllBtn
The button to clear all the balls.


_inputTF

JTextField _inputTF
The textfield where the user can type in the classname of a new strategy.


_addBtn

JButton _addBtn
Button to add the strategy entered in inputTF to both drop lists.


_inputPnl

JPanel _inputPnl
The sub-panel that the input textfield is located.


_makeSwitcherBtn

JButton _makeSwitcherBtn
The button that makes a new ball with a SwitcherStrategy.


_switchBtn

JButton _switchBtn
The button that switches the decoree in the SwitcherStrategy to the currently selected strategey.


_switcherPnl

JPanel _switcherPnl
The sub-panel that holds the SwitcherStrategy controls.


_cbPnl

JPanel _cbPnl
The sub-panel that holds the drop-lists of strategies and their control buttons.


_list1CBox

JComboBox _list1CBox
A drop-list with all the strategies and combinations of strategies. Holds the factories that are used by the model to instantiate balls with that strategy. The factory's toString() method is called to generate the text shown on the drop list. This drop list is the list used when the user selects a strategy, except when creating a combination.


_list2CBox

JComboBox _list2CBox
Same content as _list1CBox because two lists are needed to create combinations of strategies.


_combineBtn

JButton _combineBtn
Button used to combine a selection from _list1CBox and a selection from _list2BCBox into a combined strategy.


_makeSelectedBtn

JButton _makeSelectedBtn
Button to make a ball with the selected strategy in _list1CBox.


_statusLbl

JLabel _statusLbl
Label at the bottom of the screen used to display the status of the game and the player's scores.


_makePlayerBtn

JButton _makePlayerBtn
Button to make a new player with the name typed in by the user.


_playersCBox

JComboBox _playersCBox
Drop list that shows the names of all the players made so far. Holds players and uses their toString() method to display their names.


_paintTF

JTextField _paintTF
The textfield where the user can type in the classname of a new painting strategy.


_paintSelPnl

JPanel _paintSelPnl
The sub-panel that the paint selection controls are located.


_addPaintBtn

JButton _addPaintBtn
Button to add the paint strategy entered in _paintTF to the drop list.


_paintCBox

JComboBox _paintCBox
Drop list with available paint strategies.


_bCtrlA

IBallCtrlAdapter _bCtrlA
The IBallCtrlAdapter used to control the balls.


_gCtrlA

IGameCtrlAdapter _gCtrlA
The IGameCtrlAdapter used to control the game.


_bCreateA

IBallCreateAdapter _bCreateA
IBallCreateAdapater used to create new balls.

Class ballwar.view.OptionPanel extends Box implements Serializable

serialVersionUID: 457346703351306663L

Serialized Fields

cBox

JComboBox cBox
The drop-list holds all the items.