megamek.client.ui.AWT
Class MegaMekGUI

java.lang.Object
  extended by megamek.client.ui.AWT.MegaMekGUI
All Implemented Interfaces:
IMegaMekGUI

public class MegaMekGUI
extends java.lang.Object
implements IMegaMekGUI


Field Summary
protected  java.awt.event.ActionListener actionListener
           
 Client client
           
 java.awt.Frame frame
           
 Server server
           
 
Constructor Summary
MegaMekGUI()
           
 
Method Summary
 void connect()
          Connect to to a game and then launch the chat lounge.
 void connectBot()
           
 void host()
          Start instances of both the client and the server.
 void loadGame()
           
(package private)  void quit()
          Called when the quit buttons is pressed or the main menu is closed.
 void scenario()
          Host a game constructed from a scenario file
(package private)  void showAbout()
          Called when the user selects the "Help->About" menu item.
 void showEditor()
          Display the board editor.
 void showEditorOpen()
          Display the board editor and open an "open" dialog.
 void showGameOptions()
          Display the game options dialog.
(package private)  void showHelp()
          Called when the user selects the "Help->Contents" menu item.
 void showMainMenu()
          Display the main menu.
(package private)  void showSettings()
          Called when the user selects the "View->Client Settings" menu item.
 void start(java.lang.String[] args)
           
(package private)  void unlaunch()
          Un-hides the main menu and tries to clean up the client or server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

frame

public java.awt.Frame frame

client

public Client client

server

public Server server

actionListener

protected java.awt.event.ActionListener actionListener
Constructor Detail

MegaMekGUI

public MegaMekGUI()
Method Detail

start

public void start(java.lang.String[] args)
Specified by:
start in interface IMegaMekGUI

showMainMenu

public void showMainMenu()
Display the main menu.


showGameOptions

public void showGameOptions()
Display the game options dialog.


showEditor

public void showEditor()
Display the board editor.


showEditorOpen

public void showEditorOpen()
Display the board editor and open an "open" dialog.


host

public void host()
Start instances of both the client and the server.


loadGame

public void loadGame()

scenario

public void scenario()
Host a game constructed from a scenario file


connect

public void connect()
Connect to to a game and then launch the chat lounge.


connectBot

public void connectBot()

showAbout

void showAbout()
Called when the user selects the "Help->About" menu item.


showHelp

void showHelp()
Called when the user selects the "Help->Contents" menu item.


showSettings

void showSettings()
Called when the user selects the "View->Client Settings" menu item.


quit

void quit()
Called when the quit buttons is pressed or the main menu is closed.


unlaunch

void unlaunch()
Un-hides the main menu and tries to clean up the client or server.