com.springrts.ai.oo
Class ClbUnitSupportedCommandImpl

java.lang.Object
  extended by com.springrts.ai.oo.ClbUnitSupportedCommandImpl
All Implemented Interfaces:
SupportedCommand, Comparable<ClbUnitSupportedCommandImpl>

public class ClbUnitSupportedCommandImpl
extends Object
implements SupportedCommand, Comparable<ClbUnitSupportedCommandImpl>


Method Summary
 int compareTo(ClbUnitSupportedCommandImpl other)
           
 boolean equals(Object otherObject)
           
 int getId(int commandId)
          For the id, see CMD_xxx codes in Sim/Unit/CommandAI/Command.h (custom codes can also be used)
 String getName(int commandId)
           
 List<String> getParams(int commandId)
           
 String getToolTip(int commandId)
           
 int getUnitId()
           
 int hashCode()
           
 boolean isDisabled(int commandId)
           
 boolean isShowUnique(int commandId)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getUnitId

public int getUnitId()

compareTo

public int compareTo(ClbUnitSupportedCommandImpl other)
Specified by:
compareTo in interface Comparable<ClbUnitSupportedCommandImpl>

equals

public boolean equals(Object otherObject)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

getId

public int getId(int commandId)
For the id, see CMD_xxx codes in Sim/Unit/CommandAI/Command.h (custom codes can also be used)

Specified by:
getId in interface SupportedCommand

getName

public String getName(int commandId)
Specified by:
getName in interface SupportedCommand

getToolTip

public String getToolTip(int commandId)
Specified by:
getToolTip in interface SupportedCommand

isShowUnique

public boolean isShowUnique(int commandId)
Specified by:
isShowUnique in interface SupportedCommand

isDisabled

public boolean isDisabled(int commandId)
Specified by:
isDisabled in interface SupportedCommand

getParams

public List<String> getParams(int commandId)
Specified by:
getParams in interface SupportedCommand