Exemplo n.º 1
0
        /// <summary>
        /// Clone an Explosion object.
        /// </summary>
        /// <returns>The cloned Explosion object.</returns>
        public Explosion clone()
        {
            Explosion e = new Explosion();

            e.bullets.AddRange( bullets );
            e.particles = particles;
            e.size = size;

            return e;
        }
Exemplo n.º 2
0
        /// <summary>
        /// Construct a player at the specified PlayerIndex.
        /// </summary>
        /// <param name="index">The player's PlayerIndex.</param>
        public Player(PlayerIndex index)
            : base()
        {
            this.index = index;

            input = GammaDraconis.GetInstance().InputManager.GetPlayerInput(index);
            camera = new Coords();
            viewport = (Renderer.Viewports)index;
            Player.players[(int)index] = this;

            arrow = Proto.getThing("CheckpointArrow", new Coords());
            
            playerHUD = (Interface)GammaDraconis.GetInstance().GameLua.DoString("playerHudIndex = " + ((int)index + 1) + "\nreturn dofile( 'Interfaces/PlayerHUD/PlayerHUD.lua' )")[0];

            dust = new List<GameObject>();

            explosion = new Explosion();
            explosion.size = 2f;
            explosion.particles = 50;
        }