Пример #1
0
        public Form1()
        {
            InitializeComponent();

            gameData = new GameData();
            chat = new ChatCommand();
            com = new Command();
            mapControl = new MapControl(new Point(panel1.Size.Width / 2, panel1.Size.Height / 2), 15);
            mapControl.Dock = DockStyle.Fill;
            panel1.Controls.Add(mapControl);
            DisconnectButton.Enabled = false;
            move = new PlayerMoveCommand();
            bot = new Bot();
            KeyUp += new KeyEventHandler(Form1_KeyUp);
        }
Пример #2
0
 private void AddTextToChat(ChatCommand chat)
 {
     AddTextToChat(chat.Sender, chat.Message);
 }