public class Modifiers extends java.util.ArrayList<Modifier>
Constructor and Description |
---|
Modifiers() |
Modifier and Type | Method and Description |
---|---|
void |
applyAllOn(Character character)
Applies all modifiers on specified character
|
int |
getDmgBonusFor(WeaponType weapon)
Returns full damage bonus for specified weapon type
|
float |
getDualwieldBonus()
Returns value of dual wielding penalty modifier from all active bonuses
|
java.lang.String |
getInfo()
Get info about all active modifiers
|
int |
getStealthLevel()
Returns stealth level from all bonuses
|
boolean |
isBonus()
Check if any modifier occurs
|
void |
removeAllFrom(Character character)
Removes all modifiers from specified character
|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
public void applyAllOn(Character character)
character
- Game characterpublic void removeAllFrom(Character character)
character
- Game characterpublic boolean isBonus()
public java.lang.String getInfo()
public int getDmgBonusFor(WeaponType weapon)
weapon
- Weapon typepublic float getDualwieldBonus()
public int getStealthLevel()