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

Method getGameModes

code/src/java/pcgen/core/Campaign.java:114–132  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

112 private DefaultListFacade<GameMode> gameModes = null;
113
114 public ListFacade<GameMode> getGameModes()
115 {
116 if (gameModes == null)
117 {
118 gameModes = new DefaultListFacade<>();
119 List<String> modes = getSafeListFor(ListKey.GAME_MODE);
120 for (String string : modes)
121 {
122 for (GameMode game : SystemCollections.getUnmodifiableGameModeList())
123 {
124 if (game.getAllowedModes().contains(string))
125 {
126 gameModes.addElement(game);
127 }
128 }
129 }
130 }
131 return gameModes;
132 }
133}

Callers

nothing calls this directly

Calls 5

getAllowedModesMethod · 0.80
getSafeListForMethod · 0.65
containsMethod · 0.65
addElementMethod · 0.65

Tested by

no test coverage detected