//Dev method public void PrintShotInfo(ShotInfo shotInfo) { DebugLog.DebugMessage( "pawn : " + shotInfo.pawn + " slot1 : " + shotInfo.slot_1 + " slot2 " + shotInfo.slot_2 + " eat : " + shotInfo.shot_eat + " id_game : " + shotInfo.id_game + " id_shot : " + shotInfo.id_shot + "surrender : " + shotInfo.surrender , true); }
public void CheckIfCurrentPlayerShotIsCorrectlySended(ShotInfo returnedShot) { if (returnedShot == null) { DebugLog.DebugMessage("Error, retry to send shot in API ...", true); SendCurrentPlayerShot(BattleInformation.currentPlayerShot); } else { BattleManager.NextTurn(); } }
public void ReproduceOnlinePlayerShot(ShotInfo shot) { if (shot != null) { PrintShotInfo(shot); GameBoard.ReproduceConstructedShot(shot, false, false); DebugLog.DebugMessage("Launch Send Shot in API", true); //ShotController.LaunchPostNewShot(shot); //ShotController.LaunchTaskPostNewShot(shot); } else { ShotController.LaunchGetOneShot(BattleInformation.OnlineGameInfo.id_game, BattleInformation.ShotCount); } }
public void SendCurrentPlayerShot(ShotInfo shot) { DebugLog.DebugMessage("Launch Send Shot in API", true); ShotController.LaunchPostNewShot(shot); //ShotController.LaunchTaskPostNewShot(shot); }