returns all BonusObj's that are "active" @param pc TODO @return active bonuses
(PlayerCharacter pc)
| 102 | * @return active bonuses |
| 103 | */ |
| 104 | @Override |
| 105 | public List<BonusObj> getActiveBonuses(PlayerCharacter pc) |
| 106 | { |
| 107 | final List<BonusObj> aList = new ArrayList<>(); |
| 108 | for (BonusObj bonus : getBonuses()) |
| 109 | { |
| 110 | if (pc.isApplied(bonus)) |
| 111 | { |
| 112 | aList.add(bonus); |
| 113 | } |
| 114 | } |
| 115 | return aList; |
| 116 | } |
| 117 | |
| 118 | /** |
| 119 | * Sets all the BonusObj's to "active" |
nothing calls this directly
no test coverage detected