Esempio n. 1
0
        static void Main(string[] args)
        {
#if true
            Multipower MentalistTricks = new Multipower();
            MentalistTricks.EnergySource = new EnergyReserve();
            MentalistTricks.EnergySource.MaxEnergy = 100;
            MentalistTricks.EnergySource.Energy = 100;
            MentalistTricks.Name = "Mentalist Tricks";
            EnergyBlast EnBlast = new EnergyBlast();
            EnBlast.EnergySource = MentalistTricks.EnergySource;
            EnBlast.Dice = 2;
            EnBlast.Name = "Psi Blast";
            EnergyBlast EffBolt = new EnergyBlast();
            EffBolt.EnergySource = MentalistTricks.EnergySource;
            EffBolt.Dice = 8;
            EffBolt.Name = "EFF BOLT";
            EnergyBlast OmegaCannon = new EnergyBlast();
            OmegaCannon.Name = "Omega Cannon";
            OmegaCannon.Dice = 15;
            OmegaCannon.EnergySource = MentalistTricks.EnergySource;
            MentalistTricks.Powers.Add(EnBlast);
            MentalistTricks.Powers.Add(EffBolt);
            MentalistTricks.Powers.Add(OmegaCannon);
            MentalistTricks.calculatecost();
            foreach (Power p in MentalistTricks.Powers)
            {
                Console.WriteLine("--------------------------------------------------");
                p.Display();
            }
            Console.WriteLine("--------------------------------------------------");
            Console.WriteLine("Point Cost: " + MentalistTricks.RealPointCost);
#endif
#if false
            Database Active = Database.GetActiveDatabase();
            Active.AddCharacter(Newcharacter("Bob"));
            Active.AddCharacter(Newcharacter("Marie"));
            Active.AddCharacter(Newcharacter("Laura"));
            Active.AddCharacter(Newcharacter("Robert"));
            Active.AddCharacter(Newcharacter("Kerchik"));
            Active.AddCharacter(Newcharacter("Maldor"));
            Active.AddCharacter(Newcharacter("GALAVOR DESTROYER OF HUMANITY"));
            Active.Save();

#endif
#if false
            Database.LoadDatabase();
            Database.GetActiveDatabase().ReadCharacters();
            Character_Editter_Form CHARFORM = new Character_Editter_Form();
            Application.Run(CHARFORM);
            Event();
#endif
            Console.ReadLine();
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
#if true
            Multipower MentalistTricks = new Multipower();
            MentalistTricks.EnergySource           = new EnergyReserve();
            MentalistTricks.EnergySource.MaxEnergy = 100;
            MentalistTricks.EnergySource.Energy    = 100;
            MentalistTricks.Name = "Mentalist Tricks";
            EnergyBlast EnBlast = new EnergyBlast();
            EnBlast.EnergySource = MentalistTricks.EnergySource;
            EnBlast.Dice         = 2;
            EnBlast.Name         = "Psi Blast";
            EnergyBlast EffBolt = new EnergyBlast();
            EffBolt.EnergySource = MentalistTricks.EnergySource;
            EffBolt.Dice         = 8;
            EffBolt.Name         = "EFF BOLT";
            EnergyBlast OmegaCannon = new EnergyBlast();
            OmegaCannon.Name         = "Omega Cannon";
            OmegaCannon.Dice         = 15;
            OmegaCannon.EnergySource = MentalistTricks.EnergySource;
            MentalistTricks.Powers.Add(EnBlast);
            MentalistTricks.Powers.Add(EffBolt);
            MentalistTricks.Powers.Add(OmegaCannon);
            MentalistTricks.calculatecost();
            foreach (Power p in MentalistTricks.Powers)
            {
                Console.WriteLine("--------------------------------------------------");
                p.Display();
            }
            Console.WriteLine("--------------------------------------------------");
            Console.WriteLine("Point Cost: " + MentalistTricks.RealPointCost);
#endif
#if false
            Database Active = Database.GetActiveDatabase();
            Active.AddCharacter(Newcharacter("Bob"));
            Active.AddCharacter(Newcharacter("Marie"));
            Active.AddCharacter(Newcharacter("Laura"));
            Active.AddCharacter(Newcharacter("Robert"));
            Active.AddCharacter(Newcharacter("Kerchik"));
            Active.AddCharacter(Newcharacter("Maldor"));
            Active.AddCharacter(Newcharacter("GALAVOR DESTROYER OF HUMANITY"));
            Active.Save();
#endif
#if false
            Database.LoadDatabase();
            Database.GetActiveDatabase().ReadCharacters();
            Character_Editter_Form CHARFORM = new Character_Editter_Form();
            Application.Run(CHARFORM);
            Event();
#endif
            Console.ReadLine();
        }