Exemplo n.º 1
0
        public void End(entity.Player leaver)
        {
            string mention = Program.UserIdToMention(leaver.Info.UserId);
            string message = "The game is over! " + mention + " was shot down!";

            this.BroadcastToAll(mention + " left the game.");
            this.active = false;
            Program.EndGame(this, leaver.Info);
        }
Exemplo n.º 2
0
        public void handleCommand(string[] args, UserInfo sender)
        {
            entity.Player player = this.getPlayerFromInfo(sender);

            foreach (entity.Player player1 in this.players)
            {
                if (player1.Info.UserId.Equals(sender.UserId))
                {
                    Console.WriteLine(player.pos.X.ToString() + " " + player.pos.Y.ToString());
                    io.HandleInput.handleInput(player.Info, args);
                }
            }
        }