public void addPass(int num, bool wasFired, bool hit, float projFireTime, float totalPassTime, float minProjX, float minProjY, float minAstX, float minAstY) { PassDataModel tempPassData = new PassDataModel(); tempPassData.passID = num; tempPassData.wasFired = wasFired; tempPassData.hit = hit; tempPassData.projFireTime = projFireTime; tempPassData.totalPassTime = totalPassTime; tempPassData.minProjCoordX = minProjX; tempPassData.minProjCoordY = minProjY; tempPassData.minAsCoordX = minAstX; tempPassData.minAsCoordY = minAstY; passList.Enqueue(tempPassData); }
public string returnPassData() { string output = ""; while (passList.Count != 0) { PassDataModel temp = passList.Dequeue(); output += "(" + temp.passID + "; "; output += temp.wasFired + "; "; output += temp.hit + "; "; output += temp.projFireTime + "; "; output += temp.projFireTime + "; "; output += temp.totalPassTime + "; "; output += temp.minProjCoordX + "; "; output += temp.minProjCoordY + "; "; output += temp.minAsCoordX + "; "; output += temp.minAsCoordY + ")"; } return(output); }