public LocalMatchController(Match match, UserInput userInput) { m_match = match; m_inputCtrl = new InputController(userInput, 0); var initialData = new PlayersProvider(); var players = initialData.GetPlayers(match); m_match.SetPlayers(players); }
public ClientMatchController(Match match, UserInput userInput) { m_match = match; m_inputCtrl = new InputController(userInput, 0); m_gameClient = GameClientFactory.Create(); var initialData = new PlayersProvider(); var players = initialData.GetPlayers(match); m_match.SetPlayers(players); }
public Match() { m_ball = BallProvider.GetBall(); m_messageInterpreter = new MessageInterpreter(); m_physics = new ssg.Physics.SoccerPhysics(m_ball); m_physics.AddCollider(((Ball)m_ball).Collider); var playersProvider = new PlayersProvider(); var players = playersProvider.GetPlayers(this); SetPlayers(players); }