Need some advice how to mapping java.util.Map<EnumType, WrappedType>
posted 6 years ago
I'm working for making some web game.
Each player controls some units for competeing each others. (Like pokemon?)
Each unit has some "prototype" attribute, and as unit gets experience, player can be able "customize" that unit.
Each unit will use one weapon.
Weapons can be grouped (like sword, staff, etc).
Some of units would be more effective when they use staff than sword.
The problem is, I don't know how to write "weapon profiency" information in the prototype entity.
I want to know what annotation would be effective for UnitIni.weaponProfiency.