Exemple #1
0
        public void login_btn_Click(object sender, RoutedEventArgs e)
        {
            int UserType = Server.LogInQuery(username_inp.Text, password_inp.Text);

            if (UserType == 1)//Student
            {
                Student student = new Student();
                student.username = username_inp.Text;
                student.password = password_inp.Text;
                this.NavigationService.Navigate(new StudentHome(student));
            }
            else if (UserType == 3)
            {//RA
                RA ra = new RA();
                this.NavigationService.Navigate(new StudentHome(ra));
            }
            else if (UserType == 2)
            {//Admin
                Admin admin = new Admin();
                admin.username = username_inp.Text;
                admin.password = password_inp.Text;
                this.NavigationService.Navigate(new AdminHome(admin));
            }
            else
            {//Error
                String errorTitle   = "Login Error";
                String errorMessage = "Login Error :(";
                MessageBox.Show(errorTitle, errorMessage);
            }
        }
Exemple #2
0
        public RectangularCords ToRectangularCords()
        {
            double x, y, z;

            x = r * MathHelper.Cos(RA.ToDecimal()) * MathHelper.Cos(Decl);
            y = r * MathHelper.Sin(RA.ToDecimal()) * MathHelper.Cos(Decl);
            z = r * MathHelper.Sin(Decl);
            return(new RectangularCords(x, y, z));
        }
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         int hash = 17;
         // Suitable nullity checks etc, of course :)
         hash = hash * 23 + RA.GetHashCode();
         hash = hash * 23 + Dec.GetHashCode();
         return(hash);
     }
 }
Exemple #4
0
        public static void SetVar(VariableType var, VarMemType mem, int num, double value)
        {
            switch (mem)
            {
            case VarMemType.IC: break;

            case VarMemType.LA: LA.Set(var, num, value); break;

            case VarMemType.RA: RA.Set(var, num, value); break;
            }
        }
Exemple #5
0
        public static float GetVar(VariableType var, VarMemType mem, int num)
        {
            switch (mem)
            {
            case VarMemType.IC: return(IC.Get(var, num));

            case VarMemType.LA: return(LA.Get(var, num));

            case VarMemType.RA: return(RA.Get(var, num));
            }
            return(0.0f);
        }
Exemple #6
0
 internal SerializedReferenceSourceLibrary ToSerializedReferenceSourceLibrary()
 {
     return(new SerializedReferenceSourceLibrary
     {
         Name = this.Name,
         Description = this.Description,
         Location = this.Location,
         Language = this.Language,
         CompatibleDotNetVersions = this.CompatibleDotNetVersions,
         ReferenceAssemblies = this.ReferenceAssemblies.Select(RA => RA.ToSerializedReferenceAssembly()).ToList(),
         EmbeddedResources = this.EmbeddedResources.Select(ER => ER.ToSerializedEmbeddedResource()).ToList()
     });
 }
Exemple #7
0
        void Application_Start(object sender, EventArgs e)
        {
            // Kod uruchamiany podczas uruchamiania aplikacji
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);

            //Kod uruchamiany podczas łączenia z bazą danych
            Database.SetInitializer(new ProductDatabaseInitializer());

            RA rA = new RA();

            rA.AddUserAndRole();
        }
Exemple #8
0
            public override string ToString()
            {
                string ram = "";

                for (int i = 0; i < ramSize; ++i)
                {
                    ram += RAM[i].ToString() + " ";
                }

                return("RA: " + RA.ToString() + "[0b" + Convert.ToString(RA, 2) + ", 0x" + Convert.ToString(RA, 16) + "]"
                       + ", RB: " + RB.ToString() + "[0b" + Convert.ToString(RB, 2) + ", 0x" + Convert.ToString(RB, 16) + "]"
                       + ", LEAF: " + LEAF.ToString() + ", PC: " + PC.ToString()
                       + "\nRAM: " + ram
                       + "\nc:" + (c ? "1" : "0") + ", z:" + (z ? "1" : "0") + ", skip:" + (skip ? "1" : "0") + ", bc:" + (cbuff ? "1" : "0"));
            }
Exemple #9
0
    public LibuvSupport(ReadOnlyTargetRules Target) : base(Target)
    {
        /*
         * PublicIncludePaths.AddRange(
         *  new string[] {
         *      "LibuvSupport/"
         *  }
         *  );
         *
         * PrivateIncludePaths.AddRange(
         *  new string[] {
         *      "LibuvSupport"
         *  }
         *  );
         */
        PublicDependencyModuleNames.AddRange(new string[] {
            "Core", "CoreUObject", "Engine"
        });

        RulesAssembly RA;
        FileReference CheckProjectFile;

        UProjectInfo.TryGetProjectForTarget("NeverSalvation", out CheckProjectFile);
        RA = RulesCompiler.CreateProjectRulesAssembly(CheckProjectFile);
        FileReference FR         = RA.GetModuleFileName(this.GetType().Name);
        string        ModulePath = Path.GetDirectoryName(FR.CanonicalName);

        string ThirdPartyPath                  = Path.GetFullPath(Path.Combine(ModulePath, "../../ThirdParty/")); // gets the ThirdParty folder directory path
        string LibuvConnectorPath              = ThirdPartyPath + "libuv/";                                       // gets the Libuv Connector.C 6.1 folder path
        string LibuvConnectorLibraryPath       = LibuvConnectorPath + "lib/";                                     // gets the path of the lib folder
        string LibuvConnectorIncludePath       = LibuvConnectorPath + "include/";                                 // gets the path of the include folder
        string LibuvConnectorImportLibraryName = Path.Combine(LibuvConnectorLibraryPath, "libuv.lib");            // gets the file path and name of the libmysql.lib static import library
        string LibuvConnectorDLLName           = Path.Combine(LibuvConnectorLibraryPath, "libuv.dll");

        if (!File.Exists(LibuvConnectorImportLibraryName))                                                       // check to ensure the static import lib can be located, or else we'll be in trouble
        {
            throw new BuildException(string.Format("{0} could not be found.", LibuvConnectorImportLibraryName)); // log an error message explaining what went wrong if not found
        }
        if (!File.Exists(LibuvConnectorDLLName))                                                                 // check to make sure the dll can be located or else we'll be in trouble
        {
            throw new BuildException(string.Format("{0} could not be found.", LibuvConnectorDLLName));           // log an error message explaining what went wrong if not found
        }
        PublicIncludePaths.Add(LibuvConnectorIncludePath);                                                       // add the "include" folder to our dependencies. I've chosen PrivateIncludePaths since I hide the mysql headers from external code
        PublicLibraryPaths.Add(LibuvConnectorLibraryPath);                                                       // add the "lib" folder to our dependencies
        PublicAdditionalLibraries.Add(LibuvConnectorImportLibraryName);                                          // add libmysql.lib static import library as a dependency
        PublicDelayLoadDLLs.Add(LibuvConnectorDLLName);                                                          // add libmysql.dll as a dll
        RuntimeDependencies.Add(new RuntimeDependency("$(ProjectDir)/Binaries/Win64/libuv.dll"));                // 自动添加libmysql.dll到指定的打包目录中
    }
        public override int GetHashCode()
        {
            var hashCode = 1398195996;

            hashCode = hashCode * -1521134295 + ra.GetHashCode();
            hashCode = hashCode * -1521134295 + RA.GetHashCode();
            hashCode = hashCode * -1521134295 + cod.GetHashCode();
            hashCode = hashCode * -1521134295 + Cod.GetHashCode();
            hashCode = hashCode * -1521134295 + nota.GetHashCode();
            hashCode = hashCode * -1521134295 + Nota.GetHashCode();
            hashCode = hashCode * -1521134295 + frequencia.GetHashCode();
            hashCode = hashCode * -1521134295 + Frequencia.GetHashCode();

            if (hashCode < 0)
            {
                hashCode = -hashCode;
            }

            return(hashCode);
        }
Exemple #11
0
 internal SerializedGruntTask ToSerializedGruntTask()
 {
     return(new SerializedGruntTask
     {
         Name = this.Name,
         Aliases = this.Aliases,
         Author = this.Author.ToSerializedGruntTaskAuthor(),
         Description = this.Description,
         Help = this.Help,
         Language = this.Language,
         CompatibleDotNetVersions = this.CompatibleDotNetVersions,
         Code = this.Code,
         TaskingType = this.TaskingType,
         UnsafeCompile = this.UnsafeCompile,
         TokenTask = this.TokenTask,
         Options = this.Options.OrderBy(O => O.Id).Select(O => O.ToSerializedGruntTaskOption()).ToList(),
         ReferenceSourceLibraries = this.ReferenceSourceLibraries.Select(RSL => RSL.ToSerializedReferenceSourceLibrary()).ToList(),
         ReferenceAssemblies = this.ReferenceAssemblies.Select(RA => RA.ToSerializedReferenceAssembly()).ToList(),
         EmbeddedResources = this.EmbeddedResources.Select(ER => ER.ToSerializedEmbeddedResource()).ToList()
     });
 }
        public ActionResult SaveRA(RA rA)
        {
            var    RAInDb     = _context.RAs.SingleOrDefault(r => r.StaffID == rA.StaffID);
            Person userperson = _context.People.SingleOrDefault(p => p.ID == 0);

            if (RAInDb == null)
            {
                RAInDb         = new Models.RA();
                RAInDb.StaffID = rA.StaffID;
                RAInDb.Creator = userperson;
                RAInDb.Created = DateTime.Now;
                _context.RAs.Add(RAInDb);
            }

            RAInDb.UUID            = rA.UUID;
            RAInDb.PDSRoleID       = rA.PDSRoleID;
            RAInDb.PLUSUpdatedID   = rA.PLUSUpdatedID;
            RAInDb.ESRUpdatedID    = rA.ESRUpdatedID;
            RAInDb.EGifL3          = rA.EGifL3;
            RAInDb.Declaration     = rA.Declaration;
            RAInDb.GoLiveApproved  = rA.GoLiveApproved;
            RAInDb.GLALocked       = rA.GLALocked;
            RAInDb.CHGoLiveAprv    = rA.CHGoLiveAprv;
            RAInDb.CHGLALocked     = rA.CHGLALocked;
            RAInDb.AccountCreated  = rA.AccountCreated;
            RAInDb.AddCITRIX       = rA.AddCITRIX;
            RAInDb.PasswordEmailed = rA.PasswordEmailed;
            RAInDb.AccessToPlus    = rA.AccessToPlus;
            RAInDb.UUIDAddESR      = rA.UUIDAddESR;
            RAInDb.FullyCompliant  = rA.FullyCompliant;
            RAInDb.RAComments      = rA.RAComments;

            RAInDb.Modified = DateTime.Now;
            RAInDb.Modifier = userperson;

            _context.SaveChanges();

            return(RedirectToAction("Index", "Person"));
        }
        public ActionResult RA(int id)
        {
            var person = _context.People.SingleOrDefault(p => p.ID == id);

            if (person == null)
            {
                return(HttpNotFound());
            }
            ViewBag.person = person;
            RA RA = person.RA;

            if (RA == null)
            {
                RA         = new RA();
                RA.StaffID = person.ID;
            }

            ViewBag.PDSRoleID     = new SelectList(_context.Statuses.Where(s => s.RA_PDS), "ID", "StatusDesc");
            ViewBag.PLUSUpdatedID = new SelectList(_context.Statuses.Where(s => s.RA_PLUS), "ID", "StatusDesc");
            ViewBag.ESRUpdatedID  = new SelectList(_context.Statuses.Where(s => s.RA_ESR), "ID", "StatusDesc");

            return(View(RA));
        }
Exemple #14
0
 void copyMenu_Click(object sender, EventArgs e)
 {
     Clipboard.SetText(dec.ToString() + ", " + RA.ToString());
 }
Exemple #15
0
        public ActionResult Statistics()
        {
            //Shows total number of Reports in Db
            int total = (from p in db.Forms
                         select p).Count();

            ViewBag.total = total.ToString();


            //Shows Total number of RAs

            var roles = db.Roles.Where(r => r.Name == "RA");

            if (roles.Any())
            {
                var roleId = roles.First().Id;
                int totRA  = (from r in db.Users
                              where r.Roles.Any(k => k.RoleId == roleId)
                              select r).Count();

                ViewBag.totRA = totRA.ToString();

                //Gets array of all RAs in the database

                var RAA = roles.First().Id;
                var RAs = (from a in db.Users
                           where a.Roles.Any(k => k.RoleId == RAA)
                           select a).ToList();

                ViewBag.RAs = RAs.Count();


                //Shows number of reports per RA

                List <RA> NumRepRA = new List <RA>();


                foreach (var RA in RAs)
                {
                    RA ra = new RA();

                    ra.UserName = RA.Emp_Name + " " + RA.Emp_Surname;

                    int totReportsPerPA = (from k in db.Forms
                                           where k.UserName == RA.UserName
                                           select k).Count();

                    ra.NumberOfReports = totReportsPerPA;

                    NumRepRA.Add(ra);
                }

                ViewBag.NumRepRA = NumRepRA;
            }



            //Shows Total number of Types of Reports (Incident)
            int totTorInc = (from k in db.Forms
                             where k.TOR == "Incident"
                             select k).Count();

            ViewBag.totTorInc = totTorInc;

            //Shows Total number of Types of Reports (Illness)
            int totTorIll = (from k in db.Forms
                             where k.TOR == "Illness"
                             select k).Count();

            ViewBag.totTorIll = totTorIll;


            //Shows Total number of Reports for first year students
            int totFirstyear = (from n in db.Forms
                                where n.YOS == 1
                                select n).Count();

            ViewBag.totFirstyear = totFirstyear.ToString();

            //Shows Total number of Reports for second year students
            int totSecondyear = (from n in db.Forms
                                 where n.YOS == 2
                                 select n).Count();

            ViewBag.totSecondyear = totSecondyear.ToString();

            //Shows Total number of Reports for third year students
            int totThirdyear = (from n in db.Forms
                                where n.YOS == 3
                                select n).Count();

            ViewBag.totThirdyear = totThirdyear.ToString();


            //Shows Total number of Reports for Fourth year students
            int totFourthyear = (from n in db.Forms
                                 where n.YOS == 4
                                 select n).Count();

            ViewBag.totFourthyear = totFourthyear.ToString();

            //Shows Total number of Reports for Fifth year students
            int totFifthyear = (from n in db.Forms
                                where n.YOS == 5
                                select n).Count();

            ViewBag.totFifthyear = totFifthyear.ToString();



            return(View());
        }
Exemple #16
0
 override public String ToString()
 {
     return(HR_name + "," + Proper_name + String.Format(" RA:{0},Dec:{1},mag:{2}", RA.ToString(), Dec.ToString(), Magnitude.ToString()));
 }
Exemple #17
0
        static void Main(string[] args)
        {
            Aluno[] alunos = new Aluno[50];
            int     qtd    = 0;
            int     op;

            do
            {
                Console.Clear();
                Console.WriteLine("***** MENU *****");
                Console.WriteLine("0 - SAIR");
                Console.WriteLine("1 - CADASTRAR ALUNO");
                Console.WriteLine("2 - EXIBIR ALUNOS");
                Console.WriteLine("3 - EXIBIR APROVADOS");
                Console.WriteLine("4 - EXIBIR REPROVADOS");
                Console.WriteLine("5 - EDITAR ALUNOS");
                Console.WriteLine("6 - ORDENAR POR NOTA");
                Console.WriteLine("7 - EXCLUIR ALUNOS");
                Console.WriteLine("\nEscolha uma opcao: ");
                op = Convert.ToInt32(Console.ReadLine());

                switch (op)
                {
                case 0:
                    Console.WriteLine("Pressione qualquer tecla para sair...");
                    Console.ReadKey();
                    break;


                case 1:
                    string NomeAluno, RA, Idade;
                    float  Nota1, Nota2, media, NotaPim;
                    Console.WriteLine("***** CADASTRAR ALUNOS *****");
                    Console.WriteLine("Entre com o Nome: ");
                    NomeAluno = Console.ReadLine();
                    NomeAluno = NomeAluno.ToUpper();
                    Console.WriteLine("Entre com o RA: ");
                    RA = Console.ReadLine();
                    RA = RA.ToUpper();
                    Console.WriteLine("Entre com a Idade: ");
                    Idade = Console.ReadLine();
                    Console.WriteLine("Entre com a Nota da B1: ");
                    Nota1 = Convert.ToSingle(Console.ReadLine());
                    Console.WriteLine("Entre com a Nota da B2: ");
                    Nota2 = Convert.ToSingle(Console.ReadLine());
                    Console.WriteLine("Entre com a Nota do PIM: ");
                    NotaPim = Convert.ToSingle(Console.ReadLine());

                    media = ((Nota1 * 4) + (Nota2 * 4) + (NotaPim * 2)) / 10;


                    Aluno aluno = new Aluno();


                    aluno.NomeAluno = NomeAluno;
                    aluno.RA        = RA;
                    aluno.Idade     = Convert.ToInt32(Idade);
                    aluno.Nota1     = Nota1;
                    aluno.Nota2     = Nota2;
                    aluno.NotaPim   = NotaPim;
                    aluno.Media     = media;



                    alunos[qtd] = aluno;
                    qtd++;
                    break;

                case 2:
                    Console.Clear();

                    Console.WriteLine("***** ALUNOS CADASTRADOS *****");


                    for (int x = 0; x < qtd; x++)
                    {
                        Console.WriteLine("\n\t ID ALUNO: " + x);
                        Console.WriteLine("Aluno: {0}\tRA: {1}\t\tIdade: {2}\tNota B1: {3}\tNota B2: {4}\tNota PIM: {5}\tMedia: {6}",
                                          alunos[x].NomeAluno, alunos[x].RA, alunos[x].Idade, alunos[x].Nota1, alunos[x].Nota2, alunos[x].NotaPim, alunos[x].Media);
                    }
                    Console.WriteLine("Pressione uma tecla para voltar ao menu");
                    Console.ReadKey();
                    break;

                case 3:
                    Console.Clear();
                    Console.WriteLine("***** ALUNOS APROVADOS *****");


                    for (int x = 0; x < qtd; x++)
                    {
                        if (alunos[x].Media >= 5)
                        {
                            alunos[x].Status();
                        }
                    }

                    Console.WriteLine("Pressione uma tecla para voltar ao menu");
                    Console.ReadKey();
                    break;


                case 4:
                    Console.Clear();
                    Console.WriteLine("***** ALUNOS REPROVADOS *****");

                    for (int x = 0; x < qtd; x++)
                    {
                        if (alunos[x].Media < 5)
                        {
                            alunos[x].Status();
                        }
                    }
                    Console.WriteLine("Pressione uma tecla para voltar ao menu");
                    Console.ReadKey();
                    break;

                case 5:

                    string NomeEditar;
                    string RAEditar;
                    int    IdadeEditar;
                    float  Nota1Editar;
                    float  Nota2Editar;
                    float  NotaPimEditar;
                    int    localArray;

                    Console.Clear();
                    Console.WriteLine("***** EDITAR ALUNOS *****");
                    Console.WriteLine("Entre com o RA do aluno que deseja alterar: ");
                    string raPesquisar = Console.ReadLine();
                    raPesquisar = raPesquisar.ToUpper();

                    localArray = PesquisarAluno(raPesquisar);
                    Console.ReadKey();

                    //condição editar aluno s/n
                    //condição nao encontrar o aluno qtd +1
                    if (localArray == qtd + 1)
                    {
                        Console.WriteLine("Aluno não encontrado, tente novamente...");
                        break;
                    }
                    else
                    {
                        string opcao;

                        Console.WriteLine("Editar aluno s/n ?");
                        opcao = Console.ReadLine();
                        opcao = opcao.ToUpper();

                        if (opcao == "s" || opcao == "S")
                        {
                            Console.WriteLine("Entre com o Nome: ");
                            NomeEditar = Console.ReadLine();
                            NomeEditar = NomeEditar.ToUpper();

                            Console.WriteLine("Entre com o RA: ");
                            RAEditar = Console.ReadLine();
                            RAEditar = RAEditar.ToUpper();

                            Console.WriteLine("Entre com a Idade: ");
                            IdadeEditar = Convert.ToInt32(Console.ReadLine());
                            Console.WriteLine("Entre com a Nota da B1: ");
                            Nota1Editar = float.Parse(Console.ReadLine());
                            Console.WriteLine("Entre com a Nota da B2: ");
                            Nota2Editar = float.Parse(Console.ReadLine());

                            Console.WriteLine("Entre com a Nota do PIM: ");
                            NotaPimEditar = float.Parse(Console.ReadLine());

                            //media = (Nota1 * 4) + (Nota2 * 4) + (NotaPim * 2) / 10;
                            float mediaEditar = ((Nota1Editar * 4) + (Nota2Editar * 4) + (NotaPimEditar * 2)) / 10;

                            Aluno alunoEditar = new Aluno();

                            alunoEditar.NomeAluno = NomeEditar;
                            alunoEditar.RA        = RAEditar;
                            alunoEditar.Idade     = Convert.ToInt32(IdadeEditar);
                            alunoEditar.Nota1     = (Nota1Editar);
                            alunoEditar.Nota2     = (Nota2Editar);
                            alunoEditar.NotaPim   = (NotaPimEditar);
                            alunoEditar.Media     = (mediaEditar);
                            alunos[localArray]    = alunoEditar;


                            Console.WriteLine("aluno alterado com sucesso! Pressione qualquer tecla para voltar ao menu");
                            Console.ReadKey();
                        }
                        else
                        {
                            Console.WriteLine("Cancelando....");
                            Console.ReadKey();
                            break;
                        }
                    }
                    break;

                case 6:
                    Console.Clear();
                    Console.WriteLine("***** ORDENAR ALUNOS *****");


                    for (int x = 0; x < qtd; x++)
                    {
                        ordenar();
                        alunos[x].Status();
                    }



                    Console.WriteLine("aluno removido com sucesso! Pressione qualquer tecla para voltar ao menu");
                    Console.ReadKey();
                    break;

                case 7:
                    Console.Clear();
                    Console.WriteLine("***** EXCLUIR ALUNOS *****");
                    Console.WriteLine("Lista te alunos: ");
                    for (int x = 0; x < qtd; x++)
                    {
                        Console.WriteLine("\n\t ID ALUNO: " + x);
                        Console.WriteLine("Aluno: {0}\tRA: {1}\t\tIdade: {2}\tNota B1: {3}\tNota B2: {4}\tNota PIM: {5}\tMedia: {6}",
                                          alunos[x].NomeAluno, alunos[x].RA, alunos[x].Idade, alunos[x].Nota1, alunos[x].Nota2, alunos[x].NotaPim, alunos[x].Media);
                    }

                    Console.WriteLine("\nEntre com o ID do aluno que deseja excluir: ");
                    int id = Convert.ToInt32(Console.ReadLine());
                    int aux;


                    for (int x = id; x < qtd; x++)
                    {
                        aux       = x + 1;
                        alunos[x] = alunos[aux];
                    }
                    qtd = qtd - 1;
                    Console.WriteLine("aluno removido com sucesso! Pressione qualquer tecla para voltar ao menu");
                    Console.ReadKey();
                    break;

                default:
                    Console.WriteLine("Opcao invalida, pressione qualquer tecla para voltar ao menu");
                    Console.ReadKey();
                    break;
                }
            } while (op != 0);

            int PesquisarAluno(string raEditar)
            {
                int aux = qtd + 1;

                for (int x = 0; x <= qtd; x++)
                {
                    if (alunos[x] != null && raEditar.Equals(alunos[x].RA))
                    {
                        alunos[x].Status();
                        aux = x;
                    }
                }
                return(aux);
            }

            void ordenar()
            {
                Aluno AlunoAux = new Aluno();

                int x, y;

                for (x = 0; x <= qtd; x++)
                {
                    if (alunos[x] != null)
                    {
                        for (y = 0; y <= qtd; y++)
                        {
                            if (alunos[y] != null && alunos[x].Media > alunos[y].Media)
                            {
                                AlunoAux  = alunos[x];
                                alunos[x] = alunos[y];
                                alunos[y] = AlunoAux;
                            }
                        }
                    }
                }
            }
        }
 public override int GetHashCode()
 {
     return(RA.GetHashCode() ^ Dec.GetHashCode());
 }
 public bool Equals(EquatorialCoordinate obj)
 {
     return
         (RA.Equals(obj.RA) &&
          Dec.Equals(obj.Dec));
 }
Exemple #20
0
        private static float getComboDamage(Obj_AI_Base enemy)
        {
            if (enemy != null)
            {
                var damage = 0d;

                damage = damage += Player.Instance.GetAutoAttackDamage(enemy, true);

                if (Hydra.IsReady() && Hydra.IsOwned())
                {
                    damage = damage + Player.Instance.GetItemDamage(enemy, ItemId.Ravenous_Hydra_Melee_Only);
                }
                if (Tiamat.IsReady() && Tiamat.IsOwned())
                {
                    damage = damage + Player.Instance.GetItemDamage(enemy, ItemId.Ravenous_Hydra_Melee_Only);
                }
                if (BOTRK.IsReady() && BOTRK.IsOwned())
                {
                    damage = damage + Player.Instance.GetItemDamage(enemy, ItemId.Blade_of_the_Ruined_King);
                }
                if (Cutl.IsReady() && Cutl.IsOwned())
                {
                    damage = damage + Player.Instance.GetItemDamage(enemy, ItemId.Bilgewater_Cutlass);
                }
                if (Sheen.IsReady() && Sheen.IsOwned())
                {
                    damage = damage + Player.Instance.GetAutoAttackDamage(enemy) + Player.Instance.BaseAttackDamage * 2;
                }
                if (TriForce.IsReady() && TriForce.IsOwned())
                {
                    damage = damage + Player.Instance.GetAutoAttackDamage(enemy) + Player.Instance.BaseAttackDamage * 2;
                }

                if (IGNITE.IsReady())
                {
                    damage += Player.Instance.GetSummonerSpellDamage(enemy, DamageLibrary.SummonerSpells.Ignite);
                }

                if (QA.IsReady())
                {
                    damage += Player.Instance.GetSpellDamage(enemy, SpellSlot.Q);
                }
                if (WA.IsReady())
                {
                    damage += Player.Instance.GetSpellDamage(enemy, SpellSlot.W);
                }
                if (EA.IsReady())
                {
                    damage += Player.Instance.GetSpellDamage(enemy, SpellSlot.E);
                }
                if (RA.IsReady())
                {
                    damage += Player.Instance.GetSpellDamage(enemy, SpellSlot.R);
                }

                //if (QS.IsReady()) damage += Player.Instance.GetSpellDamage(enemy, SpellSlot.Q);
                //if (WS.IsReady()) damage += Player.Instance.GetSpellDamage(enemy, SpellSlot.W);
                //if (ES.IsReady()) damage += Player.Instance.GetSpellDamage(enemy, SpellSlot.E);
                //if (RS.IsReady()) damage += Player.Instance.GetSpellDamage(enemy, SpellSlot.R);

                //if (QT.IsReady()) damage += Player.Instance.GetSpellDamage(enemy, SpellSlot.Q);
                //if (WT.IsReady()) damage += Player.Instance.GetSpellDamage(enemy, SpellSlot.W);
                //if (ET.IsReady()) damage += Player.Instance.GetSpellDamage(enemy, SpellSlot.E);
                //if (RT.IsReady()) damage += Player.Instance.GetSpellDamage(enemy, SpellSlot.R);

                //if (QC.IsReady()) damage += Player.Instance.GetSpellDamage(enemy, SpellSlot.Q);
                //if (WC.IsReady()) damage += Player.Instance.GetSpellDamage(enemy, SpellSlot.W);
                //if (EC.IsReady()) damage += Player.Instance.GetSpellDamage(enemy, SpellSlot.E);
                //if (RC.IsReady()) damage += Player.Instance.GetSpellDamage(enemy, SpellSlot.R);
                return((float)damage);
            }
            return(0);
        }