This week's book giveaway is in the Java 9 forum. We're giving away four copies of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications and have Sander Mak & Paul Bakker on-line! See this thread for details.
Need some advice how to mapping java.util.Map<EnumType, WrappedType>
posted 7 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.