public RoomPage(MainPocket pocket, ChatClient chatClient, Room room, bool isHost, Character character)
        {
            InitializeComponent();
            this.pocket           = pocket;
            this.room             = room;
            this.isHost           = isHost;
            this.chatClient       = chatClient;
            this.stateClient      = new StateClient(room.Ip, room.Port, pocket.Player, character);
            this.charactersClient = new CharactersClient(room.Ip, room.Port, pocket.Player, character);
            this.storageClient    = new StorageClient(room.Ip, room.Port, pocket.Player, character);
            paint             = new Paint();
            pocket.ServerIsOn = true;

            AcceptServerFirstMessage();

            chatClient.ReceiveMessage();
            AddMessageToListBox();

            stateClient.StartReceive();
            ApplyPlayersInRoom();

            charactersClient.StartReceive();
            ApplyCharactersInRoom();

            storageClient.StartReceive();
            ApplyFilesInStorage();

            colorPicker.SelectedColor = paint.Color;

            if (room.GameMaster != null)
            {
                masterPlayerName.Text = room.GameMaster.NickName;
            }
        }
        public CharacterPageThird(MainPocket pocket, Character character, CharactersClient client)
        {
            InitializeComponent();
            this.pocket      = pocket;
            this.character   = character;
            charactersClient = client;

            raceTextBox.Text     = character.Race;
            birthdayTextBox.Text = character.Birthday;
            advaDisTextBox.Text  = character.AdvantagesDisadvantages;
            skillsTextBox.Text   = character.Skills;
            equipTextBox.Text    = character.Equip;
        }
        public CharacterPage(MainPocket pocket, Character character, CharactersClient client)
        {
            InitializeComponent();
            this.pocket      = pocket;
            this.character   = character;
            charactersClient = client;

            fullNameTextBox.Text = character.FullName;
            raceTextBox.Text     = character.Race;
            statusTextBox.Text   = character.Status;
            leatherTextBox.Text  = character.SkinColor;
            worldTextBox.Text    = character.WorldName;
            ageTextBox.Text      = character.Age.ToString();
            mainNoteTextBox.Text = character.MainNote;
        }
Exemple #4
0
        public CharacterPageOne(MainPocket pocket, Character character, CharactersClient client)
        {
            InitializeComponent();
            this.pocket      = pocket;
            this.character   = character;
            charactersClient = client;

            eyeDescriptionTextBox.Text = character.Eyes;
            hairTextBox.Text           = character.Hair;
            mainHandTextBox.Text       = character.MainHand;
            religionTextBox.Text       = character.Religion;
            genderTextBox.Text         = character.Gender;
            growthTextBox.Text         = character.Growth.ToString();
            weightTextBox.Text         = character.Weight.ToString();
            smTextBox.Text             = character.SM.ToString();
            tlTextBox.Text             = character.TL.ToString();
        }
        public CharacterPageTwo(MainPocket pocket, Character character, CharactersClient client)
        {
            InitializeComponent();
            this.pocket      = pocket;
            this.character   = character;
            charactersClient = client;

            mvTextBox.Text      = character.Move.ToString();
            spTextBox.Text      = character.Speed.ToString();
            wlTextBox.Text      = character.Will.ToString();
            prTextBox.Text      = character.Per.ToString();
            fpTextBox.Text      = character.FP.ToString();
            stTextBox.Text      = character.ST.ToString();
            dxTextBox.Text      = character.DX.ToString();
            iqTextBox.Text      = character.IQ.ToString();
            htTextBox.Text      = character.HT.ToString();
            hpTextBox.Text      = character.HP.ToString();
            woundsTextBox.Text  = character.Wounds;
            fatigueTextBox.Text = character.Fatigue;
        }