com.planet_ink.coffee_mud.Common
Class DefaultFaction.DefaultFactionZapFactor

java.lang.Object
  extended by com.planet_ink.coffee_mud.Common.DefaultFaction.DefaultFactionZapFactor
All Implemented Interfaces:
Faction.FactionZapFactor
Enclosing class:
DefaultFaction

public class DefaultFaction.DefaultFactionZapFactor
extends java.lang.Object
implements Faction.FactionZapFactor


Constructor Summary
DefaultFaction.DefaultFactionZapFactor(double gain, double loss, java.lang.String mask)
           
 
Method Summary
 MaskingLibrary.CompiledZapperMask compiledMOBMask()
          The compiled mask to tell which mobs to apply this factor to
 double gainFactor()
          Get the gain factor (0-1)
 double lossFactor()
          Set the loss factor (0-1)
 java.lang.String MOBMask()
          The mask to tell which mobs to apply this factor to
 void setGainFactor(double val)
          Set the gain factor (0-1)
 void setLossFactor(double val)
          Set the loss factor (0-1)
 void setMOBMask(java.lang.String str)
          Set the mask to determine which mobs in the players presence will be affected.
 java.lang.String toString()
          Returns a semicolon-delimited string of the values of this factpr, suitable for using to create a new one later.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultFaction.DefaultFactionZapFactor

public DefaultFaction.DefaultFactionZapFactor(double gain,
                                              double loss,
                                              java.lang.String mask)
Method Detail

gainFactor

public double gainFactor()
Description copied from interface: Faction.FactionZapFactor
Get the gain factor (0-1)

Specified by:
gainFactor in interface Faction.FactionZapFactor
Returns:
the gain factor (0-1)
See Also:
Faction.FactionZapFactor.setGainFactor(double)

setGainFactor

public void setGainFactor(double val)
Description copied from interface: Faction.FactionZapFactor
Set the gain factor (0-1)

Specified by:
setGainFactor in interface Faction.FactionZapFactor
Parameters:
val - the gain factor (0-1)
See Also:
Faction.FactionZapFactor.gainFactor()

lossFactor

public double lossFactor()
Description copied from interface: Faction.FactionZapFactor
Set the loss factor (0-1)

Specified by:
lossFactor in interface Faction.FactionZapFactor
Returns:
the loss factor (0-1)
See Also:
Faction.FactionZapFactor.setGainFactor(double)

setLossFactor

public void setLossFactor(double val)
Description copied from interface: Faction.FactionZapFactor
Set the loss factor (0-1)

Specified by:
setLossFactor in interface Faction.FactionZapFactor
Parameters:
val - the loss factor (0-1)
See Also:
Faction.FactionZapFactor.gainFactor()

MOBMask

public java.lang.String MOBMask()
Description copied from interface: Faction.FactionZapFactor
The mask to tell which mobs to apply this factor to

Specified by:
MOBMask in interface Faction.FactionZapFactor
Returns:
mask to tell which mobs to apply this reaction to
See Also:
Faction.FactionZapFactor.setMOBMask(String)

compiledMOBMask

public MaskingLibrary.CompiledZapperMask compiledMOBMask()
Description copied from interface: Faction.FactionZapFactor
The compiled mask to tell which mobs to apply this factor to

Specified by:
compiledMOBMask in interface Faction.FactionZapFactor
Returns:
the compiled mask to tell which mobs to apply this reaction to
See Also:
Faction.FactionZapFactor.setMOBMask(String)

setMOBMask

public void setMOBMask(java.lang.String str)
Description copied from interface: Faction.FactionZapFactor
Set the mask to determine which mobs in the players presence will be affected. This is a zappermask.

Specified by:
setMOBMask in interface Faction.FactionZapFactor
Parameters:
str - the mask to determine which mobs in the players presence will be affected
See Also:
MaskingLibrary, Faction.FactionZapFactor.MOBMask()

toString

public java.lang.String toString()
Description copied from interface: Faction.FactionZapFactor
Returns a semicolon-delimited string of the values of this factpr, suitable for using to create a new one later.

Specified by:
toString in interface Faction.FactionZapFactor
Overrides:
toString in class java.lang.Object
Returns:
a string of the values of this factor
See Also:
Faction.addFactor(double,double,String)