Inheritance: MarioObjects.Objects.BaseObjects.AnimatedGraphicObject
Exemplo n.º 1
0
        public BlockBrick(int x, int y)
            : base(ObjectType.OT_Brick)
        {
            AnimatedCount = 4;
            this.x = x;
            this.y = y;
            SetWidthHeight();

            TopRight = new BlockBrickPiece(x, y, -30, 1);
            TopLeft = new BlockBrickPiece(x, y, -30, -1);
            ButtomRight = new BlockBrickPiece(x, y, -15, 1);
            ButtomLeft = new BlockBrickPiece(x, y, -15, -1);

            AddObject(TopRight);
            AddObject(TopLeft);
            AddObject(ButtomRight);
            AddObject(ButtomLeft);

            TimerGenerator.AddTimerEventHandler(TimerType.TT_100, OnAnimate);
        }
Exemplo n.º 2
0
        public BlockBrick(int x, int y)
            : base(ObjectType.OT_Brick)
        {
            AnimatedCount = 4;
            this.x        = x;
            this.y        = y;
            SetWidthHeight();

            TopRight    = new BlockBrickPiece(x, y, -30, 1);
            TopLeft     = new BlockBrickPiece(x, y, -30, -1);
            ButtomRight = new BlockBrickPiece(x, y, -15, 1);
            ButtomLeft  = new BlockBrickPiece(x, y, -15, -1);

            AddObject(TopRight);
            AddObject(TopLeft);
            AddObject(ButtomRight);
            AddObject(ButtomLeft);

            TimerGenerator.AddTimerEventHandler(TimerType.TT_100, OnAnimate);
        }