Damage resistance of structure, armor and shield can be properly
displayed now.
Rearrange Queries namespace.

Each type is now represented by a enum instead of having a global
variable and an accessor function.