private void start(EValuationBasis valuationBasis, UserPlayer userPlayer, AIPlayer aiPlayer) { _valuationBasis = valuationBasis; initialize(); _user = userPlayer; _ai = aiPlayer; _user.Start(_ai); _ai.Start(_user); StartEvent.Invoke(_valuationBasis, _user, _ai); }
private void onStart(BoardGame.EValuationBasis valuationBasis, BoardGame.UserPlayer user, BoardGame.AIPlayer ai) { TurnPanel.OnStart(); CriterionPanel.Show(); BoardPanel.Show(); PresentPanel.OnStart(user, ai); CardPanel.OnStart(user, ai); PersonalInfoPanel.OnStart(valuationBasis, user, ai); BlockingPanel.Show(); GameStatePanel.Hide(); Show(); GameStatePanel.OnStart(); }
public void Start(EValuationBasis valuationBasis, int playerId) { if (EValuationBasis.MAX == valuationBasis) { Log.Error("invalid valuation basis"); return; } if (false == ExtBoardGamePlayer.isValid(playerId)) { Log.Error(string.Format("invalid player id ({0})", playerId)); return; } UserPlayer userPlayer = new UserPlayer(this); AIPlayer aiPlayer = new AIPlayer(this, playerId); start(valuationBasis, userPlayer, aiPlayer); }
public void Start(EValuationBasis valuationBasis, UserPlayer userPlayer, AIPlayer aiPlayer) { if (EValuationBasis.MAX == valuationBasis) { Log.Error("invalid valuation basis"); return; } if (null == userPlayer) { Log.Error("not found board game.user player"); return; } if (null == aiPlayer) { Log.Error("not found board game.ai player"); return; } start(valuationBasis, userPlayer, aiPlayer); }
public void OnStart(BoardGame.EValuationBasis valuationBasis, BoardGame.UserPlayer user, BoardGame.AIPlayer ai) { if (null != _userInfoPanel) { _userInfoPanel.Set(valuationBasis, user); _userInfoPanel.Show(); } else { Log.Error("not found user info panel"); _userInfoPanel.Hide(); } if (null != _aiInfoPanel) { _aiInfoPanel.Set(valuationBasis, ai); _aiInfoPanel.Show(); } else { Log.Error("not found ai info panel"); _aiInfoPanel.Hide(); } }
public void OnStart(BoardGame.UserPlayer user, BoardGame.AIPlayer ai) { if (null != _userPresentPanel) { _userPresentPanel.Set(user); _userPresentPanel.Show(); } else { Log.Error("not found user present panel"); _userPresentPanel.Hide(); } if (null != _aiPresentPanel) { _aiPresentPanel.Set(ai); _aiPresentPanel.Show(); } else { Log.Error("not found ai present panel"); _aiPresentPanel.Hide(); } }