|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcore.LectureGame
public class LectureGame
COntains the application entry points and features parsing and high level method calls for further processing.
Nested Class Summary | |
---|---|
private class |
LectureGame.LoginWindowAdapter
|
Field Summary | |
---|---|
protected ClientNetworkThread |
clientNetwork
|
protected boolean |
connectionOK
|
protected int |
currentModeActivated
|
protected GraphicsFacade |
graphics
|
protected int |
inputState
|
protected boolean |
lastQuestionInitialized
|
protected ArrayList |
loggedOnUsers
|
protected JFrame |
loginFrame
|
protected LoginPanel |
loginPanel
|
protected Thread |
networkThread
|
Constructor Summary | |
---|---|
LectureGame()
Initiates the program and login GUI. |
Method Summary | |
---|---|
int |
getGameMode()
Returns the integer indicatring the current game mode. |
ClientNetworkThread |
getNetworkConnection()
|
void |
launchGame(boolean isFullScreen,
Dimension dimension,
String lectureCode)
Hides the login window, initiates the selected lecture and intitates the graphicsFacade class for future graphical processing. |
void |
login(String username,
String password)
|
static void |
main(String[] args)
|
void |
netSend(String string)
|
void |
networkFailure()
This method is called if the network connection is not properly initiated. |
void |
networkStatus(boolean status)
|
void |
notifyReadyToReceive()
|
void |
parse(String received)
Parses the input strings nad calls the appropriate method with appopriate inout. |
void |
setGameMode(int mode)
Sets the current gameMode. |
void |
setLastQuestionInitialized(boolean isInitialized)
Called before posing the last question in order for the logic of the program to know when to display the high score list. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean connectionOK
protected ClientNetworkThread clientNetwork
protected Thread networkThread
protected ArrayList loggedOnUsers
protected GraphicsFacade graphics
protected int inputState
protected JFrame loginFrame
protected LoginPanel loginPanel
protected int currentModeActivated
protected boolean lastQuestionInitialized
Constructor Detail |
---|
public LectureGame()
Method Detail |
---|
public void launchGame(boolean isFullScreen, Dimension dimension, String lectureCode)
isFullScreen
- dimension
- lectureCode
- public void setLastQuestionInitialized(boolean isInitialized)
isInitialized
- public void setGameMode(int mode)
mode
- public int getGameMode()
public void networkFailure()
public void parse(String received)
received
- public void login(String username, String password)
public void notifyReadyToReceive()
public void networkStatus(boolean status)
public static void main(String[] args)
public ClientNetworkThread getNetworkConnection()
public void netSend(String string)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |