示例#1
0
 public Card(MatchMinute matchMinute, Guid teamId, Guid playerId, CardType cardType)
 {
     this.MatchMinute = matchMinute;
     this.TeamId      = teamId;
     this.PlayerId    = playerId;
     this.CardType    = cardType;
 }
示例#2
0
        public Penalty(MatchMinute matchMinute, Guid playerId, bool isGoal, Game game, Guid teamId)
        {
            this.MatchMinute = matchMinute;
            this.TeamId      = teamId;
            this.PlayerId    = playerId;
            this.IsGoal      = isGoal;

            if (isGoal)
            {
                game.Protocol.Goals.Add(new Goal(matchMinute, teamId, playerId));
            }
        }
示例#3
0
 public Goal(MatchMinute matchMinute, Guid teamId, Guid playerId)
 {
     if (matchMinute == null || teamId == null || playerId == null)
     {
         throw new NullReferenceException();
     }
     else
     {
         this.MatchMinute = matchMinute;
         this.TeamId      = teamId;
         this.PlayerId    = playerId;
     }
 }
示例#4
0
 public Assist(MatchMinute matchMinute, Guid teamId, Guid playerId)
 {
     this.MatchMinute = matchMinute;
     this.TeamId      = teamId;
     this.PlayerId    = playerId;
 }