ogs.core
Class Modifiers
java.lang.Object
|
+--ogs.support.Object
|
+--ogs.core.Modifiers
- All Implemented Interfaces:
- EventListener
- public class Modifiers
- extends Object
A list of modifiers.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Modifiers
public Modifiers()
addModifier
public void addModifier(Modifier modifier)
- Add a modifier to this list of modifiers. The total value is
updated accordingly and observers are notified.
- Parameters:
modifier
- A modifier.
removeModifier
public void removeModifier(Modifier modifier)
- Remove a modifier from this list of modifiers. The total value is
updated accordingly and observers are notified.
- Parameters:
modifier
- A modifier.
getValue
public int getValue()
- Determine the total value of all modifiers in this list.
- Returns:
- Total value of all modifiers in this list.
handleEvent
public void handleEvent(Modifier.Event event)
- Update the total value when a modifier changes value.
- Parameters:
event
- An event.