org.lee.mugen.sprite.cns.eval.trigger.function.spriteCns
Class Parentdist

java.lang.Object
  extended by org.lee.mugen.sprite.cns.AbstractCnsFunction
      extended by org.lee.mugen.sprite.cns.eval.function.SpriteCnsTriggerFunction
          extended by org.lee.mugen.sprite.cns.eval.trigger.function.spriteCns.Parentdist
All Implemented Interfaces:
Functionable, Valueable

public class Parentdist
extends SpriteCnsTriggerFunction


Field Summary
 
Fields inherited from class org.lee.mugen.sprite.cns.AbstractCnsFunction
functionName, paramNameIndexMap, paramNames, valueableParams
 
Constructor Summary
Parentdist()
           
 
Method Summary
 java.lang.Object getValue(java.lang.String spriteId, Valueable... params)
           
 float getXDiff(SpriteHelper sprOne, Sprite sprTwo)
           
 int parseValue(java.lang.String[] tokens, int pos, java.util.List<Valueable> result)
           
 
Methods inherited from class org.lee.mugen.sprite.cns.eval.function.SpriteCnsTriggerFunction
getRegex, parseValue, reset
 
Methods inherited from class org.lee.mugen.sprite.cns.AbstractCnsFunction
addParam, control, copy, getFloatValuable, getFunctionName, getIntValuable, getParamIndex, getParamNames, getStringValuable, isSetterMandatory, setFunctionName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Parentdist

public Parentdist()
Method Detail

getXDiff

public float getXDiff(SpriteHelper sprOne,
                      Sprite sprTwo)

getValue

public java.lang.Object getValue(java.lang.String spriteId,
                                 Valueable... params)
Specified by:
getValue in interface Valueable
Overrides:
getValue in class AbstractCnsFunction

parseValue

public int parseValue(java.lang.String[] tokens,
                      int pos,
                      java.util.List<Valueable> result)
Overrides:
parseValue in class SpriteCnsTriggerFunction