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

Package class diagram package VolumeChanged
java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.messages.InfoMessage
      extended by cz.cuni.amis.pogamut.udk.communication.messages.GBEvent
          extended by cz.cuni.amis.pogamut.udk.communication.messages.gbinfomessages.VolumeChanged
All Implemented Interfaces:
IWorldChangeEvent, IWorldEventWrapper, IWorldEvent, IGBWorldEvent, cz.cuni.amis.utils.listener.Event

public class VolumeChanged
extends GBEvent
implements IWorldEvent, IWorldChangeEvent

Asynchronous message. Some part of the bot body changed the zone. Corresponding GameBots message is VCH.


Field Summary
protected  double DamagePerSec
          Amount of damage we will suffer per second if we stay in this zone.
protected  String DamageType
          Type of the damage in this zone.
protected  boolean Destructive
          If this zone kills most of the actors instantly.
protected  double FluidFriction
          Friction of the fluid.
protected  double GroundFriction
          Friction of the floor.
protected  String Id
          Id of the zone entered.
protected  boolean MoveProjectiles
          If this velocity zone should impart velocity to projectiles and effects.
protected  boolean NeutralZone
          Players can't take damage in this zone.
protected  boolean NoInventory
          If the inventory is allowed here.
protected  boolean PainCausing
          True or false if we get some damage when we stay in this zone.
static String PROTOTYPE
          Example how the message looks like - used during parser tests.
protected  double TerminalVelocity
          Terminal velocity (?).
protected  boolean WaterVolume
          If this zone is a water.
protected  Velocity ZoneGravity
          Gravity in this zone.
protected  Velocity ZoneVelocity
          Zone velocity (?).
 
Constructor Summary
VolumeChanged()
          Used by Yylex to create empty message then to fill it's protected fields (Yylex is in the same package).
VolumeChanged(String Id, Velocity ZoneVelocity, Velocity ZoneGravity, double GroundFriction, double FluidFriction, double TerminalVelocity, boolean WaterVolume, boolean PainCausing, boolean Destructive, double DamagePerSec, String DamageType, boolean NoInventory, boolean MoveProjectiles, boolean NeutralZone)
          Creates new instance of command VolumeChanged.
VolumeChanged(VolumeChanged original)
          Cloning constructor.
 
Method Summary
 double getDamagePerSec()
          Amount of damage we will suffer per second if we stay in this zone.
 String getDamageType()
          Type of the damage in this zone.
 double getFluidFriction()
          Friction of the fluid.
 double getGroundFriction()
          Friction of the floor.
 String getId()
          Id of the zone entered.
 long getSimTime()
           
 double getTerminalVelocity()
          Terminal velocity (?).
 Velocity getZoneGravity()
          Gravity in this zone.
 Velocity getZoneVelocity()
          Zone velocity (?).
 boolean isDestructive()
          If this zone kills most of the actors instantly.
 boolean isMoveProjectiles()
          If this velocity zone should impart velocity to projectiles and effects.
 boolean isNeutralZone()
          Players can't take damage in this zone.
 boolean isNoInventory()
          If the inventory is allowed here.
 boolean isPainCausing()
          True or false if we get some damage when we stay in this zone.
 boolean isWaterVolume()
          If this zone is a water.
 String toHtmlString()
           
 String toString()
           
 
Methods inherited from class cz.cuni.amis.pogamut.udk.communication.messages.GBEvent
getWorldEvent
 
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 String Id
Id of the zone entered.


ZoneVelocity

protected Velocity ZoneVelocity
Zone velocity (?).


ZoneGravity

protected Velocity ZoneGravity
Gravity in this zone.


GroundFriction

protected double GroundFriction
Friction of the floor.


FluidFriction

protected double FluidFriction
Friction of the fluid.


TerminalVelocity

protected double TerminalVelocity
Terminal velocity (?).


WaterVolume

protected boolean WaterVolume
If this zone is a water.


PainCausing

protected boolean PainCausing
True or false if we get some damage when we stay in this zone.


Destructive

protected boolean Destructive
If this zone kills most of the actors instantly.


DamagePerSec

protected double DamagePerSec
Amount of damage we will suffer per second if we stay in this zone.


DamageType

protected String DamageType
Type of the damage in this zone.


NoInventory

protected boolean NoInventory
If the inventory is allowed here.


MoveProjectiles

protected boolean MoveProjectiles
If this velocity zone should impart velocity to projectiles and effects.


NeutralZone

protected boolean NeutralZone
Players can't take damage in this zone.

Constructor Detail

VolumeChanged

public VolumeChanged(String Id,
                     Velocity ZoneVelocity,
                     Velocity ZoneGravity,
                     double GroundFriction,
                     double FluidFriction,
                     double TerminalVelocity,
                     boolean WaterVolume,
                     boolean PainCausing,
                     boolean Destructive,
                     double DamagePerSec,
                     String DamageType,
                     boolean NoInventory,
                     boolean MoveProjectiles,
                     boolean NeutralZone)
Creates new instance of command VolumeChanged. Asynchronous message. Some part of the bot body changed the zone. Corresponding GameBots message for this command is .

Parameters:
Id - Id of the zone entered.
ZoneVelocity - Zone velocity (?).
ZoneGravity - Gravity in this zone.
GroundFriction - Friction of the floor.
FluidFriction - Friction of the fluid.
TerminalVelocity - Terminal velocity (?).
WaterVolume - If this zone is a water.
PainCausing - True or false if we get some damage when we stay in this zone.
Destructive - If this zone kills most of the actors instantly.
DamagePerSec - Amount of damage we will suffer per second if we stay in this zone.
DamageType - Type of the damage in this zone.
NoInventory - If the inventory is allowed here.
MoveProjectiles - If this velocity zone should impart velocity to projectiles and effects.
NeutralZone - Players can't take damage in this zone.

VolumeChanged

public VolumeChanged(VolumeChanged original)
Cloning constructor.


VolumeChanged

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

Method Detail

getId

public String getId()
Id of the zone entered.


getZoneVelocity

public Velocity getZoneVelocity()
Zone velocity (?).


getZoneGravity

public Velocity getZoneGravity()
Gravity in this zone.


getGroundFriction

public double getGroundFriction()
Friction of the floor.


getFluidFriction

public double getFluidFriction()
Friction of the fluid.


getTerminalVelocity

public double getTerminalVelocity()
Terminal velocity (?).


isWaterVolume

public boolean isWaterVolume()
If this zone is a water.


isPainCausing

public boolean isPainCausing()
True or false if we get some damage when we stay in this zone.


isDestructive

public boolean isDestructive()
If this zone kills most of the actors instantly.


getDamagePerSec

public double getDamagePerSec()
Amount of damage we will suffer per second if we stay in this zone.


getDamageType

public String getDamageType()
Type of the damage in this zone.


isNoInventory

public boolean isNoInventory()
If the inventory is allowed here.


isMoveProjectiles

public boolean isMoveProjectiles()
If this velocity zone should impart velocity to projectiles and effects.


isNeutralZone

public boolean isNeutralZone()
Players can't take damage in this zone.


getSimTime

public long getSimTime()
Specified by:
getSimTime in interface IWorldChangeEvent
Specified by:
getSimTime in interface IWorldEvent
Overrides:
getSimTime in class GBEvent

toString

public String toString()
Overrides:
toString in class InfoMessage

toHtmlString

public String toHtmlString()


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