Exemple #1
0
 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());
 }
Exemple #2
0
        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;
        }
Exemple #3
0
        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;
        }
Exemple #4
0
 public void Reroll()
 {
     DiceManager.RollUnlocked();
     OnMessage(String.Format("{0} reroll => {1}", _playerManager.GetActivePlayer().Name, DiceManager.ToString()));
     //OnMessage("Reroll " + DiceManager.ToString());
 }