public void OnStart(Combat.UserPlayer user, Combat.AIPlayer ai) { _userName = user.Name; _aiName = ai.Name; setSuffixText(Def.COMBAT_COMMENT_PLAYER_TURN); hideTexts(); }
private void start(UserPlayer userPlayer, AIPlayer aiPlayer) { initialize(); _user = userPlayer; _ai = aiPlayer; _user.Start(_ai); _ai.Start(_user); StartEvent.Invoke(_user, _ai); }
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); }
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(); }
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); }