PsyOps

BaseMatch.cs

May 19th, 2016
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.42 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5.  
  6. namespace DevaBot.BaseDuel
  7. {
  8.     class BaseMatch
  9.     {
  10.         public BaseMatch()
  11.         {
  12.             m_AlphaTeam = new BaseTeam();
  13.             m_BravoTeam = new BaseTeam();
  14.             m_StartTime = new DateTime();
  15.             m_MatchTotalTime = new TimeSpan();
  16.         }
  17.  
  18.         private BaseTeam m_AlphaTeam;
  19.         private BaseTeam m_BravoTeam;
  20.         private DateTime m_StartTime;
  21.         private TimeSpan m_MatchTotalTime;
  22.         private short m_BaseNumber;
  23.  
  24.         /// <summary>
  25.         /// Saves the time match started
  26.         /// </summary>
  27.         public void StartMatch( short BaseNumber)
  28.         {
  29.             m_StartTime = DateTime.Now;
  30.         }
  31.  
  32.         /// <summary>
  33.         /// Stop the match and store the time
  34.         /// </summary>
  35.         public void MatchEnded()
  36.         {
  37.             m_MatchTotalTime = DateTime.Now - m_StartTime;
  38.         }
  39.  
  40.         /// <summary>
  41.         /// Alpha Team container
  42.         /// </summary>
  43.         public BaseTeam AlphaTeam
  44.         {
  45.             get { return m_AlphaTeam; }
  46.             set { m_AlphaTeam = value; }
  47.         }
  48.  
  49.         /// <summary>
  50.         /// Bravo Team container
  51.         /// </summary>
  52.         public BaseTeam BravoTeam
  53.         {
  54.             get { return m_BravoTeam; }
  55.             set { m_BravoTeam = value; }
  56.         }
  57.     }
  58. }
Advertisement
Add Comment
Please, Sign In to add comment