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

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.P2dist
All Implemented Interfaces:
Functionable, Valueable

public class P2dist
extends SpriteCnsTriggerFunction

Author:
Dr Wong

Field Summary
 
Fields inherited from class org.lee.mugen.sprite.cns.AbstractCnsFunction
functionName, paramNameIndexMap, paramNames, valueableParams
 
Constructor Summary
P2dist()
           
 
Method Summary
 java.lang.Object getValue(java.lang.String spriteId, Valueable... params)
           
 float getXDiff(java.lang.String spriteId, Valueable... params)
           
 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

P2dist

public P2dist()
Method Detail

getXDiff

public float getXDiff(java.lang.String spriteId,
                      Valueable... params)

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