public void RollAll() { //OnMessage("Executing RollAll()", MessageLogEventArgs.LevelType.INFO); DiceManager.RollAll(); OnMessage(String.Format("{0} roll all => {1}", _playerManager.GetActivePlayer().Name, DiceManager.ToString())); //OnMessage("Roll All " + DiceManager.ToString()); }
public GameManager() { BaconPointToWin = Properties.Settings.Default.BaconPointToWin; int nbPlayer = Properties.Settings.Default.NumberPlayer; int initialHitPoint = Properties.Settings.Default.InitialHitPoint; int initialBaconPoint = Properties.Settings.Default.InitialBaconPoint; PlayerManager = new PlayerManager(nbPlayer, initialHitPoint, initialBaconPoint); DiceManager = new DiceManager(12); // S'abonner quand on a fait le tour de tous les joueurs. PlayerManager.ActivePlayerChangedEvent += HandleActivePlayerChanged; PlayerManager.EveryonePlayedEvent += HandleEveryonePlayed; }
public void Reroll() { DiceManager.RollUnlocked(); OnMessage(String.Format("{0} reroll => {1}", _playerManager.GetActivePlayer().Name, DiceManager.ToString())); //OnMessage("Reroll " + DiceManager.ToString()); }