org.lee.mugen.core.command
Class KeyLockCommand

java.lang.Object
  extended by org.lee.mugen.core.command.KeyLockCommand

public class KeyLockCommand
extends java.lang.Object

When a key is press, this key is lock until the release command for this key is fire

Author:
Dr Wong

Nested Class Summary
static class KeyLockCommand.State
          NONE : KeyLockCommand haven't state LOCK : The Key is lock until it is release HIDDEN : Key is hidden by another it is only applicable for direction B <=> BD : B is hidden Why do this : if you have a command like Guile's in street fighter "sonic boom" attack, you want to know how long B is hold before release and then F and PUNCH, and this independly of command BD or BU, that why we have to hold B hidden with time
 
Constructor Summary
KeyLockCommand(Key key)
           
 
Method Summary
 AbstractCommand getCmd()
           
 Key getKey()
           
 long getPressTick()
           
 long getReleasedTick()
           
 KeyLockCommand.State getTokenTaken()
           
 boolean isHidden()
           
 boolean isHold(long ticks)
           
 boolean isLock()
           
 boolean isPress()
           
 void setHidden()
           
 void setPressTick(long pressTick)
           
 void setReleasedTick(long releasedTick)
           
 void setTokenTaken(KeyLockCommand.State state)
           
 java.lang.String toString()
           
 void unHidden()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

KeyLockCommand

public KeyLockCommand(Key key)
Method Detail

isHold

public boolean isHold(long ticks)

getTokenTaken

public KeyLockCommand.State getTokenTaken()

setTokenTaken

public void setTokenTaken(KeyLockCommand.State state)

getPressTick

public long getPressTick()

unHidden

public void unHidden()

setHidden

public void setHidden()

setPressTick

public void setPressTick(long pressTick)

getReleasedTick

public long getReleasedTick()

setReleasedTick

public void setReleasedTick(long releasedTick)

getKey

public Key getKey()

isPress

public boolean isPress()

getCmd

public AbstractCommand getCmd()

isLock

public boolean isLock()

isHidden

public boolean isHidden()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object