cz.cuni.amis.pogamut.udk.communication.messages.gbinfomessages
Class Mutator

Package class diagram package Mutator
java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.messages.InfoMessage
      extended by cz.cuni.amis.pogamut.udk.communication.messages.gbinfomessages.Mutator
All Implemented Interfaces:
cz.cuni.amis.pogamut.base.communication.translator.event.IWorldChangeEvent, cz.cuni.amis.pogamut.base.communication.worldview.event.IWorldEvent, cz.cuni.amis.pogamut.unreal.communication.messages.gbinfomessages.IMutator, cz.cuni.amis.utils.listener.Event

public class Mutator
extends cz.cuni.amis.pogamut.base.communication.messages.InfoMessage
implements cz.cuni.amis.pogamut.base.communication.worldview.event.IWorldEvent, cz.cuni.amis.pogamut.base.communication.translator.event.IWorldChangeEvent, cz.cuni.amis.pogamut.unreal.communication.messages.gbinfomessages.IMutator

Info batch message. Starts with SMUT message, ends with EMUT message. Hold information about current mutators active on the server. Corresponding GameBots message is MUT.


Field Summary
protected  cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id
          Id of the mutator.
protected  String Name
          Name of the mutator.
static String PROTOTYPE
          Example how the message looks like - used during parser tests.
 
Constructor Summary
Mutator()
          Used by Yylex to create empty message then to fill it's protected fields (Yylex is in the same package).
Mutator(Mutator original)
          Cloning constructor.
Mutator(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id, String Name)
          Creates new instance of command Mutator.
 
Method Summary
 cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId getId()
          Id of the mutator.
 String getName()
          Name of the mutator.
 long getSimTime()
           
 String toHtmlString()
           
 String toString()
           
 
Methods inherited from class cz.cuni.amis.pogamut.base.communication.messages.InfoMessage
toJsonLiteral
 
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

Id

protected cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id
Id of the mutator.


Name

protected String Name
Name of the mutator.

Constructor Detail

Mutator

public Mutator(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id,
               String Name)
Creates new instance of command Mutator. Info batch message. Starts with SMUT message, ends with EMUT message. Hold information about current mutators active on the server. Corresponding GameBots message for this command is .

Parameters:
Id - Id of the mutator.
Name - Name of the mutator.

Mutator

public Mutator(Mutator original)
Cloning constructor.


Mutator

public Mutator()
Used by Yylex to create empty message then to fill it's protected fields (Yylex is in the same package).

Method Detail

getId

public cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId getId()
Id of the mutator.

Specified by:
getId in interface cz.cuni.amis.pogamut.unreal.communication.messages.gbinfomessages.IMutator

getName

public String getName()
Name of the mutator.

Specified by:
getName in interface cz.cuni.amis.pogamut.unreal.communication.messages.gbinfomessages.IMutator

getSimTime

public long getSimTime()
Specified by:
getSimTime in interface cz.cuni.amis.pogamut.base.communication.translator.event.IWorldChangeEvent
Specified by:
getSimTime in interface cz.cuni.amis.pogamut.base.communication.worldview.event.IWorldEvent

toString

public String toString()
Overrides:
toString in class cz.cuni.amis.pogamut.base.communication.messages.InfoMessage

toHtmlString

public String toHtmlString()
Specified by:
toHtmlString in interface cz.cuni.amis.pogamut.unreal.communication.messages.gbinfomessages.IMutator


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