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.
Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Need some advice how to mapping java.util.Map<EnumType, WrappedType>  RSS feed

 
Bupjae Lee
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!