Ejemplo n.º 1
0
        public override void DoAction()
        {
            Player newPlayer = new Player(tank);
            PlayerJoinedEventArgs args = new PlayerJoinedEventArgs(newPlayer);

            Bot.InvokePlayerJoined(args);

            args.Dispose();
        }
Ejemplo n.º 2
0
 public virtual void PlayerJoined(PlayerJoinedEventArgs e)
 {
 }
Ejemplo n.º 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);
        }