public class WSCsnlPlayer
extends net.csn.dr2d.wscp.CnslPlayerAcknowledgement
implements net.csn.dr2d.wscp.CnslPlayerActions
Implémentation minimaliste d'une console
qui répond à chaque sollicitation du serveur de jeu DR2D.
webLink strat-num.fr/dr2d
lastRevision septembre 2015
Constructor and Description |
---|
WSCsnlPlayer() |
Modifier and Type | Method and Description |
---|---|
void |
onGameFinalisation(net.csn.dr2d.wscp.CnslPlayerArgs_GameFinalisation args)
Dernier appel du jeu.
|
void |
onGameInitialisation(net.csn.dr2d.wscp.CnslPlayerArgs_GameInitialisation args) |
void |
onInitDeclareBoard(net.csn.dr2d.wscp.CnslPlayerArgs_InitDeclareBoard args) |
void |
onInitLocateArtefacts(net.csn.dr2d.wscp.CnslPlayerArgs_InitLocateArtefacts args) |
void |
onInitPlayerFeatures(net.csn.dr2d.wscp.CnslPlayerArgs_InitPlayerFeatures args)
Troisième appel du jeu.
|
void |
onInitPlayerLocalization(net.csn.dr2d.wscp.CnslPlayerArgs_InitPlayerLocalization args)
Quatrième appel du jeu.
|
void |
onInitStatusOfCompetitors(net.csn.dr2d.wscp.CnslPlayerArgs_InitStatusOfCompetitors args) |
void |
onQuestAchieved(net.csn.dr2d.wscp.CnslPlayerArgs_QuestAchieved args)
Le jeu est fini pour les mécanoïds listés, c.a.d. les joueurs ayant achevés leur quête.
|
void |
onQuestStart(net.csn.dr2d.wscp.CnslPlayerArgs_QuestStart args) |
void |
onRoundBoardAction(net.csn.dr2d.wscp.CnslPlayerArgs_RoundBoardAction args)
Reçoit la définition de l'action qui s'est produite sur le plateau.
|
void |
onRoundBoardMovement(net.csn.dr2d.wscp.CnslPlayerArgs_RoundBoardMovement args) |
void |
onRoundRequireCartouche(net.csn.dr2d.wscp.CnslPlayerArgs_RoundRequireCartouche args)
Le joueur doit retourner un cartouche composé de zéro à cinq mouvements
qu'il souhaite voir se réaliser.
|
void |
onRoundRobotMovement(net.csn.dr2d.wscp.CnslPlayerArgs_RoundRobotMovement args) |
void |
onRoundStatusOfCompetitors(net.csn.dr2d.wscp.CnslPlayerArgs_RoundStatusOfCompetitors args) |
public void onGameInitialisation(net.csn.dr2d.wscp.CnslPlayerArgs_GameInitialisation args)
onGameInitialisation
in interface net.csn.dr2d.wscp.CnslPlayerActions
public void onInitDeclareBoard(net.csn.dr2d.wscp.CnslPlayerArgs_InitDeclareBoard args)
onInitDeclareBoard
in interface net.csn.dr2d.wscp.CnslPlayerActions
public void onInitPlayerFeatures(net.csn.dr2d.wscp.CnslPlayerArgs_InitPlayerFeatures args)
onInitPlayerFeatures
in interface net.csn.dr2d.wscp.CnslPlayerActions
args,
- Paramètres en lecture seule : mcndId
Paramètres modifiables : pseudo, argbBackColor
Rq: Le pseudo est tronqué aprés 11 caractères.public void onInitPlayerLocalization(net.csn.dr2d.wscp.CnslPlayerArgs_InitPlayerLocalization args)
onInitPlayerLocalization
in interface net.csn.dr2d.wscp.CnslPlayerActions
args,
- Paramètres en lecture seule : availableTiles
Paramètres modifiables : locX, locY, azimuthpublic void onInitLocateArtefacts(net.csn.dr2d.wscp.CnslPlayerArgs_InitLocateArtefacts args)
onInitLocateArtefacts
in interface net.csn.dr2d.wscp.CnslPlayerActions
public void onInitStatusOfCompetitors(net.csn.dr2d.wscp.CnslPlayerArgs_InitStatusOfCompetitors args)
onInitStatusOfCompetitors
in interface net.csn.dr2d.wscp.CnslPlayerActions
public void onQuestStart(net.csn.dr2d.wscp.CnslPlayerArgs_QuestStart args)
onQuestStart
in interface net.csn.dr2d.wscp.CnslPlayerActions
public void onRoundRequireCartouche(net.csn.dr2d.wscp.CnslPlayerArgs_RoundRequireCartouche args)
onRoundRequireCartouche
in interface net.csn.dr2d.wscp.CnslPlayerActions
public void onRoundRobotMovement(net.csn.dr2d.wscp.CnslPlayerArgs_RoundRobotMovement args)
onRoundRobotMovement
in interface net.csn.dr2d.wscp.CnslPlayerActions
public void onRoundBoardMovement(net.csn.dr2d.wscp.CnslPlayerArgs_RoundBoardMovement args)
onRoundBoardMovement
in interface net.csn.dr2d.wscp.CnslPlayerActions
public void onRoundStatusOfCompetitors(net.csn.dr2d.wscp.CnslPlayerArgs_RoundStatusOfCompetitors args)
onRoundStatusOfCompetitors
in interface net.csn.dr2d.wscp.CnslPlayerActions
public void onRoundBoardAction(net.csn.dr2d.wscp.CnslPlayerArgs_RoundBoardAction args)
onRoundBoardAction
in interface net.csn.dr2d.wscp.CnslPlayerActions
args,
- Paramètres en lecture seule : actionName, actionArgs
Paramètres modifiables : aucunpublic void onQuestAchieved(net.csn.dr2d.wscp.CnslPlayerArgs_QuestAchieved args)
onQuestAchieved
in interface net.csn.dr2d.wscp.CnslPlayerActions
args,
- les arguments en lecture seule (si present) et ceux qui peuvent être modifiés (si présent)public void onGameFinalisation(net.csn.dr2d.wscp.CnslPlayerArgs_GameFinalisation args)
onGameFinalisation
in interface net.csn.dr2d.wscp.CnslPlayerActions
args,
- les arguments en lecture seule (si present) et ceux qui peuvent être modifiés (si présent)