org.lee.mugen.core.command
Class CmdProcDispatcher

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

public class CmdProcDispatcher
extends java.lang.Object

A Command dispatcher to sprite(s) that it hold TODO : the static bloc is tempory and when configuration is done, insert keys controlers has to be done by a method

Author:
Dr Wong

Field Summary
static int bufferTime
           
 boolean diseable
           
static java.util.Map<java.lang.String,CmdProcDispatcher> spriteDispatcherMap
           
 
Constructor Summary
CmdProcDispatcher(int up, int down, int back, int forward, int a, int b, int c, int x, int y, int z, int abc, int xyz)
           
 
Method Summary
 void flushBufferCmd()
           
 int[] getKeys()
           
 SingleCmdProcessor[] getSequence(long time)
           
 void invert()
           
 boolean press(int keyCode, long tick, boolean isFlip)
           
 void process()
           
 boolean release(int keyCode, long tick, boolean isFlip)
           
 void setKey(int keyCode, Key key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

spriteDispatcherMap

public static java.util.Map<java.lang.String,CmdProcDispatcher> spriteDispatcherMap

bufferTime

public static final int bufferTime
See Also:
Constant Field Values

diseable

public boolean diseable
Constructor Detail

CmdProcDispatcher

public CmdProcDispatcher(int up,
                         int down,
                         int back,
                         int forward,
                         int a,
                         int b,
                         int c,
                         int x,
                         int y,
                         int z,
                         int abc,
                         int xyz)
Method Detail

process

public void process()

setKey

public void setKey(int keyCode,
                   Key key)

press

public boolean press(int keyCode,
                     long tick,
                     boolean isFlip)

flushBufferCmd

public void flushBufferCmd()

release

public boolean release(int keyCode,
                       long tick,
                       boolean isFlip)

getSequence

public SingleCmdProcessor[] getSequence(long time)

invert

public void invert()

getKeys

public int[] getKeys()