Ejemplo n.º 1
0
 public Reception(int completions, int attempts, int interceptions, int touchdowns, double yardsInAir, double yardsAfterCatch)
 {
     quarterback          = null;
     catcher              = null;
     nearestDefender      = null;
     this.completions     = completions;
     this.attempts        = attempts;
     this.interceptions   = interceptions;
     this.yardsAfterCatch = yardsAfterCatch;
     this.yardsInAir      = yardsInAir;
     this.touchdowns      = touchdowns;
 }
Ejemplo n.º 2
0
 public Reception(Thrower quarterback, RouteRunner catcher, BaseDefender defender, BaseDefender tackler, double yardsInAir, double yardsAfterCatch, bool completion, bool interception, bool touchdown)
 {
     this.quarterback     = quarterback;
     this.catcher         = catcher;
     this.tackler         = tackler;
     this.nearestDefender = defender;
     this.yardsAfterCatch = yardsAfterCatch;
     this.yardsInAir      = yardsInAir;
     completions          = completion ? 1 : 0;
     interceptions        = interception ? 1 : 0;
     touchdowns           = touchdown ? 1 : 0;
     attempts             = 1;
 }