MCPcopy Create free account
hub / github.com/PCGen/pcgen / emptyLists

Method emptyLists

code/src/java/pcgen/core/Globals.java:592–634  ·  view source on GitHub ↗

Clears all lists of game data.

()

Source from the content-addressed store, hash-verified

590 * Clears all lists of game data.
591 */
592 public static void emptyLists()
593 {
594 // These lists do not need cleared; they are tied to game mode
595 // alignmentList
596 // checkList
597 // gameModeList
598 // campaignList
599 // statList
600 // All other lists should be cleared!!!
601 //////////////////////////////////////
602 // DO NOT CLEAR THESE HERE!!!
603 // They only get loaded once.
604 //
605 //birthplaceList.clear();
606 //cityList.clear();
607 //hairStyleList.clear();
608 //helpContextFileList.clear();
609 //interestsList.clear();
610 //locationList.clear();
611 //paperInfo.clear();
612 //phobiaList.clear();
613 //phraseList.clear();
614 //schoolsList.clear();
615 //sizeAdjustmentList.clear();
616 //specialsList.clear();
617 //speechList.clear();
618 //traitList.clear();
619 //unitSet.clear();
620 //////////////////////////////////////
621
622 // Clear Maps (not strictly necessary, but done for consistency)
623 VisionType.clearConstants();
624 FactKey.clearConstants();
625 FactSetKey.clearConstants();
626
627 // Perform other special cleanup
628 Equipment.clearEquipmentTypes();
629 SettingsHandler.getGameAsProperty().get().clearLoadContext();
630
631 RaceType.clearConstants();
632 CNAbilityFactory.reset();
633 MovementType.clearConstants();
634 }
635
636 /**
637 * Execute post export commands for standard files

Callers 15

setUpMethod · 0.95
setUpMethod · 0.95
setUpMethod · 0.95
setUpMethod · 0.95
setUpMethod · 0.95
setUpPCMethod · 0.95
setUpPCMethod · 0.95
setUpMethod · 0.95
tearDownMethod · 0.95
setUpMethod · 0.95
tearDownMethod · 0.95
setUpMethod · 0.95

Calls 10

clearConstantsMethod · 0.95
clearConstantsMethod · 0.95
clearConstantsMethod · 0.95
clearEquipmentTypesMethod · 0.95
getGameAsPropertyMethod · 0.95
clearConstantsMethod · 0.95
resetMethod · 0.95
clearConstantsMethod · 0.95
clearLoadContextMethod · 0.80
getMethod · 0.65

Tested by 15

setUpMethod · 0.76
setUpMethod · 0.76
setUpMethod · 0.76
setUpMethod · 0.76
setUpMethod · 0.76
setUpPCMethod · 0.76
setUpPCMethod · 0.76
setUpMethod · 0.76
tearDownMethod · 0.76
setUpMethod · 0.76
tearDownMethod · 0.76
setUpMethod · 0.76