src/gui/skydiveorbust/skydiveorbust.c
// Initialize Judgement Data and Scorecard Marks
Initialize Judgement Data and Scorecard Marks
Initialize Judgement Data and Scorecard Marks
struct pg_sdob_judgement_data * PG_SDOB_INIT_JUDGEMENT() {
  struct pg_sdob_judgement_data *judgement = (struct pg_sdob_judgement_data*)malloc(sizeof(struct pg_sdob_judgement_data));
  judgement->video = PG_SDOB_INIT_VIDEO_DATA();
  judgement->marks = PG_SDOB_SCORECARD_INIT_MARKS();
  judgement->ruleSet = (char*)malloc(64 * sizeof(char));
  judgement->ruleSet[0] = '\0';
  judgement->judge = (char*)malloc(64 * sizeof(char));
  judgement->judge[0] = '\0';
  judgement->event = (char*)malloc(128 * sizeof(char));
  judgement->event[0] = '\0';
  judgement->eventStr = (char*)malloc(128 * sizeof(char));
  judgement->eventStr[0] = '\0';
  judgement->comp = (char*)malloc(128 * sizeof(char));
  judgement->comp[0] = '\0';
  judgement->compStr = (char*)malloc(128 * sizeof(char));
  judgement->compStr[0] = '\0';
  judgement->team = (char*)malloc(128 * sizeof(char));
  judgement->team[0] = '\0';
  judgement->teamStr = (char*)malloc(128 * sizeof(char));
  judgement->teamStr[0] = '\0';
  judgement->round = (char*)malloc(64 * sizeof(char));
  judgement->round[0] = '\0';
  judgement->roundStr = (char*)malloc(64 * sizeof(char));
  judgement->roundStr[0] = '\0';
  judgement->sopst = -1.0;
  judgement->prestartTime = 0.0;
  judgement->sowt = -1.0;
  judgement->workingTime = 0.0;
  judgement->postFreezeFrameTime = 0.0;
  judgement->tossStartCount = 0;
  judgement->score = 0.00;
  judgement->scoreMax = 0.00;
  judgement->scoreStr = (char*)malloc(32 * sizeof(char));
  judgement->scoreStr[0] = '\0';
  return judgement;
}
struct pg_sdob_judgement_data * PG_SDOB_INIT_JUDGEMENT ( ) { struct pg_sdob_judgement_data * judgement = ( struct pg_sdob_judgement_data * ) malloc ( sizeof ( struct pg_sdob_judgement_data ) ) ; judgement -> video = PG_SDOB_INIT_VIDEO_DATA ( ) ; judgement -> marks = PG_SDOB_SCORECARD_INIT_MARKS ( ) ; judgement -> ruleSet = ( char * ) malloc ( 64 * sizeof ( char ) ) ; judgement -> ruleSet [ 0 ] = ' \0 ' ; judgement -> judge = ( char * ) malloc ( 64 * sizeof ( char ) ) ; judgement -> judge [ 0 ] = ' \0 ' ; judgement -> event = ( char * ) malloc ( 128 * sizeof ( char ) ) ; judgement -> event [ 0 ] = ' \0 ' ; judgement -> eventStr = ( char * ) malloc ( 128 * sizeof ( char ) ) ; judgement -> eventStr [ 0 ] = ' \0 ' ; judgement -> comp = ( char * ) malloc ( 128 * sizeof ( char ) ) ; judgement -> comp [ 0 ] = ' \0 ' ; judgement -> compStr = ( char * ) malloc ( 128 * sizeof ( char ) ) ; judgement -> compStr [ 0 ] = ' \0 ' ; judgement -> team = ( char * ) malloc ( 128 * sizeof ( char ) ) ; judgement -> team [ 0 ] = ' \0 ' ; judgement -> teamStr = ( char * ) malloc ( 128 * sizeof ( char ) ) ; judgement -> teamStr [ 0 ] = ' \0 ' ; judgement -> round = ( char * ) malloc ( 64 * sizeof ( char ) ) ; judgement -> round [ 0 ] = ' \0 ' ; judgement -> roundStr = ( char * ) malloc ( 64 * sizeof ( char ) ) ; judgement -> roundStr [ 0 ] = ' \0 ' ; judgement -> sopst = -1.0 ; judgement -> prestartTime = 0.0 ; judgement -> sowt = -1.0 ; judgement -> workingTime = 0.0 ; judgement -> postFreezeFrameTime = 0.0 ; judgement -> tossStartCount = 0 ; judgement -> score = 0.00 ; judgement -> scoreMax = 0.00 ; judgement -> scoreStr = ( char * ) malloc ( 32 * sizeof ( char ) ) ; judgement -> scoreStr [ 0 ] = ' \0 ' ; return judgement ; }
Initialize Judgement Data and Scorecard Marks
Initialize Judgement Data and Scorecard Marks