예제 #1
0
    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);
    }
예제 #2
0
    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);
    }
예제 #3
0
    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);
    }