コード例 #1
0
 public boolean canSpendOn(IMagic magic) {
   IGenericTraitCollection traitCollection = character.getTraitCollection();
   if (!pool.isAllowedFor(traitCollection, magic)) {
     return false;
   }
   return pointsSpent < pool.getAdditionalMagicCount(traitCollection);
 }
コード例 #2
0
 public int getTotalPoints() {
   return pool.getAdditionalMagicCount(character.getTraitCollection());
 }