Example #1
0
 public void AddNode(Node node)
 {
     if (node is CheckinNode checkin)
     {
         First.Add(checkin);
     }
 }
Example #2
0
 public void AddPlayer(Person player)
 {
     if (player.Age < 40)
     {
         First.Add(player);
     }
     else
     {
         Reserve.Add(player);
     }
 }
Example #3
0
 public void AddPlayer(Person3 person)
 {
     if (person.Age < 40)
     {
         First.Add(person);
     }
     else
     {
         Reserve.Add(person);
     }
 }
 public void SetBlueprint(ObservableSortedList <GridItemViewModel> grid)
 {
     First.Clear();
     if (grid != null)
     {
         if (grid.Count > 0)
         {
             SetBlueprint(grid[0]);
             grid[0].IsExpanded = true;
             First.Add(grid[0]);
         }
     }
 }
Example #5
0
 public void AddNode(int id, Type t, Node nodetoadd)
 {
     if (First.Count == 0 || nodetoadd is CheckinNode)
     {
         First.Add((CheckinNode)nodetoadd);
     }
     else
     {
         foreach (Node s in First)
         {
             s.AddNode(id, t, nodetoadd);
         }
     }
 }
Example #6
0
 public void Balance()
 {
     if (First.Count > PoolSize && poolCluster.Count < Capacity)
     {
         AddPool();
     }
     else if (First.Count == 0 && poolCluster.Count > 1)
     {
         First.Clear();
         RemovePool(First);
     }
     else
     {
         int size = (Last.Count - First.Count) / 2;
         for (int i = 0; i < size; i++)
         {
             First.Add(Last.GetLast());
             Last.RemoveLast();
         }
     }
     DoSort();
 }
 public ScrollCase()
 {
     First.Add(new Scroll
     {
         Name   = "Disarm",
         Level  = 1,
         Incant = "Disarm your <target>",
         Type   = SpellType.EForce
     });
     First.Add(new Scroll
     {
         Name   = "Light",
         Level  = 1,
         Incant = "build a Light",
         Type   = SpellType.EForce
     });
     First.Add(new Scroll
     {
         Name   = "Lesser Investment",
         Level  = 3,
         Incant = "build a Lesser Investment",
         Type   = SpellType.EForce
     });
     First.Add(new Scroll
     {
         Name   = "Fortress",
         Level  = 1,
         Incant = "build a Fortress",
         Type   = SpellType.EForce
     });
     First.Add(new Scroll(1, SpellFlavor.Stone));
     First.Add(new Scroll(1, SpellFlavor.Lighting));
     First.Add(new Scroll(1, SpellFlavor.Ice));
     First.Add(new Scroll(1, SpellFlavor.Flame));
     Second.Add(new Scroll
     {
         Name   = "Weapon Shield",
         Level  = 2,
         Incant = "a Weapon Shield",
         Type   = SpellType.Protection
     });
     Second.Add(new Scroll
     {
         Name   = "Pin",
         Level  = 2,
         Incant = "Pin you",
         Type   = SpellType.Binding
     });
     Second.Add(new Scroll
     {
         Name   = "Repel",
         Level  = 2,
         Incant = "Repel you",
         Type   = SpellType.Binding
     });
     Second.Add(new Scroll
     {
         Name   = "Slow",
         Level  = 2,
         Incant = "Slow you",
         Type   = SpellType.Binding
     });
     Second.Add(new Scroll
     {
         Name   = "Mend Armor",
         Level  = 2,
         Incant = "Mend 10 Armor",
         Type   = SpellType.EForce
     });
     Second.Add(new Scroll(2, SpellFlavor.Stone));
     Second.Add(new Scroll(2, SpellFlavor.Lighting));
     Second.Add(new Scroll(2, SpellFlavor.Ice));
     Second.Add(new Scroll(2, SpellFlavor.Flame));
     Third.Add(new Scroll
     {
         Name   = "Bind",
         Level  = 3,
         Incant = "Bind you",
         Type   = SpellType.Binding
     });
     Third.Add(new Scroll
     {
         Name   = "Shatter",
         Level  = 3,
         Incant = "Shatter your <target>",
         Type   = SpellType.EForce
     });
     Third.Add(new Scroll
     {
         Name   = "Wall of Force",
         Level  = 3,
         Incant = "build a Wall of Force",
         Type   = SpellType.EForce
     });
     Third.Add(new Scroll
     {
         Name   = "Solidfy",
         Level  = 3,
         Incant = "Solidfy you",
         Type   = SpellType.EForce
     });
     Third.Add(new Scroll(3, SpellFlavor.Stone));
     Third.Add(new Scroll(3, SpellFlavor.Lighting));
     Third.Add(new Scroll(3, SpellFlavor.Ice));
     Third.Add(new Scroll(3, SpellFlavor.Flame));
     Fourth.Add(new Scroll
     {
         Name   = "Awaken",
         Level  = 4,
         Incant = "I Awaken you from commands",
         Type   = SpellType.Fixing
     });
     Fourth.Add(new Scroll
     {
         Name   = "Banish",
         Level  = 4,
         Incant = "Banish you",
         Type   = SpellType.EForce
     });
     Fourth.Add(new Scroll
     {
         Name   = "Enhanced Blade",
         Level  = 4,
         Incant = "an Enhanced Blade",
         Type   = SpellType.Protection
     });
     Fourth.Add(new Scroll
     {
         Name   = "Shun",
         Level  = 4,
         Incant = "Shun me",
         Type   = SpellType.Commands
     });
     Fourth.Add(new Scroll(4, SpellFlavor.Stone));
     Fourth.Add(new Scroll(4, SpellFlavor.Lighting));
     Fourth.Add(new Scroll(4, SpellFlavor.Ice));
     Fourth.Add(new Scroll(4, SpellFlavor.Flame));
     Fifth.Add(new Scroll
     {
         Name   = "Release",
         Level  = 5,
         Incant = "I Release you from binding",
         Type   = SpellType.Fixing
     });
     Fifth.Add(new Scroll
     {
         Name   = "Spell Shield",
         Level  = 5,
         Incant = "a Spell Shield",
         Type   = SpellType.Protection
     });
     Fifth.Add(new Scroll
     {
         Name   = "Subjugate",
         Level  = 5,
         Incant = "Subjugate you",
         Type   = SpellType.EForce
     });
     Fifth.Add(new Scroll
     {
         Name   = "Lesser Magic Storm",
         Level  = 5,
         Incant = "Lesser Magic Storm",
         Type   = SpellType.Evocation
     });
     Fifth.Add(new Scroll(5, SpellFlavor.Stone));
     Fifth.Add(new Scroll(5, SpellFlavor.Lighting));
     Fifth.Add(new Scroll(5, SpellFlavor.Ice));
     Fifth.Add(new Scroll(5, SpellFlavor.Flame));
     Sixth.Add(new Scroll
     {
         Name   = "Elemental Shield",
         Level  = 6,
         Incant = "an Elemental Shield",
         Type   = SpellType.Protection
     });
     Sixth.Add(new Scroll
     {
         Name   = "Sleep",
         Level  = 6,
         Incant = "Sleep",
         Type   = SpellType.Commands
     });
     Sixth.Add(new Scroll
     {
         Name   = "Wizard Lock",
         Level  = 6,
         Incant = "build a Wizard Lock",
         Type   = SpellType.EForce
     });
     Sixth.Add(new Scroll(6, SpellFlavor.Stone));
     Sixth.Add(new Scroll(6, SpellFlavor.Lighting));
     Sixth.Add(new Scroll(6, SpellFlavor.Ice));
     Sixth.Add(new Scroll(6, SpellFlavor.Flame));
     Seventh.Add(new Scroll
     {
         Name   = "Charm",
         Level  = 7,
         Incant = "be Charmed",
         Type   = SpellType.Commands
     });
     Seventh.Add(new Scroll
     {
         Name   = "Confine",
         Level  = 7,
         Incant = "Confine you",
         Type   = SpellType.Binding
     });
     Seventh.Add(new Scroll(7, SpellFlavor.Stone));
     Seventh.Add(new Scroll(7, SpellFlavor.Lighting));
     Seventh.Add(new Scroll(7, SpellFlavor.Ice));
     Seventh.Add(new Scroll(7, SpellFlavor.Flame));
     Eigth.Add(new Scroll
     {
         Name   = "Dispel",
         Level  = 8,
         Incant = "to Dispel",
         Type   = SpellType.Protection
     });
     Eigth.Add(new Scroll
     {
         Name   = "Reflect Magic",
         Level  = 8,
         Incant = "a Reflect Magic",
         Type   = SpellType.Protection
     });
     Eigth.Add(new Scroll
     {
         Name   = "Stun Limb",
         Level  = 8,
         Incant = "Stun your <limb>",
         Type   = SpellType.EForce
     });
     Eigth.Add(new Scroll(8, SpellFlavor.Stone));
     Eigth.Add(new Scroll(8, SpellFlavor.Lighting));
     Eigth.Add(new Scroll(8, SpellFlavor.Ice));
     Eigth.Add(new Scroll(8, SpellFlavor.Flame));
     Ninth.Add(new Scroll
     {
         Name   = "Circle of Power",
         Level  = 9,
         Incant = "build a Circle of Power",
         Type   = SpellType.EForce
     });
     Ninth.Add(new Scroll
     {
         Name   = "Magic Storm",
         Level  = 9,
         Incant = "Magic Storm",
         Type   = SpellType.Evocation
     });
     Ninth.Add(new Scroll
     {
         Name   = "Prison",
         Level  = 9,
         Incant = "build a Prison",
         Type   = SpellType.EForce
     });
     Ninth.Add(new Scroll
     {
         Name   = "Ward",
         Level  = 9,
         Incant = "build a Ward",
         Type   = SpellType.EForce
     });
     Ninth.Add(new Scroll(9, SpellFlavor.Stone));
     Ninth.Add(new Scroll(9, SpellFlavor.Lighting));
     Ninth.Add(new Scroll(9, SpellFlavor.Ice));
     Ninth.Add(new Scroll(9, SpellFlavor.Flame));
 }
Example #8
0
            public static void Create()
            {
                float headr = HeadR / W;

                Standard.Add(new Orbit(.1f, .2f, 1f / 13));
                Standard.Add(new Orbit(.367f, .2f, 1f / 13));
                Standard.Add(new Orbit(.633f, .2f, 1f / 13));
                Standard.Add(new Orbit(.9f, .2f, 1f / 13));
                Standard.Add(new Orbit(2f / 9, .5f, 1f / 13));
                Standard.Add(new Orbit(.5f, .5f, 1f / 13));
                Standard.Add(new Orbit(7f / 9, .5f, 1f / 13));
                Standard.Add(new Orbit(.1f, .8f, 1f / 13));
                Standard.Add(new Orbit(.367f, .8f, 1f / 13));
                Standard.Add(new Orbit(.633f, .8f, 1f / 13f));
                Standard.Add(new Orbit(.9f, .8f, 1f / 13));

                First.Add(new Orbit(1 / 12f, 1 / 6f, 1 / 21f));
                First.Add(new Orbit(11 / 12f, 1 / 6f, 1 / 21f));
                First.Add(new Orbit(1 / 12f, 5 / 6f, 1 / 21f));
                First.Add(new Orbit(11 / 12f, 5 / 6f, 1 / 21f));
                First.Add(new Orbit(.5f, .5f, 3 / 16f));
                First.Add(new Orbit(1 / 6f, .5f, 3 / 32f));
                First.Add(new Orbit(5 / 6f, .5f, 3 / 32f));
                First.Add(new Orbit(1 / 4f, 1 / 5f, 1 / 28f));
                First.Add(new Orbit(3 / 4f, 1 / 5f, 1 / 28f));
                First.Add(new Orbit(1 / 4f, 4 / 5f, 1 / 28f));
                First.Add(new Orbit(3 / 4f, 4 / 5f, 1 / 28f));

                Dense.Add(new Orbit(1 / 12f, 1 / 8f, 1 / 25f));
                Dense.Add(new Orbit(1 / 12f, 3 / 8f, 1 / 25f));
                Dense.Add(new Orbit(1 / 12f, 5 / 8f, 1 / 25f));
                Dense.Add(new Orbit(1 / 12f, 7 / 8f, 1 / 25f));
                Dense.Add(new Orbit(1 / 6f, 1 / 4f, 1 / 25f));
                Dense.Add(new Orbit(1 / 6f, 1 / 2f, 1 / 25f));
                Dense.Add(new Orbit(1 / 6f, 3 / 4f, 1 / 25f));
                Dense.Add(new Orbit(1 / 4f, 1 / 8f, 1 / 25f));
                Dense.Add(new Orbit(1 / 4f, 3 / 8f, 1 / 25f));
                Dense.Add(new Orbit(1 / 4f, 5 / 8f, 1 / 25f));
                Dense.Add(new Orbit(1 / 4f, 7 / 8f, 1 / 25f));
                Dense.Add(new Orbit(1 / 3f, 1 / 4f, 1 / 25f));
                Dense.Add(new Orbit(1 / 3f, 1 / 2f, 1 / 25f));
                Dense.Add(new Orbit(1 / 3f, 3 / 4f, 1 / 25f));
                Dense.Add(new Orbit(5 / 12f, 1 / 8f, 1 / 25f));
                Dense.Add(new Orbit(5 / 12f, 3 / 8f, 1 / 25f));
                Dense.Add(new Orbit(5 / 12f, 5 / 8f, 1 / 25f));
                Dense.Add(new Orbit(5 / 12f, 7 / 8f, 1 / 25f));
                Dense.Add(new Orbit(1 / 2f, 1 / 4f, 1 / 25f));
                Dense.Add(new Orbit(1 / 2f, 1 / 2f, 1 / 25f));
                Dense.Add(new Orbit(1 / 2f, 3 / 4f, 1 / 25f));
                Dense.Add(new Orbit(7 / 12f, 1 / 8f, 1 / 25f));
                Dense.Add(new Orbit(7 / 12f, 3 / 8f, 1 / 25f));
                Dense.Add(new Orbit(7 / 12f, 5 / 8f, 1 / 25f));
                Dense.Add(new Orbit(7 / 12f, 7 / 8f, 1 / 25f));
                Dense.Add(new Orbit(2 / 3f, 1 / 4f, 1 / 25f));
                Dense.Add(new Orbit(2 / 3f, 1 / 2f, 1 / 25f));
                Dense.Add(new Orbit(2 / 3f, 3 / 4f, 1 / 25f));
                Dense.Add(new Orbit(3 / 4f, 1 / 8f, 1 / 25f));
                Dense.Add(new Orbit(3 / 4f, 3 / 8f, 1 / 25f));
                Dense.Add(new Orbit(3 / 4f, 5 / 8f, 1 / 25f));
                Dense.Add(new Orbit(3 / 4f, 7 / 8f, 1 / 25f));
                Dense.Add(new Orbit(5 / 6f, 1 / 4f, 1 / 25f));
                Dense.Add(new Orbit(5 / 6f, 1 / 2f, 1 / 25f));
                Dense.Add(new Orbit(5 / 6f, 3 / 4f, 1 / 25f));
                Dense.Add(new Orbit(11 / 12f, 1 / 8f, 1 / 25f));
                Dense.Add(new Orbit(11 / 12f, 3 / 8f, 1 / 25f));
                Dense.Add(new Orbit(11 / 12f, 5 / 8f, 1 / 25f));
                Dense.Add(new Orbit(11 / 12f, 7 / 8f, 1 / 25f));

                Simple.Add(new Orbit(1 / 4f, .5f, .2f));
                Simple.Add(new Orbit(3 / 4f, .5f, .2f));
                Simple.Add(new Orbit(.5f, 1 / 6f, .05f));
                Simple.Add(new Orbit(.5f, 5 / 6f, .05f));

                Steps.Add(new Orbit(.12f + headr, .24f + headr * 2, .12f));
                Steps.Add(new Orbit(1 / 3f, .6f, .1f));
                Steps.Add(new Orbit(.5f, 14 / 16f - headr * 2, 1 / 16f));
                Steps.Add(new Orbit(2 / 3f, .6f, .1f));
                Steps.Add(new Orbit(.88f - headr, .24f + headr * 2, .12f));

                Isles.Add(new Orbit(1 / 12f + headr, 3 / 5f, 1 / 12f));
                Isles.Add(new Orbit(3 / 12f, 1 / 6f + headr * 2, 1 / 12f));
                Isles.Add(new Orbit(5 / 12f, 5 / 6f - headr * 2, 1 / 12f));
                Isles.Add(new Orbit(7 / 12f, 1 / 6f + headr * 2, 1 / 12f));
                Isles.Add(new Orbit(9 / 12f, 5 / 6f - headr * 2, 1 / 12f));
                Isles.Add(new Orbit(11 / 12f - headr, 2 / 5f, 1 / 12f));

                Moon.Add(new Orbit(1 / 4f, .3f + headr * 2, .15f));
                Moon.Add(new Orbit(.42f, .87f, 1 / 30f));
                Moon.Add(new Orbit(.3f, .5f, 1 / 30f));
                Moon.Add(new Orbit(.72381f, .18924f, 1 / 32f));
                Moon.Add(new Orbit(.62348f, .54328f, 1 / 18f));
                Moon.Add(new Orbit(.76483f, .43617f, 1 / 32f));
                Moon.Add(new Orbit(.32732f, .32711f, 1 / 26f));
                Moon.Add(new Orbit(.17231f, .79801f, 1 / 24f));
                Moon.Add(new Orbit(.79782f, .79701f, 1 / 20f));
                Moon.Add(new Orbit(.87982f, .33241f, 1 / 22f));
                Moon.Add(new Orbit(.54311f, .12411f, 1 / 28f));
                Moon.Add(new Orbit(.06251f, .56781f, 1 / 30f));
                Moon.Add(new Orbit(.52879f, .78232f, 1 / 34f));

                Ring.Add(new Orbit(3 / 13f, 1 / 9f + headr * 2, 1 / 18f));
                Ring.Add(new Orbit(5 / 13f, 1 / 9f + headr * 2, 1 / 18f));
                Ring.Add(new Orbit(7 / 13f, 1 / 9f + headr * 2, 1 / 18f));
                Ring.Add(new Orbit(9 / 13f, 1 / 9f + headr * 2, 1 / 18f));
                Ring.Add(new Orbit(4 / 13f, 8 / 9f - headr * 2, 1 / 18f));
                Ring.Add(new Orbit(6 / 13f, 8 / 9f - headr * 2, 1 / 18f));
                Ring.Add(new Orbit(8 / 13f, 8 / 9f - headr * 2, 1 / 18f));
                Ring.Add(new Orbit(10 / 13f, 8 / 9f - headr * 2, 1 / 18f));
                Ring.Add(new Orbit(1 / 15f + headr, 1 / 3f, 1 / 15f));
                Ring.Add(new Orbit(14 / 15f - headr, 2 / 3f, 1 / 15f));
                //Ring.Add(new Orbit(1/18f+headr, 1/8f, 1/18f));
                //Ring.Add(new Orbit(17/18f-headr, 7/8f, 1/18f));
                Ring.Add(new Orbit(.1f + headr, .8f - headr * 2, .1f));
                Ring.Add(new Orbit(.9f - headr, .2f + headr * 2, .1f));

                Wave.Add(new Orbit(1 / 6f, 2 / 9f + headr * 2, 1 / 9f));
                Wave.Add(new Orbit(2 / 6f, 7 / 9f - headr * 2, 1 / 9f));
                Wave.Add(new Orbit(3 / 6f, 2 / 9f + headr * 2, 1 / 9f));
                Wave.Add(new Orbit(4 / 6f, 7 / 9f - headr * 2, 1 / 9f));
                Wave.Add(new Orbit(5 / 6f, 2 / 9f + headr * 2, 1 / 9f));

                /*
                 * Me.Add(new Orbit(1/4f, 1/4f, .12f));
                 * Me.Add(new Orbit(1/4f, 3/4f, .12f));
                 * Me.Add(new Orbit(.52f, .155f, .06f));
                 * Me.Add(new Orbit(.67f, .155f, .06f));
                 * Me.Add(new Orbit(.82f, .155f, .06f));
                 * Me.Add(new Orbit(.595f, .5f, .12f));
                 * Me.Add(new Orbit(.52f, .85f, .06f));
                 * Me.Add(new Orbit(.875f, .85f, .05f));
                 */

                Me.Add(new Orbit(1 / 11f + headr, 9 / 11f - 2 * headr, 1 / 11f));
                Me.Add(new Orbit(13 / 44f + headr / 2, 29 / 44f - headr, 1 / 11f));
                Me.Add(new Orbit(.5f, .5f, 1 / 11f));
                Me.Add(new Orbit(31 / 44f - headr / 2, 15 / 44f + headr, 1 / 11f));
                Me.Add(new Orbit(10 / 11f - headr, 2 / 11f + 2 * headr, 1 / 11f));
            }
Example #9
0
 public void Add(IObject[] objs)
 {
     First.Add(objs);
 }
Example #10
0
 public void Add(IObject obj)
 {
     First.Add(obj);
 }
Example #11
0
 public void Add(T1 key1, T2 key2)
 {
     First.Add(key1, key2);
     Second.Add(key2, key1);
 }