示例#1
0
 //---------------------------------------------
 //---------------------------------------------
 //---------------------------------------------
 /// <summary>
 /// Throne Position Label Constructor.
 /// </summary>
 public ThronePositionLabel(IRes myRes, ThroneLabel myThroneLabel,
                            ThronePositions myPosition) :
     base(myRes, LabelControlSpecies.ThronePositionLabel)
 {
     ThroneLabel = myThroneLabel;
     Position    = myPosition;
     InitializeComponent();
 }
示例#2
0
 //---------------------------------------------
 #region Constructors Region
 /// <summary>
 /// Throne Label.
 /// </summary>
 public ThroneLabel(IRes myRes, SandBoxBase myFather,
                    ThronePositions thronePosition,
                    bool isPreview = true) :
     base(myRes, LabelControlSpecies.ThroneLabel,
          myFather, false)
 {
     IsPreview      = isPreview;
     ThronePosition = thronePosition;
     InitializeComponent();
 }
示例#3
0
        /// <summary>
        /// NOTICE: The object of <see cref="PlayerInfo"/>
        /// that I will return, does not exists in the server,
        /// please do it yourself.
        /// </summary>
        /// <param name="position"></param>
        /// <returns></returns>
        public PlayerInfo GetPlayerInfo(ThronePositions position)
        {
            PlayerInfo player = null;

            if (position == ThronePositions.OrdinaryCitizen)
            {
                return(player);
            }
            int _index = (int)position - 1;

            player = PlayerInfo.GetPlayerInfo(PlayerNames[_index]);
            return(player);
        }
示例#4
0
        /// <summary>
        /// NOTICE: The object of <see cref="PlayerInfo"/>
        /// that I will return, does not exists in the server,
        /// please do it yourself.
        /// </summary>
        /// <param name="position"></param>
        /// <returns></returns>
        public PlayerInfo GetPlayerInfo(ThronePositions position)
        {
            PlayerInfo player = null;

            switch (position)
            {
            case ThronePositions.King:
                player = PlayerInfo.GetPlayerInfo(King_PlayerName);
                break;

            case ThronePositions.Queen:
                player = PlayerInfo.GetPlayerInfo(Queen_PlayerName);
                break;

            case ThronePositions.MinisterOfWar:
                player = PlayerInfo.GetPlayerInfo(MinisterOfWar_PlayerName);
                break;

            case ThronePositions.MinisterOfWealth:
                player = PlayerInfo.GetPlayerInfo(MinisterOfWealth_PlayerName);
                break;

            case ThronePositions.Hierarch:
                player = PlayerInfo.GetPlayerInfo(Hierarch_PlayerName);
                break;

            case ThronePositions.Guardians_Chief:
                player = PlayerInfo.GetPlayerInfo(Guardians_Chief_PlayerName);
                break;

            case ThronePositions.Clown:
                player = PlayerInfo.GetPlayerInfo(Clown_PlayerName);
                break;

            default:
                break;
            }
            return(player);
        }