コード例 #1
0
        private void LoadFightCheckpoints()
        {
            String zoneName = ActGlobals.oFormActMain.CurrentZone;

            checkPointDataTable = CheckPointDataTableFactory.CreateCheckPointDataTable(zoneName);
            speedRunTrackerTable.UpdateCheckPointDataCells(checkPointDataTable);
        }
コード例 #2
0
        private void LoadFightCheckpoints()
        {
            String zoneName = ActGlobals.oFormActMain.CurrentZone;

            checkPointDataTable = new CheckPointDataTable(zoneName, runTimeTrackerTable);

            runTimeTrackerTable.UpdateCheckPointDataCells(checkPointDataTable);
        }
コード例 #3
0
 public void UpdateCheckPointDataCells(CheckPointDataTable checkPointDataTable)
 {
     for (int i = 0; i < checkPointDataTable.Count; i++)
     {
         Rows[i].Cells[CHECKPOINT_NAME_COLUMN].Value = checkPointDataTable.CheckPointNames[i];
         Rows[i].Cells[WORLD_RECORD_COLUMN].Value    = checkPointDataTable.WorldRecordCheckPointValues[i];
     }
 }
コード例 #4
0
        static public CheckPointDataTable CreateCheckPointDataTable(String zoneName)
        {
            CheckPointDataTable zoneSpeedRunData = null;
            StreamReader        dataFileReader   = new StreamReader(ZONE_DATA_FILE_NAME);

            zoneSpeedRunData = GetZoneSpeedRunData(zoneName, dataFileReader);

            dataFileReader.Close();

            return(zoneSpeedRunData);
        }
コード例 #5
0
        public void DeInitPlugin()
        {
            trackerPage      = null;
            currentFightData = null;

            fightDataFactory = null;
            fightData        = null;

            checkPointDataTable  = null;
            speedRunTrackerTable = null;
        }
コード例 #6
0
        public RunTimeTrackerTable(CheckPointDataTable checkPointDataTable)
        {
            this.checkPointDataTable = checkPointDataTable;

            ColumnCount      = COLUMN_COUNT;
            AutoSizeRowsMode = DataGridViewAutoSizeRowsMode.DisplayedCellsExceptHeaders;

            Location = new Point(0, 0);
            Size     = new Size(520, 150);

            UpdateTitles();
            UpdateCheckPointDataCells();
        }
コード例 #7
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();
        }
コード例 #8
0
        /*
         * TODO: 시간 차이 확인
         */
        public static TrackerTime CalculateCurrentRunWorldRecordRunClearTimeDifference(FightData fightData, CheckPointDataTable checkPointDataTable)
        {
            TrackerTime currentRunClearTime  = new TrackerTime(TimeFormatter.Format(fightData.Duration), false);
            TrackerTime worldRecordClearTime = checkPointDataTable.WorldRecordClearTime;

            return(currentRunClearTime.Difference(worldRecordClearTime));
        }
コード例 #9
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));
        }
コード例 #10
0
        public static TrackerTime CalculateCurrentRunWorldRecordRunCheckPointTimeDifference(FightData fightData, CheckPointDataTable checkPointDataTable, int currentPhase)
        {
            TrackerTime currentRunTrackerTime     = new TrackerTime(TimeFormatter.Format(fightData.Duration), false);
            TrackerTime worldRecordRunTrackerTime = (TrackerTime)checkPointDataTable.CheckPointDatas[currentPhase];

            return(currentRunTrackerTime.Difference(worldRecordRunTrackerTime));
        }