|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.amis.pogamut.base.communication.messages.InfoMessage cz.cuni.amis.pogamut.udk.communication.messages.GBEvent cz.cuni.amis.pogamut.udk.communication.messages.gbinfomessages.VolumeChanged
public class VolumeChanged
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 |
---|
public static final String PROTOTYPE
protected String Id
protected Velocity ZoneVelocity
protected Velocity ZoneGravity
protected double GroundFriction
protected double FluidFriction
protected double TerminalVelocity
protected boolean WaterVolume
protected boolean PainCausing
protected boolean Destructive
protected double DamagePerSec
protected String DamageType
protected boolean NoInventory
protected boolean MoveProjectiles
protected boolean NeutralZone
Constructor Detail |
---|
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)
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.public VolumeChanged(VolumeChanged original)
public VolumeChanged()
Method Detail |
---|
public String getId()
public Velocity getZoneVelocity()
public Velocity getZoneGravity()
public double getGroundFriction()
public double getFluidFriction()
public double getTerminalVelocity()
public boolean isWaterVolume()
public boolean isPainCausing()
public boolean isDestructive()
public double getDamagePerSec()
public String getDamageType()
public boolean isNoInventory()
public boolean isMoveProjectiles()
public boolean isNeutralZone()
public long getSimTime()
getSimTime
in interface IWorldChangeEvent
getSimTime
in interface IWorldEvent
getSimTime
in class GBEvent
public String toString()
toString
in class InfoMessage
public String toHtmlString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |