예제 #1
0
 public CompetitionPlayer(Player parent, Competition competition, CompetitionTeam competitionTeam, PlayerStats stats, string name, int age, int offense, int defense, int goaltending, int?firstYear, int?lastYear)
 {
     Parent          = parent;
     Competition     = competition;
     CompetitionTeam = competitionTeam;
     Name            = name;
     Age             = age;
     Offense         = offense;
     Defense         = defense;
     Goaltending     = goaltending;
     FirstYear       = firstYear;
     LastYear        = lastYear;
     Stats           = stats;
 }
예제 #2
0
 public CompetitionGamePlayer(Game g, Player p, Team team, int?year, CompetitionPlayer competitionParent, CompetitionTeam competitionTeam)
 {
     Stats             = new PlayerStats();
     Name              = p.Name;
     Age               = p.Age;
     Offense           = p.Offense;
     Defense           = p.Defense;
     Goaltending       = p.Goaltending;
     p.FirstYear       = year;
     p.LastYear        = year;
     Game              = g;
     Parent            = p;
     Team              = team;
     CompetitionParent = competitionParent;
     CompetitionTeam   = competitionTeam;
 }