cz.cuni.amis.pogamut.udk.communication.messages.gbcommands
Class AddInventory

Package class diagram package AddInventory
java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.messages.CommandMessage
      extended by cz.cuni.amis.pogamut.udk.communication.messages.gbcommands.AddInventory

public class AddInventory
extends CommandMessage

We can add custom inventory for specified bot. This command can be issued also by bot on the bot itself (in this case Id attribute is not parsed). Issuing by bot is allowed just when the game has allowed cheating (bAllowCheats = True in GameBotsUDK.ini file). Corresponding GameBots command is ADDINV.


Field Summary
protected  UnrealId Id
          Id of the target bot.
protected  String Type
          Class of the item we want to add.
 
Constructor Summary
AddInventory()
          Creates new instance of command AddInventory.
AddInventory(AddInventory original)
          Cloning constructor.
AddInventory(UnrealId Id, String Type)
          Creates new instance of command AddInventory.
 
Method Summary
 UnrealId getId()
          Id of the target bot.
 String getType()
          Class of the item we want to add.
 AddInventory setId(UnrealId Id)
          Id of the target bot.
 AddInventory setType(String Type)
          Class of the item we want to add.
 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

Id

protected UnrealId Id
Id of the target bot. Is used just when sending command to the server. If sending command to the bot Id is ignored and ADDINV command is executed on the bot (if bAllowCheats == True).


Type

protected String Type
Class of the item we want to add. Must be pickup class (e.g. LinkGun.WeaponPickup).

Constructor Detail

AddInventory

public AddInventory(UnrealId Id,
                    String Type)
Creates new instance of command AddInventory. We can add custom inventory for specified bot. This command can be issued also by bot on the bot itself (in this case Id attribute is not parsed). Issuing by bot is allowed just when the game has allowed cheating (bAllowCheats = True in GameBotsUDK.ini file). Corresponding GameBots message for this command is ADDINV.

Parameters:
Id - Id of the target bot. Is used just when sending command to the server. If sending command to the bot Id is ignored and ADDINV command is executed on the bot (if bAllowCheats == True).
Type - Class of the item we want to add. Must be pickup class (e.g. LinkGun.WeaponPickup).

AddInventory

public AddInventory()
Creates new instance of command AddInventory. We can add custom inventory for specified bot. This command can be issued also by bot on the bot itself (in this case Id attribute is not parsed). Issuing by bot is allowed just when the game has allowed cheating (bAllowCheats = True in GameBotsUDK.ini file). Corresponding GameBots message for this command is ADDINV.

WARNING: this is empty-command constructor, you have to use setters to fill it up!


AddInventory

public AddInventory(AddInventory original)
Cloning constructor.

Method Detail

getId

public UnrealId getId()
Id of the target bot. Is used just when sending command to the server. If sending command to the bot Id is ignored and ADDINV command is executed on the bot (if bAllowCheats == True).


setId

public AddInventory setId(UnrealId Id)
Id of the target bot. Is used just when sending command to the server. If sending command to the bot Id is ignored and ADDINV command is executed on the bot (if bAllowCheats == True).


getType

public String getType()
Class of the item we want to add. Must be pickup class (e.g. LinkGun.WeaponPickup).


setType

public AddInventory setType(String Type)
Class of the item we want to add. Must be pickup class (e.g. LinkGun.WeaponPickup).


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.