cz.cuni.amis.pogamut.ut2004.communication.messages.gbcommands
Class SetSkin

java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.messages.CommandMessage
      extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbcommands.SetSkin

public class SetSkin
extends CommandMessage

Representation of the GameBots2004 command SETSKIN. Sets the bot current skin through Skin attribute (e.g. SETSKIN {Skin "HumanMaleA.MercMaleA"}). Find all packages and skins through unrealEd (Actor browser, search in UT2004/Animations folder). Supported bot skins are Aliens (Aliens.), Bots (Bot.), human males (HumanMaleA.), human females (HumanFemaleA. ), juggernauts (Jugg.). Skaarj skins are not supported at the time being. In UnrealRuntime we use different attributes to set up textures of the bots.


Field Summary
static java.lang.String PROTOTYPE
          Example how the message looks like - used during parser tests.
protected  java.lang.String Skin
          Holds the desired skin.
protected  java.lang.String URClothes
          A number representing clothes.
protected  java.lang.String URHair
          A number representing hair.
protected  java.lang.String URSkin
          A number representing skin.
 
Constructor Summary
SetSkin()
          Creates new instance of command SetSkin.
SetSkin(SetSkin original)
          Cloning constructor.
SetSkin(java.lang.String Skin, java.lang.String URHair, java.lang.String URClothes, java.lang.String URSkin)
          Creates new instance of command SetSkin.
 
Method Summary
 java.lang.String getSkin()
          Holds the desired skin.
 java.lang.String getURClothes()
          A number representing clothes.
 java.lang.String getURHair()
          A number representing hair.
 java.lang.String getURSkin()
          A number representing skin.
 SetSkin setSkin(java.lang.String Skin)
          Holds the desired skin.
 SetSkin setURClothes(java.lang.String URClothes)
          A number representing clothes.
 SetSkin setURHair(java.lang.String URHair)
          A number representing hair.
 SetSkin setURSkin(java.lang.String URSkin)
          A number representing skin.
 java.lang.String toHtmlString()
           
 java.lang.String toMessage()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PROTOTYPE

public static final java.lang.String PROTOTYPE
Example how the message looks like - used during parser tests.

See Also:
Constant Field Values

Skin

protected java.lang.String Skin
Holds the desired skin.


URHair

protected java.lang.String URHair
A number representing hair. String type is desired here. Parsed only in UnrealRuntime.


URClothes

protected java.lang.String URClothes
A number representing clothes. String type is desired here. Parsed only in UnrealRuntime.


URSkin

protected java.lang.String URSkin
A number representing skin. String type is desired here. Parsed only in UnrealRuntime.

Constructor Detail

SetSkin

public SetSkin(java.lang.String Skin,
               java.lang.String URHair,
               java.lang.String URClothes,
               java.lang.String URSkin)
Creates new instance of command SetSkin. Sets the bot current skin through Skin attribute (e.g. SETSKIN {Skin "HumanMaleA.MercMaleA"}). Find all packages and skins through unrealEd (Actor browser, search in UT2004/Animations folder). Supported bot skins are Aliens (Aliens.), Bots (Bot.), human males (HumanMaleA.), human females (HumanFemaleA. ), juggernauts (Jugg.). Skaarj skins are not supported at the time being. In UnrealRuntime we use different attributes to set up textures of the bots. Corresponding GameBots message for this command is SETSKIN.

Parameters:
Skin - Holds the desired skin.
URHair - A number representing hair. String type is desired here. Parsed only in UnrealRuntime.
URClothes - A number representing clothes. String type is desired here. Parsed only in UnrealRuntime.
URSkin - A number representing skin. String type is desired here. Parsed only in UnrealRuntime.

SetSkin

public SetSkin()
Creates new instance of command SetSkin. Sets the bot current skin through Skin attribute (e.g. SETSKIN {Skin "HumanMaleA.MercMaleA"}). Find all packages and skins through unrealEd (Actor browser, search in UT2004/Animations folder). Supported bot skins are Aliens (Aliens.), Bots (Bot.), human males (HumanMaleA.), human females (HumanFemaleA. ), juggernauts (Jugg.). Skaarj skins are not supported at the time being. In UnrealRuntime we use different attributes to set up textures of the bots. Corresponding GameBots message for this command is SETSKIN.

WARNING: this is empty-command constructor, you have to use setters to fill it up with data that should be sent to GameBots2004!


SetSkin

public SetSkin(SetSkin original)
Cloning constructor.

Parameters:
original -
Method Detail

getSkin

public java.lang.String getSkin()
Holds the desired skin.


setSkin

public SetSkin setSkin(java.lang.String Skin)
Holds the desired skin.


getURHair

public java.lang.String getURHair()
A number representing hair. String type is desired here. Parsed only in UnrealRuntime.


setURHair

public SetSkin setURHair(java.lang.String URHair)
A number representing hair. String type is desired here. Parsed only in UnrealRuntime.


getURClothes

public java.lang.String getURClothes()
A number representing clothes. String type is desired here. Parsed only in UnrealRuntime.


setURClothes

public SetSkin setURClothes(java.lang.String URClothes)
A number representing clothes. String type is desired here. Parsed only in UnrealRuntime.


getURSkin

public java.lang.String getURSkin()
A number representing skin. String type is desired here. Parsed only in UnrealRuntime.


setURSkin

public SetSkin setURSkin(java.lang.String URSkin)
A number representing skin. String type is desired here. Parsed only in UnrealRuntime.


toString

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

toHtmlString

public java.lang.String toHtmlString()

toMessage

public java.lang.String toMessage()