Ejemplo n.º 1
0
 /// <summary>
 /// Initiiert ein neues Fußballspiel
 /// </summary>
 /// <param name="matchID">ID des Spiels</param>
 /// <param name="teamA">Heimteam</param>
 /// <param name="teamB">Auswärtsteam</param>
 public FootballMatch(int matchID, FootballTeam teamA, FootballTeam teamB)
     : this(matchID, teamA, teamB, 90)
 {
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Initiiert ein neues Fußballspiel
        /// </summary>
        /// <param name="matchID">ID des Spiels</param>
        /// <param name="teamA">Heimteam</param>
        /// <param name="teamB">Auswärtsteam</param>
        /// <param name="date">Spieldatum</param>
        /// <param name="minutes">Anzahl Spielminuten</param>
        public FootballMatch(int matchID, FootballTeam teamA, FootballTeam teamB, DateTime date, int minutes)
            : base(matchID, String.Format("{0}-{1}", teamA.Name, teamB.Name))
        {
            TeamA = teamA;
            TeamB = teamB;
            _Minutes = minutes;
            Date = date;

            Reset();
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Tauscht die beiden Teams
 /// </summary>
 public void SwapTeams()
 {
     var oldTeamA = TeamA;
     var oldResultA = ResultA;
     TeamA = TeamB;
     ResultA = ResultB;
     TeamB = oldTeamA;
     ResultB = oldResultA;
     Name = String.Format("{0}-{1}", TeamA, TeamB);
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Initiiert ein neues Fußballspiel
 /// </summary>
 /// <param name="matchID">ID des Spiels</param>
 /// <param name="teamA">Heimteam</param>
 /// <param name="teamB">Auswärtsteam</param>
 /// <param name="minutes">Anzahl Spielminuten</param>
 public FootballMatch(int matchID, FootballTeam teamA, FootballTeam teamB, int minutes)
     : this(matchID, teamA, teamB, Datumsrechner.Now, minutes)
 {
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Initiiert ein neues Fußballspiel
 /// </summary>
 /// <param name="matchID">ID des Spiels</param>
 /// <param name="teamA">Heimteam</param>
 /// <param name="teamB">Auswärtsteam</param>
 /// <param name="date">Spieldatum</param>
 public FootballMatch(int matchID, FootballTeam teamA, FootballTeam teamB, DateTime date)
     : this(matchID, teamA, teamB, date, 90)
 {
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Initiiert ein neues Fußballspiel
 /// </summary>
 /// <param name="matchID">ID des Spiels</param>
 /// <param name="teamA">Heimteam</param>
 /// <param name="teamB">Auswärtsteam</param>
 public FootballMatch(int matchID, FootballTeam teamA, FootballTeam teamB)
     : this(matchID, teamA, teamB, 90)
 {
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Initiiert ein neues Fußballspiel
 /// </summary>
 /// <param name="matchID">ID des Spiels</param>
 /// <param name="teamA">Heimteam</param>
 /// <param name="teamB">Auswärtsteam</param>
 /// <param name="minutes">Anzahl Spielminuten</param>
 public FootballMatch(int matchID, FootballTeam teamA, FootballTeam teamB, int minutes)
     : this(matchID, teamA, teamB, Datumsrechner.Now, minutes)
 {
 }
Ejemplo n.º 8
0
 /// <summary>
 /// Initiiert ein neues Fußballspiel
 /// </summary>
 /// <param name="matchID">ID des Spiels</param>
 /// <param name="teamA">Heimteam</param>
 /// <param name="teamB">Auswärtsteam</param>
 /// <param name="date">Spieldatum</param>
 public FootballMatch(int matchID, FootballTeam teamA, FootballTeam teamB, DateTime date)
     : this(matchID, teamA, teamB, date, 90)
 {
 }