public override void DoAction()
        {
            Player newPlayer = new Player(tank);
            PlayerJoinedEventArgs args = new PlayerJoinedEventArgs(newPlayer);

            Bot.InvokePlayerJoined(args);

            args.Dispose();
        }
Exemple #2
0
 public virtual void PlayerJoined(PlayerJoinedEventArgs e)
 {
 }
Exemple #3
0
        public void InvokePlayerJoined(PlayerJoinedEventArgs e)
        {
            Game.AddPlayer(e.Player, false);
            PlayerJoined(e);

            // Re-sync moves.
            GameServer.Move(Player.Position.x, Player.Position.y, Player.MovementDirection);
            GameServer.Rotate(Player.Angle, Player.RotationDirection);
        }