Exemple #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)
 {
 }
Exemple #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();
        }
Exemple #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);
 }
Exemple #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)
 {
 }
Exemple #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)
 {
 }
Exemple #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)
 {
 }
Exemple #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)
 {
 }
Exemple #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)
 {
 }