CannonGame.SolidObstacle.SolidObstacle C# (CSharp) Метод

SolidObstacle() публичный Метод

public SolidObstacle ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Vector2 position, int width, int height ) : System
texture Microsoft.Xna.Framework.Graphics.Texture2D
position Vector2
width int
height int
Результат System
        public SolidObstacle(Texture2D texture, Vector2 position, int width, int height)
            : base(texture, position)
        {
            this.height = height;
            this.width = width;
            obstacle = new Rectangle((int)position.X, (int)position.Y, width, height);
            this.origin.X = obstacle.Center.X;
            this.origin.Y = obstacle.Center.Y;
        }

Same methods

SolidObstacle::SolidObstacle ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Vector2 position, int height, int width, float velocity, char axis, int distance ) : System