vooga.users.ui
Class UsersGUI

java.lang.Object
  extended by vooga.arcade.listeners.arcadeListeners.ArcadeEventAdapter
      extended by vooga.users.ui.UsersGUI
All Implemented Interfaces:
IArcadeEventListener

public class UsersGUI
extends ArcadeEventAdapter

This class is the coordination point between the Arcade and the various UI elements of the users group. It handles the creation of all of our tabs, buttons, and windows. It also listens for arcade events that require a response from the users group.

Author:
Alex Edelsburg, Matt Prorok, Stephanie Chang

Constructor Summary
UsersGUI(IVoogaGUI ui)
          Default constructor as per the Arcade's API.
 
Method Summary
 void createLoginScreen()
          Draws the login screen using the VoogaGUI createNewFrame method
 void endArcade(EndArcadeEvent event)
          Contains actions performed with the EndArcadeEvent is fired.
 UserDatabaseInterface makeTestingDB()
          Makes a test user database
 void selectGame(SelectGameEvent event)
          Contains actions performed with the SelectGameEvent is fired.
 void showAllUsersTab()
          Creates & displays a user's preferences
 void startArcade(StartArcadeEvent event)
          Contains actions performed with the StartArcadeEvent is fired.
 void startLogin(StartLoginEvent event)
          Contains actions performed with the StartLoginEvent is fired.
 
Methods inherited from class vooga.arcade.listeners.arcadeListeners.ArcadeEventAdapter
closeMultiplayerLobby, endGame, endMultiplayerGame, receiveArcadeEvent, startGame, startMultiplayerGame, startMultiplayerLobby
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UsersGUI

public UsersGUI(IVoogaGUI ui)
Default constructor as per the Arcade's API.

Parameters:
ui - the Arcade UI
Method Detail

createLoginScreen

public void createLoginScreen()
Draws the login screen using the VoogaGUI createNewFrame method


makeTestingDB

public UserDatabaseInterface makeTestingDB()
Makes a test user database

Returns:
a test user database

endArcade

public void endArcade(EndArcadeEvent event)
Description copied from interface: IArcadeEventListener
Contains actions performed with the EndArcadeEvent is fired. Takes in the EndArcadeEvent with the information pertaining to this event.

Specified by:
endArcade in interface IArcadeEventListener
Overrides:
endArcade in class ArcadeEventAdapter

startArcade

public void startArcade(StartArcadeEvent event)
Description copied from interface: IArcadeEventListener
Contains actions performed with the StartArcadeEvent is fired. Takes in the StartArcadeEvent with the information pertaining to this event.

Specified by:
startArcade in interface IArcadeEventListener
Overrides:
startArcade in class ArcadeEventAdapter

showAllUsersTab

public void showAllUsersTab()
Creates & displays a user's preferences


startLogin

public void startLogin(StartLoginEvent event)
Description copied from interface: IArcadeEventListener
Contains actions performed with the StartLoginEvent is fired. Takes in the StartLoginEvent with the information pertaining to this event.

Specified by:
startLogin in interface IArcadeEventListener
Overrides:
startLogin in class ArcadeEventAdapter

selectGame

public void selectGame(SelectGameEvent event)
Description copied from interface: IArcadeEventListener
Contains actions performed with the SelectGameEvent is fired. Takes in the SelectGameEvent with the information pertaining to this event.

Specified by:
selectGame in interface IArcadeEventListener
Overrides:
selectGame in class ArcadeEventAdapter