public SpellShieldNova(Character source, GameWorld gameWorld, int range)
     : base(source, gameWorld, range)
 {
     Image = Properties.Resources.SpellNova;
     DrawBehavior.IsCircle = true;
     MotionBehavior = new StationaryMotionBehavior(this, gameWorld);
 }
예제 #2
0
        protected PowerUp(DecimalPoint location, GameWorld gameWorld)
        {
            Location = location;
            GameWorld = gameWorld;
            GameWorld.Collision += gameWorld_Collision;

            Inertia = new DecimalPoint(0, 0);
            MotionBehavior = new StationaryMotionBehavior(this, gameWorld);
            Paralax = Paralax.Middleground;
            DrawBehavior = new TopDownRotationDrawBehavior(this);

            IsPhysicalObject = false;
        }