コード例 #1
0
ファイル: Card.cs プロジェクト: ooleoole/Team-Rocket
 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
ファイル: Goal.cs プロジェクト: ooleoole/Team-Rocket
 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;
 }