Exemple #1
0
 public void UpdateCurrentRunWorldRecordDifference(int currentPhase, TrackerHP currentRunWorldRecordRunHPDifference)
 {
     Rows[currentPhase].Cells[TIME_DIFFERENCE_COLUMN].Style = new DataGridViewCellStyle {
         ForeColor = currentRunWorldRecordRunHPDifference.TextColor
     };
     Rows[currentPhase].Cells[TIME_DIFFERENCE_COLUMN].Value = currentRunWorldRecordRunHPDifference.ToString();
 }
Exemple #2
0
        public static TrackerHP CalculateCurrentRunWorldRecordRunCheckPointHPDifference(FightData fightData, CheckPointDataTable checkPointDataTable, int currentPhase)
        {
            int bossTotalHP = checkPointDataTable.BossTotalHP;

            TrackerHP currentRunCheckPointHP  = new TrackerHP(bossTotalHP, fightData.TotalDamageDoneToBoss, false);
            TrackerHP worldRecordCheckPointHP = (TrackerHP)checkPointDataTable.CheckPointDatas[currentPhase];

            return(currentRunCheckPointHP.Difference(worldRecordCheckPointHP));
        }
        private void UpdateCurrentRunWorldRecordRunDifferenceToTracker()
        {
            TrackerData checkPointData = checkPointDataTable.CheckPointDatas[currentPhase];

            if (checkPointDataTable.CheckPointTypes[currentPhase] == DataType.kDataTypeTime)
            {
                TrackerTime currentRunWorldRecordRunCheckPointTimeDifference = DifferenceCalculator.CalculateCurrentRunWorldRecordRunCheckPointTimeDifference(fightData, checkPointDataTable, currentPhase);
                speedRunTrackerTable.UpdateCurrentRunWorldRecordDifference(currentPhase, currentRunWorldRecordRunCheckPointTimeDifference);
            }
            else
            {
                TrackerHP currentRunWorldRecordRunCheckPointHPDifference = DifferenceCalculator.CalculateCurrentRunWorldRecordRunCheckPointHPDifference(fightData, checkPointDataTable, currentPhase);
                speedRunTrackerTable.UpdateCurrentRunWorldRecordDifference(currentPhase, currentRunWorldRecordRunCheckPointHPDifference);
            }
        }
Exemple #4
0
        public void UpdateCheckPointDataCells(CheckPointDataTable checkPointDataTable)
        {
            for (int i = 0; i < checkPointDataTable.PhaseCount - 1; i++)
            {
                if (checkPointDataTable.CheckPointTypes[i] == DataType.kDataTypeTime)
                {
                    TrackerTime checkPointData = (TrackerTime)checkPointDataTable.CheckPointDatas[i];

                    Rows[i].Cells[CHECKPOINT_NAME_COLUMN].Value = checkPointData.CheckPointName;
                    Rows[i].Cells[WORLD_RECORD_COLUMN].Value    = checkPointData.ToString();
                }
                else
                {
                    TrackerHP checkPointData = (TrackerHP)checkPointDataTable.CheckPointDatas[i];

                    Rows[i].Cells[CHECKPOINT_NAME_COLUMN].Value = checkPointData.CheckPointName;
                    Rows[i].Cells[WORLD_RECORD_COLUMN].Value    = checkPointData.ToString();
                }
            }

            Rows[checkPointDataTable.PhaseCount - 1].Cells[CHECKPOINT_NAME_COLUMN].Value = "Clear";
            Rows[checkPointDataTable.PhaseCount - 1].Cells[WORLD_RECORD_COLUMN].Value    = checkPointDataTable.WorldRecordClearTime.ToString();
        }
Exemple #5
0
        public void UpdateCurrentRunData(int currentPhase, int bossTotalHP, int totalDamageDone)
        {
            TrackerHP currentRunTrackerHP = new TrackerHP(bossTotalHP, totalDamageDone, false);

            Rows[currentPhase].Cells[CURRENT_RUN_COLUMN].Value = currentRunTrackerHP.ToString();
        }