示例#1
0
    public void OnStart(Combat.UserPlayer user, Combat.AIPlayer ai)
    {
        _userName = user.Name;
        _aiName   = ai.Name;

        setSuffixText(Def.COMBAT_COMMENT_PLAYER_TURN);

        hideTexts();
    }
示例#2
0
        private void start(UserPlayer userPlayer, AIPlayer aiPlayer)
        {
            initialize();

            _user = userPlayer;
            _ai   = aiPlayer;

            _user.Start(_ai);
            _ai.Start(_user);

            StartEvent.Invoke(_user, _ai);
        }
示例#3
0
        public void Start(int playerId)
        {
            if (false == ExtCombatPlayer.IsValid(playerId))
            {
                Log.Error(string.Format("invalid player id: {0}", playerId));
                return;
            }

            UserPlayer user = new UserPlayer(this);
            AIPlayer   ai   = new AIPlayer(this, playerId);

            start(user, ai);
        }
示例#4
0
    private void onStart(Combat.UserPlayer user, Combat.AIPlayer ai)
    {
        TurnPanel.OnStart();
        CommentPanel.OnStart(user, ai);
        PresentPanel.OnStart(user, ai);
        PersonalInfoPanel.OnStart(user, ai);
        // attack button
        // trick button
        BlockingPanel.Show();
        GameStatePanel.Hide();

        Show();

        GameStatePanel.OnStart();
    }
示例#5
0
        public void Start(UserPlayer userPlayer, AIPlayer aiPlayer)
        {
            if (null == userPlayer)
            {
                Log.Error("not found user player");
                return;
            }

            if (null == aiPlayer)
            {
                Log.Error("not found ai player");
                return;
            }

            start(userPlayer, aiPlayer);
        }