private void LoadFightCheckpoints() { String zoneName = ActGlobals.oFormActMain.CurrentZone; checkPointDataTable = CheckPointDataTableFactory.CreateCheckPointDataTable(zoneName); speedRunTrackerTable.UpdateCheckPointDataCells(checkPointDataTable); }
private void LoadFightCheckpoints() { String zoneName = ActGlobals.oFormActMain.CurrentZone; checkPointDataTable = new CheckPointDataTable(zoneName, runTimeTrackerTable); runTimeTrackerTable.UpdateCheckPointDataCells(checkPointDataTable); }
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]; } }
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); }
public void DeInitPlugin() { trackerPage = null; currentFightData = null; fightDataFactory = null; fightData = null; checkPointDataTable = null; speedRunTrackerTable = null; }
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(); }
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(); }
/* * 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)); }
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)); }
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)); }