Ticket #60 (closed task: fixed)
Store XML Game Components with maps rather than lists
| Reported by: | knowknowledge | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | 0.3.0 |
| Component: | Source | Version: | |
| Keywords: | xml,component | Cc: |
Description
The XML Game Component classes: Alliances, Engines, Models, Planets, Weapons.
All of these classes parse an xml file and generate a set of objects. They all use GetX() lookup functions, but the lookup does an O(n) search for the final object.
Changing the internal storage to a map rather than a list would speed up lookups. It would also make the external and internal interfaces match.
Change History
Note: See
TracTickets for help on using
tickets.
Fixed by creating the Component and Components virtual classes.