Beispiel #1
0
 public MagicAttackAnimationInfo(string AnimationName, MagicSpell Owner, ProjectileContext GlobalContext, SharedProjectileParams SharedParams)
     : base(AnimationName)
 {
     this.Owner         = Owner;
     this.GlobalContext = GlobalContext;
     this.SharedParams  = SharedParams;
 }
Beispiel #2
0
 public ActionPanelSpellEditor(ActionPanelHolder ListActionMenuChoice, MagicSpell ActiveSpell, ProjectileContext GlobalProjectileContext, SharedProjectileParams SharedParams)
     : base(ActiveSpell.Name, ListActionMenuChoice, true)
 {
     this.ActiveSpell             = ActiveSpell;
     this.GlobalProjectileContext = GlobalProjectileContext;
     this.SharedParams            = SharedParams;
 }
        protected ProjectileParams(ProjectileContext GlobalContext, ProjectileContext LocalContext, SharedProjectileParams SharedParams)
        {
            this.GlobalContext = GlobalContext;
            this.LocalContext  = LocalContext;
            this.SharedParams  = SharedParams;

            LocalContext.OwnerSandbox    = GlobalContext.OwnerSandbox;
            LocalContext.OwnerProjectile = GlobalContext.OwnerProjectile;
        }
        public MagicTimeline(MagicSpell ActiveSpell, ProjectileContext GlobalContext, SharedProjectileParams SharedParams)
            : this()
        {
            this.ActiveSpell   = ActiveSpell;
            this.GlobalContext = GlobalContext;
            this.SharedParams  = SharedParams;

            GlobalContext.OwnerSandbox = this;
            this.ActiveSpell.ComputeSpell();
        }
Beispiel #5
0
 private TripleThunderAttackParams(TripleThunderAttackContext GlobalContext, TripleThunderAttackContext LocalContext, SharedProjectileParams SharedParams)
     : base(GlobalContext, LocalContext, SharedParams)
 {
     this.GlobalContext = GlobalContext;
     this.LocalContext  = LocalContext;
 }
 public ProjectileParams(ProjectileParams Clone)
     : this(Clone.GlobalContext)
 {
     SharedParams = Clone.SharedParams;
 }
Beispiel #7
0
        public MagicPreviewerPanel(ContentManager Content, MagicSpell ActiveMagicSpell, ActionPanelHolder ListActionMenuChoice, ProjectileContext GlobalProjectileContext, SharedProjectileParams SharedParams, Vector2 UserPosition, Rectangle EnemyBounds)
            : base("Previewer", ListActionMenuChoice, true)
        {
            sprPixel = Content.Load <Texture2D>("pixel");

            ListProjectile = new List <Projectile>();

            Vector2[] SandboxPoints = new Vector2[4]
            {
                new Vector2(0, 0),
                new Vector2(0, Constants.Height),
                new Vector2(Constants.Width, Constants.Height),
                new Vector2(Constants.Width, 0),
            };
            SandboxCollisionBox = new Polygon(SandboxPoints, Constants.Width, Constants.Height);

            Vector2[] EnemyPoints = new Vector2[4]
            {
                new Vector2(EnemyBounds.X, EnemyBounds.Y),
                new Vector2(EnemyBounds.X, EnemyBounds.Bottom),
                new Vector2(EnemyBounds.Right, EnemyBounds.Bottom),
                new Vector2(EnemyBounds.Right, EnemyBounds.Y),
            };
            EnemyCollisionBox = new Polygon(EnemyPoints, Constants.Width, Constants.Height);

            MagicUser ActiveUser = new MagicUser();

            ActiveUser.ManaReserves = 1000;
            ActiveUser.CurrentMana  = 100;

            SharedParams.OwnerPosition           = UserPosition;
            GlobalProjectileContext.OwnerSandbox = this;

            MagicSpell NewSpell = new MagicSpell(ActiveMagicSpell, ActiveUser);

            ListMagicSpell = NewSpell.ComputeSpell();
        }
Beispiel #8
0
 public MagicPreviewerPanel(ContentManager Content, MagicSpell ActiveMagicSpell, ActionPanelHolder ListActionMenuChoice, ProjectileContext GlobalProjectileContext, SharedProjectileParams SharedParams)
     : this(Content, ActiveMagicSpell, ListActionMenuChoice, GlobalProjectileContext, SharedParams,
            new Vector2(Constants.Width - 50, Constants.Height / 2),
            new Rectangle(50, Constants.Height / 2, 100, 100))
 {
 }
Beispiel #9
0
 public MagicTimelineEndHitAnimation(AnimationClass Owner, MagicSpell ActiveSpell, ProjectileContext GlobalContext, SharedProjectileParams SharedParams)
     : base(ActiveSpell, GlobalContext, SharedParams)
 {
     this.Owner = Owner;
 }