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(); }
// constructor public BoardGameExam(EType type, int id, int npcId, int rivalId, bool isFirst) : base(type, id, npcId, rivalId, isFirst) { switch (type) { case EType.BOARD_GAME_TRICKER: _valuationBasis = BoardGame.EValuationBasis.Tricker; break; case EType.BOARD_GAME_POLITICIAN: _valuationBasis = BoardGame.EValuationBasis.Politician; break; default: Log.Error(string.Format("not converted from ExamType({0}) to BoardGame.EValuationBasis", type)); break; } if (false == ExtOneToOneExam.isValid(id)) { Log.Error(string.Format("invalid one-to-one exam.id : {0}", id)); } else { _exam = Manager.Instance.DT.OneToOneExam[id]; } _userName = Manager.Instance.Object.MainCharacter.Name; if (false == ExtCharacter.IsValid(_rival.characterId)) { Log.Error(string.Format("invalid character id: {0}", _rival.characterId)); } else { _rivalName = Manager.Instance.DT.Character[_rival.characterId].name; } Manager.Instance.Object.BoardGameMode.EndEvent.Attach(onEnd); }
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 Set(BoardGame.EValuationBasis valuationBasis, BoardGame.Player player) { if (null == player) { Log.Error("not found player"); return; } setNameText(player.Name); switch (valuationBasis) { case BoardGame.EValuationBasis.Tricker: setTrickerStats(player); break; case BoardGame.EValuationBasis.Politician: setPolticianStats(player); break; default: break; } }