|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.lip6.sma.simulacion.app.ApplicationImpl
fr.lip6.sma.simulacion.app.GameApplicationImpl
public abstract class GameApplicationImpl
Classe de base pour les applications pour jouer à la simulation. Gère la liste des joueurs sur le réseau.
| Field Summary | |
|---|---|
private AgentListManager |
mAgentListManager
Référence sur le gestionnaire pour la liste des agents |
private LocalPlayer |
mLocalPlayer
Référence sur le joueur local. |
private Server |
mServer
Référence sur le serveur |
| Constructor Summary | |
|---|---|
GameApplicationImpl(String inConfigurationPath)
Constructeur à partir du chemin de la configuration. |
|
GameApplicationImpl(String inConfigurationPath,
String[] inArgs)
Constructeur à partir du chemin de la configuration et de paramètres supplémentaires. |
|
| Method Summary | |
|---|---|
void |
finishSetup()
Méthode appelée par la fenêtre de configuration pour indiquer que la configuration est terminée. |
AgentListManager |
getAgentListManager()
Accesseur sur le gestionnaire de la liste des agents. |
LocalPlayer |
getLocalPlayer()
Accesseur sur le joueur local. |
Player |
getPlayer(String inPlayerName)
Accesseur sur un joueur donné à partir de son nom. |
void |
init(String inAgentName)
Configure l'application en créant l'agent local et en l'enregistrant auprès du serveur et de la liste. |
void |
quit()
Method called to quit the application. |
protected void |
setupServer()
Démarre le serveur. |
protected void |
start()
Démarre le jeu. |
protected abstract void |
startGame()
Affiche la fenêtre de sélection (sauf si l'avatar a déjà été choisi) et ouvre la fenêtre principale. |
| Methods inherited from class fr.lip6.sma.simulacion.app.ApplicationImpl |
|---|
getAgentConfig, getAvatar, getAvatars, getConfiguration, getPlayerAgentClass, getPlayerAgentNames, getPlayerNameFromAvatarName, getSplashWindow, getTracker, loadImages, setupApplication |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface fr.lip6.sma.simulacion.app.GameApplication |
|---|
getConfiguration, getGameController, getGameModel |
| Methods inherited from interface fr.lip6.sma.simulacion.app.Application |
|---|
getAgentConfig, getAvatar, getAvatars, getPlayerAgentClass, getPlayerAgentNames, getPlayerNameFromAvatarName, getTracker |
| Field Detail |
|---|
private Server mServer
private AgentListManager mAgentListManager
private LocalPlayer mLocalPlayer
| Constructor Detail |
|---|
public GameApplicationImpl(String inConfigurationPath)
inConfigurationPath - chemin vers la configuration
public GameApplicationImpl(String inConfigurationPath,
String[] inArgs)
inConfigurationPath - chemin vers la configuration.inArgs - paramËtres supplÈmentaires.| Method Detail |
|---|
public final LocalPlayer getLocalPlayer()
getLocalPlayer in interface GameApplicationnull si aucun joueur
n'a été défini.public final AgentListManager getAgentListManager()
getAgentListManager in interface GameApplicationpublic final Player getPlayer(String inPlayerName)
getPlayer in interface GameApplicationinPlayerName - le nom du joueur que l'on cherche.
null si le joueur n'a pu être trouvé.protected void setupServer()
setupServer in class ApplicationImplprotected final void start()
start in class ApplicationImplpublic void init(String inAgentName)
init in interface GameApplicationinAgentName - nom de l'agent local.protected abstract void startGame()
public void finishSetup()
finishSetup in interface GameApplicationpublic void quit()
quit in interface Applicationquit in class ApplicationImpl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||