rle.simple.player
Class EquipmentBonusComputer

java.lang.Object
  extended by rle.core.vm.PlugInBase
      extended by rle.simple.player.EquipmentBonusComputer
All Implemented Interfaces:
RuntimeComputer, PlugIn

public class EquipmentBonusComputer
extends PlugInBase
implements RuntimeComputer


Field Summary
 
Fields inherited from class rle.core.vm.PlugInBase
config, context, parameters
 
Constructor Summary
EquipmentBonusComputer()
           
 
Method Summary
 java.lang.Object compute(java.lang.String key, RuntimeData source)
          Perform the computation.
 
Methods inherited from class rle.core.vm.PlugInBase
config, getContext, getParameters, paramMap, setConfig, setParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EquipmentBonusComputer

public EquipmentBonusComputer()
Method Detail

compute

public java.lang.Object compute(java.lang.String key,
                                RuntimeData source)
Perform the computation. Current implementation will compute value of "eq-con-bonus" with behavior depending on parameter method=[add,max], where "add" will return the sum of all worn items' "con" attributes and "max" will return the max for a single item.

Specified by:
compute in interface RuntimeComputer