Esempio n. 1
0
 public Team(World world, string name, TeamStrategy strategy, IEnumerable<SquadMember> squad)
 {
     World = world;
     Name = name;
     Strategy = strategy;
     Squad = squad.ToList();
 }
Esempio n. 2
0
 public Player(World world, string name, int defensiveSkills, int offensiveSkills, int form)
 {
     World = world;
     Name = name;
     DefensiveSkills = defensiveSkills;
     OffensiveSkills = offensiveSkills;
     Form = form;
 }
Esempio n. 3
0
        public void SetAsDefault(World currentDefaultWorld)
        {
            if (currentDefaultWorld != null)
            {
                currentDefaultWorld.IsDefault = false;
            }

            IsDefault = true;
        }
        public int CreateWorld(string name, int startYear)
        {
            var world = new World(name, DateTime.Now, startYear);

            Context.Worlds.Add(world);
            Context.SaveChanges();

            return world.Id;
        }
Esempio n. 5
0
 private Fixture(World world, int tournamentSeasonId, DateTime date, Team team1, Team team2, bool isNeutralGround, bool requiresExtraTime)
 {
     TournamentSeasonId = tournamentSeasonId;
     World = world;
     Date = date;
     Team1 = team1;
     Team2 = team2;
     Team1Name = team1.Name;
     Team2Name = team2.Name;
     IsNeutralGround = isNeutralGround;
     RequiresExtraTime = requiresExtraTime;
 }
Esempio n. 6
0
 public NationalLeague(World world, string name)
     : base(world, name)
 {
     Divisions = new List<Tournament>();
 }
Esempio n. 7
0
 protected Competition(World world, string name)
 {
     World = world;
     Name = name;
 }
 public EuroLeagueBuilder(World world)
 {
     this.world = world;
 }