Returns the SpellBook for the given SpellBook name and the Player Character identified by the given CharID. @param id The CharID identifying the PlayerCharacter for which the SpellBook for the given name should be returned @param name The name of the SpellBook to be
(CharID id, String name)
| 216 | * Character identified by the given CharID |
| 217 | */ |
| 218 | public SpellBook getBookNamed(CharID id, String name) |
| 219 | { |
| 220 | Map<String, SpellBook> componentMap = getCachedMap(id); |
| 221 | if (componentMap == null) |
| 222 | { |
| 223 | return null; |
| 224 | } |
| 225 | return componentMap.get(name); |
| 226 | } |
| 227 | |
| 228 | /** |
| 229 | * Returns a non-null Collection of SpellBook names in this SpellBookFacet |
no test coverage detected