OGS Java API Spec

ogs.core
Class Modifier

java.lang.Object
  |
  +--ogs.support.Object
        |
        +--ogs.core.Modifier
All Implemented Interfaces:
EventListener
Direct Known Subclasses:
Ability.Modifier

public class Modifier
extends Object

A modifier is an integer value added to another integer value. If the value of the modifier is negative, the modifier is subtracted from the value.


Nested Class Summary
 class Modifier.Event
          An event indicating that a modifier has changed value.
 
Field Summary
 
Fields inherited from class ogs.support.Object
listeners
 
Constructor Summary
Modifier()
          Create a modifier with a zero (0) value.
Modifier(int value)
          Create a modifier with a specified value.
 
Method Summary
 int getValue()
          Determine the value of the modifier.
 void setValue(int value)
          Change the value of the modifier.
 
Methods inherited from class ogs.support.Object
addListener, handleEvent, notifyListeners, removeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Modifier

public Modifier()
Create a modifier with a zero (0) value.


Modifier

public Modifier(int value)
Create a modifier with a specified value.

Parameters:
value - Value of the modifier.
Method Detail

getValue

public int getValue()
Determine the value of the modifier.

Returns:
Value of the modifier.

setValue

public void setValue(int value)
Change the value of the modifier. Notifies listeners.

Parameters:
value - Value of the modifier.

OGS Java API Spec