コード例 #1
0
ファイル: Wall.cs プロジェクト: samlowe106/Siphon
        // constructor
        public Wall(Vector2 position, Texture2D texture, Texture2D groundTexture, Texture2D healthBarTexture, Bank bank, Map map, int dimensions, int row, int col)
            : base(position, texture, dimensions)
        {
            this.bank = bank;
            this.map  = map;

            this.row = row;
            this.col = col;

            this.groundTexture = groundTexture;

            maxHealth     = 30;
            currentHealth = 30;
            healthBar     = new HealthBar(new Rectangle((int)position.X - dimensions / 2, (int)position.Y - dimensions / 2, dimensions, dimensions / 4), healthBarTexture);
        }