Example #1
0
 public Player(Game game, SessionPlayer parent, Role role, CharacterType character)
 {
     this.game = game;
     this.parent = parent;
     control = new PlayerControl(this);
     this.role = role;
     this.character = Character.GetCharacter(this, character);
     additionalCharacters = new List<CharacterType>();
     lifePoints = MaxLifePoints;
     hand = new List<Card>();
     table = new List<TableCard>();
     isAlive = true;
     isWinner = false;
     bangsPlayed = 0;
     turnsPlayed = 0;
     privateView = new PrivatePlayerViewProxy(this);
 }
Example #2
0
 public void ResetControl()
 {
     control.Disconnect();
     control = new PlayerControl(this);
 }