An UnitSetModelFactory is a ModeModelFactory that produces an UnitSetModel for the current Game Mode
| 26 | * for the current Game Mode |
| 27 | */ |
| 28 | public class UnitSetModelFactory implements ModeModelFactory |
| 29 | { |
| 30 | |
| 31 | /* |
| 32 | * Note: It would be nice someday if this wasn't necessary as a separate |
| 33 | * class. A more "CDOM-like" structure in the GameMode object would allow |
| 34 | * the UnitSet to be grabbed "generically" as an ObjectKey, but that is just |
| 35 | * not in place today for GameMode. |
| 36 | */ |
| 37 | |
| 38 | @Override |
| 39 | public UnitSetModel generate(GameMode mode) |
| 40 | { |
| 41 | return new UnitSetModel(mode.getUnitSet()); |
| 42 | } |
| 43 | } |
nothing calls this directly
no outgoing calls
no test coverage detected