Inheritance: MarioObjects.Objects.BaseObjects.AnimatedGraphicObject
Example #1
0
        public MonsterPiranah(int x, int y, PiranahType T)
            : base(ObjectType.OT_Pirana)
        {
            ImageCount = 10;

            Type = T;
            SetPiranahProperties();
            Move = PiranaMove.PM_None;

            this.x = x;
            this.y = y;
            SetWidthHeight();
            newx += 8;
            width = 16;
            OffY  = 0;
            Live  = true;

            Ball = new FireBall(0, 0);
            AddObject(Ball);

            TimerGenerator.AddTimerEventHandler(TimerType.TT_500, OnAnimate);
            TimerGenerator.AddTimerEventHandler(TimerType.TT_50, OnMove);
        }
Example #2
0
        public MonsterPiranah(int x, int y, PiranahType T)
            : base(ObjectType.OT_Pirana)
        {
            ImageCount = 10;

            Type = T;
            SetPiranahProperties();
            Move = PiranaMove.PM_None;

            this.x = x;
            this.y = y;
            SetWidthHeight();
            newx += 8;
            width = 16;
            OffY = 0;
            Live = true;

            Ball = new FireBall(0, 0);
            AddObject(Ball);

            TimerGenerator.AddTimerEventHandler(TimerType.TT_500, OnAnimate);
            TimerGenerator.AddTimerEventHandler(TimerType.TT_50, OnMove);
        }