Ejemplo n.º 1
0
 void ISessionEventListener.OnSessionEnded()
 {
     sessionControl = null;
     control = null;
     playerHelper = null;
     cardHelper = null;
 }
Ejemplo n.º 2
0
 void IPlayerSessionEventListener.OnJoinedGame(IPlayerControl control)
 {
     this.control = control;
     cardHelper = new CardHelper(control);
     switch(control.Game.Players.Count)
     {
     case 2:
         playerHelper = new TwoPlayersPlayerHelper(control);
         break;
     case 3:
         playerHelper = new ThreePlayersPlayerHelper(control);
         break;
     default:
         playerHelper = new StandardPlayerHelper(control);
         break;
     }
     triedCards = new List<int>();
     triedAbilities = new List<CharacterType>();
 }
Ejemplo n.º 3
0
 void ISessionEventListener.OnGameEnded()
 {
     control = null;
     playerHelper = null;
     cardHelper = null;
 }