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

Package class diagram package 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 String PROTOTYPE
          Example how the message looks like - used during parser tests.
protected  String Skin
          Holds the desired skin.
protected  String URClothes
          A number representing clothes.
protected  String URHair
          A number representing hair.
protected  String URSkin
          A number representing skin.
 
Constructor Summary
SetSkin()
          Creates new instance of command SetSkin.
SetSkin(SetSkin original)
          Cloning constructor.
SetSkin(String Skin, String URHair, String URClothes, String URSkin)
          Creates new instance of command SetSkin.
 
Method Summary
 String getSkin()
          Holds the desired skin.
 String getURClothes()
          A number representing clothes.
 String getURHair()
          A number representing hair.
 String getURSkin()
          A number representing skin.
 SetSkin setSkin(String Skin)
          Holds the desired skin.
 SetSkin setURClothes(String URClothes)
          A number representing clothes.
 SetSkin setURHair(String URHair)
          A number representing hair.
 SetSkin setURSkin(String URSkin)
          A number representing skin.
 String toHtmlString()
           
 String toMessage()
           
 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 String PROTOTYPE
Example how the message looks like - used during parser tests.

See Also:
Constant Field Values

Skin

protected String Skin
Holds the desired skin.


URHair

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


URClothes

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


URSkin

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

Constructor Detail

SetSkin

public SetSkin(String Skin,
               String URHair,
               String URClothes,
               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 String getSkin()
Holds the desired skin.


setSkin

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


getURHair

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


setURHair

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


getURClothes

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


setURClothes

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


getURSkin

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


setURSkin

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


toString

public String toString()
Overrides:
toString in class CommandMessage

toHtmlString

public String toHtmlString()

toMessage

public String toMessage()


Copyright © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.