Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace DevaBot.BaseDuel
- {
- class BaseMatch
- {
- public BaseMatch()
- {
- m_AlphaTeam = new BaseTeam();
- m_BravoTeam = new BaseTeam();
- m_StartTime = new DateTime();
- m_MatchTotalTime = new TimeSpan();
- }
- private BaseTeam m_AlphaTeam;
- private BaseTeam m_BravoTeam;
- private DateTime m_StartTime;
- private TimeSpan m_MatchTotalTime;
- private short m_BaseNumber;
- /// <summary>
- /// Saves the time match started
- /// </summary>
- public void StartMatch( short BaseNumber)
- {
- m_StartTime = DateTime.Now;
- }
- /// <summary>
- /// Stop the match and store the time
- /// </summary>
- public void MatchEnded()
- {
- m_MatchTotalTime = DateTime.Now - m_StartTime;
- }
- /// <summary>
- /// Alpha Team container
- /// </summary>
- public BaseTeam AlphaTeam
- {
- get { return m_AlphaTeam; }
- set { m_AlphaTeam = value; }
- }
- /// <summary>
- /// Bravo Team container
- /// </summary>
- public BaseTeam BravoTeam
- {
- get { return m_BravoTeam; }
- set { m_BravoTeam = value; }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment