File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/NavPointMessage.java | 1713 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/NavPointStatic.java | 277 |
@Override
public boolean isDifferentFrom(IStaticWorldObject other)
{
if (other == null) //early fail
{
return true;
}
else if (other == this) //early out
{
return false;
}
else
{
NavPointStatic obj = (NavPointStatic) other;
if ( !(
AdvancedEquals.equalsOrNull(this.getId()
, obj.getId()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Id on object class NavPointStatic");
return true;
}
if ( !(
AdvancedEquals.equalsOrNull(this.getItem()
, obj.getItem()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Item on object class NavPointStatic");
return true;
}
if ( !(
AdvancedEquals.equalsOrNull(this.getItemClass()
, obj.getItemClass()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property ItemClass on object class NavPointStatic");
return true;
}
if ( !(
AdvancedEquals.equalsOrNull(this.getMover()
, obj.getMover()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Mover on object class NavPointStatic");
return true;
}
if ( !(
AdvancedEquals.equalsOrNull(this.getLiftOffset()
, obj.getLiftOffset()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property LiftOffset on object class NavPointStatic");
return true;
}
if ( !(this.isLiftJumpExit()
== obj.isLiftJumpExit()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property LiftJumpExit on object class NavPointStatic");
return true;
}
if ( !(this.isNoDoubleJump()
== obj.isNoDoubleJump()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property NoDoubleJump on object class NavPointStatic");
return true;
}
if ( !(this.isInvSpot()
== obj.isInvSpot()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property InvSpot on object class NavPointStatic");
return true;
}
if ( !(this.isPlayerStart()
== obj.isPlayerStart()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property PlayerStart on object class NavPointStatic");
return true;
}
if ( !(this.getTeamNumber()
== obj.getTeamNumber()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property TeamNumber on object class NavPointStatic");
return true;
}
if ( !(this.isDomPoint()
== obj.isDomPoint()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property DomPoint on object class NavPointStatic");
return true;
}
if ( !(this.isDoor()
== obj.isDoor()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Door on object class NavPointStatic");
return true;
}
if ( !(this.isLiftCenter()
== obj.isLiftCenter()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property LiftCenter on object class NavPointStatic");
return true;
}
if ( !(this.isLiftExit()
== obj.isLiftExit()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property LiftExit on object class NavPointStatic");
return true;
}
if ( !(this.isAIMarker()
== obj.isAIMarker()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property AIMarker on object class NavPointStatic");
return true;
}
if ( !(this.isJumpSpot()
== obj.isJumpSpot()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property JumpSpot on object class NavPointStatic");
return true;
}
if ( !(this.isJumpPad()
== obj.isJumpPad()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property JumpPad on object class NavPointStatic");
return true;
}
if ( !(this.isJumpDest()
== obj.isJumpDest()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property JumpDest on object class NavPointStatic");
return true;
}
if ( !(this.isTeleporter()
== obj.isTeleporter()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Teleporter on object class NavPointStatic");
return true;
}
if ( !(
AdvancedEquals.equalsOrNull(this.getRotation()
, obj.getRotation()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Rotation on object class NavPointStatic");
return true;
}
if ( !(this.isRoamingSpot()
== obj.isRoamingSpot()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property RoamingSpot on object class NavPointStatic");
return true;
}
if ( !(this.isSnipingSpot()
== obj.isSnipingSpot()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property SnipingSpot on object class NavPointStatic");
return true;
}
if ( !(
AdvancedEquals.equalsOrNull(this.getItemInstance()
, obj.getItemInstance()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property ItemInstance on object class NavPointStatic");
return true;
}
//Skipping outgoing and incoming edges tests because the navGraph is sent only once
//Skipping outgoing and incoming edges tests because the navGraph is sent only once
if ( !(
AdvancedEquals.equalsOrNull(this.getPreferedWeapon()
, obj.getPreferedWeapon()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property PreferedWeapon on object class NavPointStatic");
return true;
}
}
return false;
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"Item = " + String.valueOf(getItem()
) + " | " +
"ItemClass = " + String.valueOf(getItemClass()
) + " | " +
"Mover = " + String.valueOf(getMover()
) + " | " +
"LiftOffset = " + String.valueOf(getLiftOffset()
) + " | " +
"LiftJumpExit = " + String.valueOf(isLiftJumpExit()
) + " | " +
"NoDoubleJump = " + String.valueOf(isNoDoubleJump()
) + " | " +
"InvSpot = " + String.valueOf(isInvSpot()
) + " | " +
"PlayerStart = " + String.valueOf(isPlayerStart()
) + " | " +
"TeamNumber = " + String.valueOf(getTeamNumber()
) + " | " +
"DomPoint = " + String.valueOf(isDomPoint()
) + " | " +
"Door = " + String.valueOf(isDoor()
) + " | " +
"LiftCenter = " + String.valueOf(isLiftCenter()
) + " | " +
"LiftExit = " + String.valueOf(isLiftExit()
) + " | " +
"AIMarker = " + String.valueOf(isAIMarker()
) + " | " +
"JumpSpot = " + String.valueOf(isJumpSpot()
) + " | " +
"JumpPad = " + String.valueOf(isJumpPad()
) + " | " +
"JumpDest = " + String.valueOf(isJumpDest()
) + " | " +
"Teleporter = " + String.valueOf(isTeleporter()
) + " | " +
"Rotation = " + String.valueOf(getRotation()
) + " | " +
"RoamingSpot = " + String.valueOf(isRoamingSpot()
) + " | " +
"SnipingSpot = " + String.valueOf(isSnipingSpot()
) + " | " +
"PreferedWeapon = " + String.valueOf(getPreferedWeapon()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>Item</b> = " + String.valueOf(getItem()
) + " <br/> " +
"<b>ItemClass</b> = " + String.valueOf(getItemClass()
) + " <br/> " +
"<b>Mover</b> = " + String.valueOf(getMover()
) + " <br/> " +
"<b>LiftOffset</b> = " + String.valueOf(getLiftOffset()
) + " <br/> " +
"<b>LiftJumpExit</b> = " + String.valueOf(isLiftJumpExit()
) + " <br/> " +
"<b>NoDoubleJump</b> = " + String.valueOf(isNoDoubleJump()
) + " <br/> " +
"<b>InvSpot</b> = " + String.valueOf(isInvSpot()
) + " <br/> " +
"<b>PlayerStart</b> = " + String.valueOf(isPlayerStart()
) + " <br/> " +
"<b>TeamNumber</b> = " + String.valueOf(getTeamNumber()
) + " <br/> " +
"<b>DomPoint</b> = " + String.valueOf(isDomPoint()
) + " <br/> " +
"<b>Door</b> = " + String.valueOf(isDoor()
) + " <br/> " +
"<b>LiftCenter</b> = " + String.valueOf(isLiftCenter()
) + " <br/> " +
"<b>LiftExit</b> = " + String.valueOf(isLiftExit()
) + " <br/> " +
"<b>AIMarker</b> = " + String.valueOf(isAIMarker()
) + " <br/> " +
"<b>JumpSpot</b> = " + String.valueOf(isJumpSpot()
) + " <br/> " +
"<b>JumpPad</b> = " + String.valueOf(isJumpPad()
) + " <br/> " +
"<b>JumpDest</b> = " + String.valueOf(isJumpDest()
) + " <br/> " +
"<b>Teleporter</b> = " + String.valueOf(isTeleporter()
) + " <br/> " +
"<b>Rotation</b> = " + String.valueOf(getRotation()
) + " <br/> " +
"<b>RoamingSpot</b> = " + String.valueOf(isRoamingSpot()
) + " <br/> " +
"<b>SnipingSpot</b> = " + String.valueOf(isSnipingSpot()
) + " <br/> " +
"<b>PreferedWeapon</b> = " + String.valueOf(getPreferedWeapon()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=static+classtype[@name=abstract]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=static+classtype[@name=abstract]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/NavPointMessage.java | 1710 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/NavPointStaticImpl.java | 1113 |
}
@Override
public boolean isDifferentFrom(IStaticWorldObject other)
{
if (other == null) //early fail
{
return true;
}
else if (other == this) //early out
{
return false;
}
else
{
NavPointStatic obj = (NavPointStatic) other;
if ( !(
AdvancedEquals.equalsOrNull(this.getId()
, obj.getId()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Id on object class NavPointStatic");
return true;
}
if ( !(
AdvancedEquals.equalsOrNull(this.getItem()
, obj.getItem()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Item on object class NavPointStatic");
return true;
}
if ( !(
AdvancedEquals.equalsOrNull(this.getItemClass()
, obj.getItemClass()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property ItemClass on object class NavPointStatic");
return true;
}
if ( !(
AdvancedEquals.equalsOrNull(this.getMover()
, obj.getMover()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Mover on object class NavPointStatic");
return true;
}
if ( !(
AdvancedEquals.equalsOrNull(this.getLiftOffset()
, obj.getLiftOffset()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property LiftOffset on object class NavPointStatic");
return true;
}
if ( !(this.isLiftJumpExit()
== obj.isLiftJumpExit()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property LiftJumpExit on object class NavPointStatic");
return true;
}
if ( !(this.isNoDoubleJump()
== obj.isNoDoubleJump()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property NoDoubleJump on object class NavPointStatic");
return true;
}
if ( !(this.isInvSpot()
== obj.isInvSpot()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property InvSpot on object class NavPointStatic");
return true;
}
if ( !(this.isPlayerStart()
== obj.isPlayerStart()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property PlayerStart on object class NavPointStatic");
return true;
}
if ( !(this.getTeamNumber()
== obj.getTeamNumber()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property TeamNumber on object class NavPointStatic");
return true;
}
if ( !(this.isDomPoint()
== obj.isDomPoint()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property DomPoint on object class NavPointStatic");
return true;
}
if ( !(this.isDoor()
== obj.isDoor()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Door on object class NavPointStatic");
return true;
}
if ( !(this.isLiftCenter()
== obj.isLiftCenter()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property LiftCenter on object class NavPointStatic");
return true;
}
if ( !(this.isLiftExit()
== obj.isLiftExit()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property LiftExit on object class NavPointStatic");
return true;
}
if ( !(this.isAIMarker()
== obj.isAIMarker()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property AIMarker on object class NavPointStatic");
return true;
}
if ( !(this.isJumpSpot()
== obj.isJumpSpot()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property JumpSpot on object class NavPointStatic");
return true;
}
if ( !(this.isJumpPad()
== obj.isJumpPad()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property JumpPad on object class NavPointStatic");
return true;
}
if ( !(this.isJumpDest()
== obj.isJumpDest()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property JumpDest on object class NavPointStatic");
return true;
}
if ( !(this.isTeleporter()
== obj.isTeleporter()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Teleporter on object class NavPointStatic");
return true;
}
if ( !(
AdvancedEquals.equalsOrNull(this.getRotation()
, obj.getRotation()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Rotation on object class NavPointStatic");
return true;
}
if ( !(this.isRoamingSpot()
== obj.isRoamingSpot()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property RoamingSpot on object class NavPointStatic");
return true;
}
if ( !(this.isSnipingSpot()
== obj.isSnipingSpot()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property SnipingSpot on object class NavPointStatic");
return true;
}
if ( !(
AdvancedEquals.equalsOrNull(this.getItemInstance()
, obj.getItemInstance()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property ItemInstance on object class NavPointStatic");
return true;
}
//Skipping outgoing and incoming edges tests because the navGraph is sent only once
//Skipping outgoing and incoming edges tests because the navGraph is sent only once
if ( !(
AdvancedEquals.equalsOrNull(this.getPreferedWeapon()
, obj.getPreferedWeapon()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property PreferedWeapon on object class NavPointStatic");
return true;
}
}
return false;
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"Item = " + String.valueOf(getItem()
) + " | " +
"ItemClass = " + String.valueOf(getItemClass()
) + " | " +
"Mover = " + String.valueOf(getMover()
) + " | " +
"LiftOffset = " + String.valueOf(getLiftOffset()
) + " | " +
"LiftJumpExit = " + String.valueOf(isLiftJumpExit()
) + " | " +
"NoDoubleJump = " + String.valueOf(isNoDoubleJump()
) + " | " +
"InvSpot = " + String.valueOf(isInvSpot()
) + " | " +
"PlayerStart = " + String.valueOf(isPlayerStart()
) + " | " +
"TeamNumber = " + String.valueOf(getTeamNumber()
) + " | " +
"DomPoint = " + String.valueOf(isDomPoint()
) + " | " +
"Door = " + String.valueOf(isDoor()
) + " | " +
"LiftCenter = " + String.valueOf(isLiftCenter()
) + " | " +
"LiftExit = " + String.valueOf(isLiftExit()
) + " | " +
"AIMarker = " + String.valueOf(isAIMarker()
) + " | " +
"JumpSpot = " + String.valueOf(isJumpSpot()
) + " | " +
"JumpPad = " + String.valueOf(isJumpPad()
) + " | " +
"JumpDest = " + String.valueOf(isJumpDest()
) + " | " +
"Teleporter = " + String.valueOf(isTeleporter()
) + " | " +
"Rotation = " + String.valueOf(getRotation()
) + " | " +
"RoamingSpot = " + String.valueOf(isRoamingSpot()
) + " | " +
"SnipingSpot = " + String.valueOf(isSnipingSpot()
) + " | " +
"PreferedWeapon = " + String.valueOf(getPreferedWeapon()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>Item</b> = " + String.valueOf(getItem()
) + " <br/> " +
"<b>ItemClass</b> = " + String.valueOf(getItemClass()
) + " <br/> " +
"<b>Mover</b> = " + String.valueOf(getMover()
) + " <br/> " +
"<b>LiftOffset</b> = " + String.valueOf(getLiftOffset()
) + " <br/> " +
"<b>LiftJumpExit</b> = " + String.valueOf(isLiftJumpExit()
) + " <br/> " +
"<b>NoDoubleJump</b> = " + String.valueOf(isNoDoubleJump()
) + " <br/> " +
"<b>InvSpot</b> = " + String.valueOf(isInvSpot()
) + " <br/> " +
"<b>PlayerStart</b> = " + String.valueOf(isPlayerStart()
) + " <br/> " +
"<b>TeamNumber</b> = " + String.valueOf(getTeamNumber()
) + " <br/> " +
"<b>DomPoint</b> = " + String.valueOf(isDomPoint()
) + " <br/> " +
"<b>Door</b> = " + String.valueOf(isDoor()
) + " <br/> " +
"<b>LiftCenter</b> = " + String.valueOf(isLiftCenter()
) + " <br/> " +
"<b>LiftExit</b> = " + String.valueOf(isLiftExit()
) + " <br/> " +
"<b>AIMarker</b> = " + String.valueOf(isAIMarker()
) + " <br/> " +
"<b>JumpSpot</b> = " + String.valueOf(isJumpSpot()
) + " <br/> " +
"<b>JumpPad</b> = " + String.valueOf(isJumpPad()
) + " <br/> " +
"<b>JumpDest</b> = " + String.valueOf(isJumpDest()
) + " <br/> " +
"<b>Teleporter</b> = " + String.valueOf(isTeleporter()
) + " <br/> " +
"<b>Rotation</b> = " + String.valueOf(getRotation()
) + " <br/> " +
"<b>RoamingSpot</b> = " + String.valueOf(isRoamingSpot()
) + " <br/> " +
"<b>SnipingSpot</b> = " + String.valueOf(isSnipingSpot()
) + " <br/> " +
"<b>PreferedWeapon</b> = " + String.valueOf(getPreferedWeapon()
) + " <br/> " +
"<br/>]";
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/NavPointStatic.java | 277 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/NavPointStaticImpl.java | 1117 |
@Override
public boolean isDifferentFrom(IStaticWorldObject other)
{
if (other == null) //early fail
{
return true;
}
else if (other == this) //early out
{
return false;
}
else
{
NavPointStatic obj = (NavPointStatic) other;
if ( !(
AdvancedEquals.equalsOrNull(this.getId()
, obj.getId()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Id on object class NavPointStatic");
return true;
}
if ( !(
AdvancedEquals.equalsOrNull(this.getItem()
, obj.getItem()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Item on object class NavPointStatic");
return true;
}
if ( !(
AdvancedEquals.equalsOrNull(this.getItemClass()
, obj.getItemClass()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property ItemClass on object class NavPointStatic");
return true;
}
if ( !(
AdvancedEquals.equalsOrNull(this.getMover()
, obj.getMover()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Mover on object class NavPointStatic");
return true;
}
if ( !(
AdvancedEquals.equalsOrNull(this.getLiftOffset()
, obj.getLiftOffset()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property LiftOffset on object class NavPointStatic");
return true;
}
if ( !(this.isLiftJumpExit()
== obj.isLiftJumpExit()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property LiftJumpExit on object class NavPointStatic");
return true;
}
if ( !(this.isNoDoubleJump()
== obj.isNoDoubleJump()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property NoDoubleJump on object class NavPointStatic");
return true;
}
if ( !(this.isInvSpot()
== obj.isInvSpot()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property InvSpot on object class NavPointStatic");
return true;
}
if ( !(this.isPlayerStart()
== obj.isPlayerStart()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property PlayerStart on object class NavPointStatic");
return true;
}
if ( !(this.getTeamNumber()
== obj.getTeamNumber()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property TeamNumber on object class NavPointStatic");
return true;
}
if ( !(this.isDomPoint()
== obj.isDomPoint()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property DomPoint on object class NavPointStatic");
return true;
}
if ( !(this.isDoor()
== obj.isDoor()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Door on object class NavPointStatic");
return true;
}
if ( !(this.isLiftCenter()
== obj.isLiftCenter()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property LiftCenter on object class NavPointStatic");
return true;
}
if ( !(this.isLiftExit()
== obj.isLiftExit()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property LiftExit on object class NavPointStatic");
return true;
}
if ( !(this.isAIMarker()
== obj.isAIMarker()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property AIMarker on object class NavPointStatic");
return true;
}
if ( !(this.isJumpSpot()
== obj.isJumpSpot()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property JumpSpot on object class NavPointStatic");
return true;
}
if ( !(this.isJumpPad()
== obj.isJumpPad()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property JumpPad on object class NavPointStatic");
return true;
}
if ( !(this.isJumpDest()
== obj.isJumpDest()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property JumpDest on object class NavPointStatic");
return true;
}
if ( !(this.isTeleporter()
== obj.isTeleporter()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Teleporter on object class NavPointStatic");
return true;
}
if ( !(
AdvancedEquals.equalsOrNull(this.getRotation()
, obj.getRotation()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Rotation on object class NavPointStatic");
return true;
}
if ( !(this.isRoamingSpot()
== obj.isRoamingSpot()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property RoamingSpot on object class NavPointStatic");
return true;
}
if ( !(this.isSnipingSpot()
== obj.isSnipingSpot()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property SnipingSpot on object class NavPointStatic");
return true;
}
if ( !(
AdvancedEquals.equalsOrNull(this.getItemInstance()
, obj.getItemInstance()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property ItemInstance on object class NavPointStatic");
return true;
}
//Skipping outgoing and incoming edges tests because the navGraph is sent only once
//Skipping outgoing and incoming edges tests because the navGraph is sent only once
if ( !(
AdvancedEquals.equalsOrNull(this.getPreferedWeapon()
, obj.getPreferedWeapon()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property PreferedWeapon on object class NavPointStatic");
return true;
}
}
return false;
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"Item = " + String.valueOf(getItem()
) + " | " +
"ItemClass = " + String.valueOf(getItemClass()
) + " | " +
"Mover = " + String.valueOf(getMover()
) + " | " +
"LiftOffset = " + String.valueOf(getLiftOffset()
) + " | " +
"LiftJumpExit = " + String.valueOf(isLiftJumpExit()
) + " | " +
"NoDoubleJump = " + String.valueOf(isNoDoubleJump()
) + " | " +
"InvSpot = " + String.valueOf(isInvSpot()
) + " | " +
"PlayerStart = " + String.valueOf(isPlayerStart()
) + " | " +
"TeamNumber = " + String.valueOf(getTeamNumber()
) + " | " +
"DomPoint = " + String.valueOf(isDomPoint()
) + " | " +
"Door = " + String.valueOf(isDoor()
) + " | " +
"LiftCenter = " + String.valueOf(isLiftCenter()
) + " | " +
"LiftExit = " + String.valueOf(isLiftExit()
) + " | " +
"AIMarker = " + String.valueOf(isAIMarker()
) + " | " +
"JumpSpot = " + String.valueOf(isJumpSpot()
) + " | " +
"JumpPad = " + String.valueOf(isJumpPad()
) + " | " +
"JumpDest = " + String.valueOf(isJumpDest()
) + " | " +
"Teleporter = " + String.valueOf(isTeleporter()
) + " | " +
"Rotation = " + String.valueOf(getRotation()
) + " | " +
"RoamingSpot = " + String.valueOf(isRoamingSpot()
) + " | " +
"SnipingSpot = " + String.valueOf(isSnipingSpot()
) + " | " +
"PreferedWeapon = " + String.valueOf(getPreferedWeapon()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>Item</b> = " + String.valueOf(getItem()
) + " <br/> " +
"<b>ItemClass</b> = " + String.valueOf(getItemClass()
) + " <br/> " +
"<b>Mover</b> = " + String.valueOf(getMover()
) + " <br/> " +
"<b>LiftOffset</b> = " + String.valueOf(getLiftOffset()
) + " <br/> " +
"<b>LiftJumpExit</b> = " + String.valueOf(isLiftJumpExit()
) + " <br/> " +
"<b>NoDoubleJump</b> = " + String.valueOf(isNoDoubleJump()
) + " <br/> " +
"<b>InvSpot</b> = " + String.valueOf(isInvSpot()
) + " <br/> " +
"<b>PlayerStart</b> = " + String.valueOf(isPlayerStart()
) + " <br/> " +
"<b>TeamNumber</b> = " + String.valueOf(getTeamNumber()
) + " <br/> " +
"<b>DomPoint</b> = " + String.valueOf(isDomPoint()
) + " <br/> " +
"<b>Door</b> = " + String.valueOf(isDoor()
) + " <br/> " +
"<b>LiftCenter</b> = " + String.valueOf(isLiftCenter()
) + " <br/> " +
"<b>LiftExit</b> = " + String.valueOf(isLiftExit()
) + " <br/> " +
"<b>AIMarker</b> = " + String.valueOf(isAIMarker()
) + " <br/> " +
"<b>JumpSpot</b> = " + String.valueOf(isJumpSpot()
) + " <br/> " +
"<b>JumpPad</b> = " + String.valueOf(isJumpPad()
) + " <br/> " +
"<b>JumpDest</b> = " + String.valueOf(isJumpDest()
) + " <br/> " +
"<b>Teleporter</b> = " + String.valueOf(isTeleporter()
) + " <br/> " +
"<b>Rotation</b> = " + String.valueOf(getRotation()
) + " <br/> " +
"<b>RoamingSpot</b> = " + String.valueOf(isRoamingSpot()
) + " <br/> " +
"<b>SnipingSpot</b> = " + String.valueOf(isSnipingSpot()
) + " <br/> " +
"<b>PreferedWeapon</b> = " + String.valueOf(getPreferedWeapon()
) + " <br/> " +
"<br/>]";
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/GameInfoMessage.java | 1152 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/GameInfoStaticImpl.java | 522 |
}
@Override
public boolean isDifferentFrom(IStaticWorldObject other)
{
if (other == null) //early fail
{
return true;
}
else if (other == this) //early out
{
return false;
}
else
{
GameInfoStatic obj = (GameInfoStatic) other;
if ( !(
AdvancedEquals.equalsOrNull(this.getGametype()
, obj.getGametype()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Gametype on object class GameInfoStatic");
return true;
}
if ( !(
AdvancedEquals.equalsOrNull(this.getLevel()
, obj.getLevel()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Level on object class GameInfoStatic");
return true;
}
if ( !(this.getMaxTeams()
== obj.getMaxTeams()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property MaxTeams on object class GameInfoStatic");
return true;
}
if ( !(
AdvancedEquals.equalsOrNull(this.getRedBaseLocation()
, obj.getRedBaseLocation()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property RedBaseLocation on object class GameInfoStatic");
return true;
}
if ( !(
AdvancedEquals.equalsOrNull(this.getBlueBaseLocation()
, obj.getBlueBaseLocation()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property BlueBaseLocation on object class GameInfoStatic");
return true;
}
if ( !(
AdvancedEquals.equalsOrNull(this.getFirstDomPointLocation()
, obj.getFirstDomPointLocation()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property FirstDomPointLocation on object class GameInfoStatic");
return true;
}
if ( !(
AdvancedEquals.equalsOrNull(this.getSecondDomPointLocation()
, obj.getSecondDomPointLocation()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property SecondDomPointLocation on object class GameInfoStatic");
return true;
}
if ( !(
AdvancedEquals.equalsOrNull(this.getFactoryLocation()
, obj.getFactoryLocation()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property FactoryLocation on object class GameInfoStatic");
return true;
}
if ( !(this.getFactoryRadius()
== obj.getFactoryRadius()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property FactoryRadius on object class GameInfoStatic");
return true;
}
if ( !(
AdvancedEquals.equalsOrNull(this.getDisperserLocation()
, obj.getDisperserLocation()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property DisperserLocation on object class GameInfoStatic");
return true;
}
if ( !(this.getDisperserRadius()
== obj.getDisperserRadius()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property DisperserRadius on object class GameInfoStatic");
return true;
}
if ( !(this.getFactoryAdrenalineCount()
== obj.getFactoryAdrenalineCount()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property FactoryAdrenalineCount on object class GameInfoStatic");
return true;
}
if ( !(
AdvancedEquals.equalsOrNull(this.getFactorySpawnType()
, obj.getFactorySpawnType()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property FactorySpawnType on object class GameInfoStatic");
return true;
}
}
return false;
}
public String toString() {
return
super.toString() + "[" +
"Gametype = " + String.valueOf(getGametype()
) + " | " +
"Level = " + String.valueOf(getLevel()
) + " | " +
"MaxTeams = " + String.valueOf(getMaxTeams()
) + " | " +
"RedBaseLocation = " + String.valueOf(getRedBaseLocation()
) + " | " +
"BlueBaseLocation = " + String.valueOf(getBlueBaseLocation()
) + " | " +
"FirstDomPointLocation = " + String.valueOf(getFirstDomPointLocation()
) + " | " +
"SecondDomPointLocation = " + String.valueOf(getSecondDomPointLocation()
) + " | " +
"FactoryLocation = " + String.valueOf(getFactoryLocation()
) + " | " +
"FactoryRadius = " + String.valueOf(getFactoryRadius()
) + " | " +
"DisperserLocation = " + String.valueOf(getDisperserLocation()
) + " | " +
"DisperserRadius = " + String.valueOf(getDisperserRadius()
) + " | " +
"FactoryAdrenalineCount = " + String.valueOf(getFactoryAdrenalineCount()
) + " | " +
"FactorySpawnType = " + String.valueOf(getFactorySpawnType()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Gametype</b> = " + String.valueOf(getGametype()
) + " <br/> " +
"<b>Level</b> = " + String.valueOf(getLevel()
) + " <br/> " +
"<b>MaxTeams</b> = " + String.valueOf(getMaxTeams()
) + " <br/> " +
"<b>RedBaseLocation</b> = " + String.valueOf(getRedBaseLocation()
) + " <br/> " +
"<b>BlueBaseLocation</b> = " + String.valueOf(getBlueBaseLocation()
) + " <br/> " +
"<b>FirstDomPointLocation</b> = " + String.valueOf(getFirstDomPointLocation()
) + " <br/> " +
"<b>SecondDomPointLocation</b> = " + String.valueOf(getSecondDomPointLocation()
) + " <br/> " +
"<b>FactoryLocation</b> = " + String.valueOf(getFactoryLocation()
) + " <br/> " +
"<b>FactoryRadius</b> = " + String.valueOf(getFactoryRadius()
) + " <br/> " +
"<b>DisperserLocation</b> = " + String.valueOf(getDisperserLocation()
) + " <br/> " +
"<b>DisperserRadius</b> = " + String.valueOf(getDisperserRadius()
) + " <br/> " +
"<b>FactoryAdrenalineCount</b> = " + String.valueOf(getFactoryAdrenalineCount()
) + " <br/> " +
"<b>FactorySpawnType</b> = " + String.valueOf(getFactorySpawnType()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=static+classtype[@name=impl]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=static+classtype[@name=impl]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/GameInfoMessage.java | 1155 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/GameInfoStatic.java | 190 |
@Override
public boolean isDifferentFrom(IStaticWorldObject other)
{
if (other == null) //early fail
{
return true;
}
else if (other == this) //early out
{
return false;
}
else
{
GameInfoStatic obj = (GameInfoStatic) other;
if ( !(
AdvancedEquals.equalsOrNull(this.getGametype()
, obj.getGametype()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Gametype on object class GameInfoStatic");
return true;
}
if ( !(
AdvancedEquals.equalsOrNull(this.getLevel()
, obj.getLevel()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Level on object class GameInfoStatic");
return true;
}
if ( !(this.getMaxTeams()
== obj.getMaxTeams()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property MaxTeams on object class GameInfoStatic");
return true;
}
if ( !(
AdvancedEquals.equalsOrNull(this.getRedBaseLocation()
, obj.getRedBaseLocation()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property RedBaseLocation on object class GameInfoStatic");
return true;
}
if ( !(
AdvancedEquals.equalsOrNull(this.getBlueBaseLocation()
, obj.getBlueBaseLocation()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property BlueBaseLocation on object class GameInfoStatic");
return true;
}
if ( !(
AdvancedEquals.equalsOrNull(this.getFirstDomPointLocation()
, obj.getFirstDomPointLocation()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property FirstDomPointLocation on object class GameInfoStatic");
return true;
}
if ( !(
AdvancedEquals.equalsOrNull(this.getSecondDomPointLocation()
, obj.getSecondDomPointLocation()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property SecondDomPointLocation on object class GameInfoStatic");
return true;
}
if ( !(
AdvancedEquals.equalsOrNull(this.getFactoryLocation()
, obj.getFactoryLocation()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property FactoryLocation on object class GameInfoStatic");
return true;
}
if ( !(this.getFactoryRadius()
== obj.getFactoryRadius()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property FactoryRadius on object class GameInfoStatic");
return true;
}
if ( !(
AdvancedEquals.equalsOrNull(this.getDisperserLocation()
, obj.getDisperserLocation()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property DisperserLocation on object class GameInfoStatic");
return true;
}
if ( !(this.getDisperserRadius()
== obj.getDisperserRadius()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property DisperserRadius on object class GameInfoStatic");
return true;
}
if ( !(this.getFactoryAdrenalineCount()
== obj.getFactoryAdrenalineCount()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property FactoryAdrenalineCount on object class GameInfoStatic");
return true;
}
if ( !(
AdvancedEquals.equalsOrNull(this.getFactorySpawnType()
, obj.getFactorySpawnType()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property FactorySpawnType on object class GameInfoStatic");
return true;
}
}
return false;
}
public String toString() {
return
super.toString() + "[" +
"Gametype = " + String.valueOf(getGametype()
) + " | " +
"Level = " + String.valueOf(getLevel()
) + " | " +
"MaxTeams = " + String.valueOf(getMaxTeams()
) + " | " +
"RedBaseLocation = " + String.valueOf(getRedBaseLocation()
) + " | " +
"BlueBaseLocation = " + String.valueOf(getBlueBaseLocation()
) + " | " +
"FirstDomPointLocation = " + String.valueOf(getFirstDomPointLocation()
) + " | " +
"SecondDomPointLocation = " + String.valueOf(getSecondDomPointLocation()
) + " | " +
"FactoryLocation = " + String.valueOf(getFactoryLocation()
) + " | " +
"FactoryRadius = " + String.valueOf(getFactoryRadius()
) + " | " +
"DisperserLocation = " + String.valueOf(getDisperserLocation()
) + " | " +
"DisperserRadius = " + String.valueOf(getDisperserRadius()
) + " | " +
"FactoryAdrenalineCount = " + String.valueOf(getFactoryAdrenalineCount()
) + " | " +
"FactorySpawnType = " + String.valueOf(getFactorySpawnType()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Gametype</b> = " + String.valueOf(getGametype()
) + " <br/> " +
"<b>Level</b> = " + String.valueOf(getLevel()
) + " <br/> " +
"<b>MaxTeams</b> = " + String.valueOf(getMaxTeams()
) + " <br/> " +
"<b>RedBaseLocation</b> = " + String.valueOf(getRedBaseLocation()
) + " <br/> " +
"<b>BlueBaseLocation</b> = " + String.valueOf(getBlueBaseLocation()
) + " <br/> " +
"<b>FirstDomPointLocation</b> = " + String.valueOf(getFirstDomPointLocation()
) + " <br/> " +
"<b>SecondDomPointLocation</b> = " + String.valueOf(getSecondDomPointLocation()
) + " <br/> " +
"<b>FactoryLocation</b> = " + String.valueOf(getFactoryLocation()
) + " <br/> " +
"<b>FactoryRadius</b> = " + String.valueOf(getFactoryRadius()
) + " <br/> " +
"<b>DisperserLocation</b> = " + String.valueOf(getDisperserLocation()
) + " <br/> " +
"<b>DisperserRadius</b> = " + String.valueOf(getDisperserRadius()
) + " <br/> " +
"<b>FactoryAdrenalineCount</b> = " + String.valueOf(getFactoryAdrenalineCount()
) + " <br/> " +
"<b>FactorySpawnType</b> = " + String.valueOf(getFactorySpawnType()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=static+classtype[@name=abstract]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=static+classtype[@name=abstract]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/SelfLocal.java | 324 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/SelfMessage.java | 2235 |
(this.getStatic(), SimTime);
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"BotId = " + String.valueOf(getBotId()
) + " | " +
"Name = " + String.valueOf(getName()
) + " | " +
"Vehicle = " + String.valueOf(isVehicle()
) + " | " +
"Location = " + String.valueOf(getLocation()
) + " | " +
"Velocity = " + String.valueOf(getVelocity()
) + " | " +
"Rotation = " + String.valueOf(getRotation()
) + " | " +
"Team = " + String.valueOf(getTeam()
) + " | " +
"Weapon = " + String.valueOf(getWeapon()
) + " | " +
"Shooting = " + String.valueOf(isShooting()
) + " | " +
"Health = " + String.valueOf(getHealth()
) + " | " +
"PrimaryAmmo = " + String.valueOf(getPrimaryAmmo()
) + " | " +
"SecondaryAmmo = " + String.valueOf(getSecondaryAmmo()
) + " | " +
"Adrenaline = " + String.valueOf(getAdrenaline()
) + " | " +
"Armor = " + String.valueOf(getArmor()
) + " | " +
"SmallArmor = " + String.valueOf(getSmallArmor()
) + " | " +
"AltFiring = " + String.valueOf(isAltFiring()
) + " | " +
"Crouched = " + String.valueOf(isCrouched()
) + " | " +
"Walking = " + String.valueOf(isWalking()
) + " | " +
"FloorLocation = " + String.valueOf(getFloorLocation()
) + " | " +
"FloorNormal = " + String.valueOf(getFloorNormal()
) + " | " +
"Combo = " + String.valueOf(getCombo()
) + " | " +
"UDamageTime = " + String.valueOf(getUDamageTime()
) + " | " +
"Action = " + String.valueOf(getAction()
) + " | " +
"EmotLeft = " + String.valueOf(getEmotLeft()
) + " | " +
"EmotCenter = " + String.valueOf(getEmotCenter()
) + " | " +
"EmotRight = " + String.valueOf(getEmotRight()
) + " | " +
"Bubble = " + String.valueOf(getBubble()
) + " | " +
"Anim = " + String.valueOf(getAnim()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>BotId</b> = " + String.valueOf(getBotId()
) + " <br/> " +
"<b>Name</b> = " + String.valueOf(getName()
) + " <br/> " +
"<b>Vehicle</b> = " + String.valueOf(isVehicle()
) + " <br/> " +
"<b>Location</b> = " + String.valueOf(getLocation()
) + " <br/> " +
"<b>Velocity</b> = " + String.valueOf(getVelocity()
) + " <br/> " +
"<b>Rotation</b> = " + String.valueOf(getRotation()
) + " <br/> " +
"<b>Team</b> = " + String.valueOf(getTeam()
) + " <br/> " +
"<b>Weapon</b> = " + String.valueOf(getWeapon()
) + " <br/> " +
"<b>Shooting</b> = " + String.valueOf(isShooting()
) + " <br/> " +
"<b>Health</b> = " + String.valueOf(getHealth()
) + " <br/> " +
"<b>PrimaryAmmo</b> = " + String.valueOf(getPrimaryAmmo()
) + " <br/> " +
"<b>SecondaryAmmo</b> = " + String.valueOf(getSecondaryAmmo()
) + " <br/> " +
"<b>Adrenaline</b> = " + String.valueOf(getAdrenaline()
) + " <br/> " +
"<b>Armor</b> = " + String.valueOf(getArmor()
) + " <br/> " +
"<b>SmallArmor</b> = " + String.valueOf(getSmallArmor()
) + " <br/> " +
"<b>AltFiring</b> = " + String.valueOf(isAltFiring()
) + " <br/> " +
"<b>Crouched</b> = " + String.valueOf(isCrouched()
) + " <br/> " +
"<b>Walking</b> = " + String.valueOf(isWalking()
) + " <br/> " +
"<b>FloorLocation</b> = " + String.valueOf(getFloorLocation()
) + " <br/> " +
"<b>FloorNormal</b> = " + String.valueOf(getFloorNormal()
) + " <br/> " +
"<b>Combo</b> = " + String.valueOf(getCombo()
) + " <br/> " +
"<b>UDamageTime</b> = " + String.valueOf(getUDamageTime()
) + " <br/> " +
"<b>Action</b> = " + String.valueOf(getAction()
) + " <br/> " +
"<b>EmotLeft</b> = " + String.valueOf(getEmotLeft()
) + " <br/> " +
"<b>EmotCenter</b> = " + String.valueOf(getEmotCenter()
) + " <br/> " +
"<b>EmotRight</b> = " + String.valueOf(getEmotRight()
) + " <br/> " +
"<b>Bubble</b> = " + String.valueOf(getBubble()
) + " <br/> " +
"<b>Anim</b> = " + String.valueOf(getAnim()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=base+classtype[@name=message]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=base+classtype[@name=message]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/Self.java | 355 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/SelfLocalImpl.java | 1472 |
return data.getId();
}
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"BotId = " + String.valueOf(getBotId()
) + " | " +
"Name = " + String.valueOf(getName()
) + " | " +
"Vehicle = " + String.valueOf(isVehicle()
) + " | " +
"Location = " + String.valueOf(getLocation()
) + " | " +
"Velocity = " + String.valueOf(getVelocity()
) + " | " +
"Rotation = " + String.valueOf(getRotation()
) + " | " +
"Team = " + String.valueOf(getTeam()
) + " | " +
"Weapon = " + String.valueOf(getWeapon()
) + " | " +
"Shooting = " + String.valueOf(isShooting()
) + " | " +
"Health = " + String.valueOf(getHealth()
) + " | " +
"PrimaryAmmo = " + String.valueOf(getPrimaryAmmo()
) + " | " +
"SecondaryAmmo = " + String.valueOf(getSecondaryAmmo()
) + " | " +
"Adrenaline = " + String.valueOf(getAdrenaline()
) + " | " +
"Armor = " + String.valueOf(getArmor()
) + " | " +
"SmallArmor = " + String.valueOf(getSmallArmor()
) + " | " +
"AltFiring = " + String.valueOf(isAltFiring()
) + " | " +
"Crouched = " + String.valueOf(isCrouched()
) + " | " +
"Walking = " + String.valueOf(isWalking()
) + " | " +
"FloorLocation = " + String.valueOf(getFloorLocation()
) + " | " +
"FloorNormal = " + String.valueOf(getFloorNormal()
) + " | " +
"Combo = " + String.valueOf(getCombo()
) + " | " +
"UDamageTime = " + String.valueOf(getUDamageTime()
) + " | " +
"Action = " + String.valueOf(getAction()
) + " | " +
"EmotLeft = " + String.valueOf(getEmotLeft()
) + " | " +
"EmotCenter = " + String.valueOf(getEmotCenter()
) + " | " +
"EmotRight = " + String.valueOf(getEmotRight()
) + " | " +
"Bubble = " + String.valueOf(getBubble()
) + " | " +
"Anim = " + String.valueOf(getAnim()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>BotId</b> = " + String.valueOf(getBotId()
) + " <br/> " +
"<b>Name</b> = " + String.valueOf(getName()
) + " <br/> " +
"<b>Vehicle</b> = " + String.valueOf(isVehicle()
) + " <br/> " +
"<b>Location</b> = " + String.valueOf(getLocation()
) + " <br/> " +
"<b>Velocity</b> = " + String.valueOf(getVelocity()
) + " <br/> " +
"<b>Rotation</b> = " + String.valueOf(getRotation()
) + " <br/> " +
"<b>Team</b> = " + String.valueOf(getTeam()
) + " <br/> " +
"<b>Weapon</b> = " + String.valueOf(getWeapon()
) + " <br/> " +
"<b>Shooting</b> = " + String.valueOf(isShooting()
) + " <br/> " +
"<b>Health</b> = " + String.valueOf(getHealth()
) + " <br/> " +
"<b>PrimaryAmmo</b> = " + String.valueOf(getPrimaryAmmo()
) + " <br/> " +
"<b>SecondaryAmmo</b> = " + String.valueOf(getSecondaryAmmo()
) + " <br/> " +
"<b>Adrenaline</b> = " + String.valueOf(getAdrenaline()
) + " <br/> " +
"<b>Armor</b> = " + String.valueOf(getArmor()
) + " <br/> " +
"<b>SmallArmor</b> = " + String.valueOf(getSmallArmor()
) + " <br/> " +
"<b>AltFiring</b> = " + String.valueOf(isAltFiring()
) + " <br/> " +
"<b>Crouched</b> = " + String.valueOf(isCrouched()
) + " <br/> " +
"<b>Walking</b> = " + String.valueOf(isWalking()
) + " <br/> " +
"<b>FloorLocation</b> = " + String.valueOf(getFloorLocation()
) + " <br/> " +
"<b>FloorNormal</b> = " + String.valueOf(getFloorNormal()
) + " <br/> " +
"<b>Combo</b> = " + String.valueOf(getCombo()
) + " <br/> " +
"<b>UDamageTime</b> = " + String.valueOf(getUDamageTime()
) + " <br/> " +
"<b>Action</b> = " + String.valueOf(getAction()
) + " <br/> " +
"<b>EmotLeft</b> = " + String.valueOf(getEmotLeft()
) + " <br/> " +
"<b>EmotCenter</b> = " + String.valueOf(getEmotCenter()
) + " <br/> " +
"<b>EmotRight</b> = " + String.valueOf(getEmotRight()
) + " <br/> " +
"<b>Bubble</b> = " + String.valueOf(getBubble()
) + " <br/> " +
"<b>Anim</b> = " + String.valueOf(getAnim()
) + " <br/> " +
"<br/>]";
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/SelfLocal.java | 325 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/SelfLocalImpl.java | 1475 |
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"BotId = " + String.valueOf(getBotId()
) + " | " +
"Name = " + String.valueOf(getName()
) + " | " +
"Vehicle = " + String.valueOf(isVehicle()
) + " | " +
"Location = " + String.valueOf(getLocation()
) + " | " +
"Velocity = " + String.valueOf(getVelocity()
) + " | " +
"Rotation = " + String.valueOf(getRotation()
) + " | " +
"Team = " + String.valueOf(getTeam()
) + " | " +
"Weapon = " + String.valueOf(getWeapon()
) + " | " +
"Shooting = " + String.valueOf(isShooting()
) + " | " +
"Health = " + String.valueOf(getHealth()
) + " | " +
"PrimaryAmmo = " + String.valueOf(getPrimaryAmmo()
) + " | " +
"SecondaryAmmo = " + String.valueOf(getSecondaryAmmo()
) + " | " +
"Adrenaline = " + String.valueOf(getAdrenaline()
) + " | " +
"Armor = " + String.valueOf(getArmor()
) + " | " +
"SmallArmor = " + String.valueOf(getSmallArmor()
) + " | " +
"AltFiring = " + String.valueOf(isAltFiring()
) + " | " +
"Crouched = " + String.valueOf(isCrouched()
) + " | " +
"Walking = " + String.valueOf(isWalking()
) + " | " +
"FloorLocation = " + String.valueOf(getFloorLocation()
) + " | " +
"FloorNormal = " + String.valueOf(getFloorNormal()
) + " | " +
"Combo = " + String.valueOf(getCombo()
) + " | " +
"UDamageTime = " + String.valueOf(getUDamageTime()
) + " | " +
"Action = " + String.valueOf(getAction()
) + " | " +
"EmotLeft = " + String.valueOf(getEmotLeft()
) + " | " +
"EmotCenter = " + String.valueOf(getEmotCenter()
) + " | " +
"EmotRight = " + String.valueOf(getEmotRight()
) + " | " +
"Bubble = " + String.valueOf(getBubble()
) + " | " +
"Anim = " + String.valueOf(getAnim()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>BotId</b> = " + String.valueOf(getBotId()
) + " <br/> " +
"<b>Name</b> = " + String.valueOf(getName()
) + " <br/> " +
"<b>Vehicle</b> = " + String.valueOf(isVehicle()
) + " <br/> " +
"<b>Location</b> = " + String.valueOf(getLocation()
) + " <br/> " +
"<b>Velocity</b> = " + String.valueOf(getVelocity()
) + " <br/> " +
"<b>Rotation</b> = " + String.valueOf(getRotation()
) + " <br/> " +
"<b>Team</b> = " + String.valueOf(getTeam()
) + " <br/> " +
"<b>Weapon</b> = " + String.valueOf(getWeapon()
) + " <br/> " +
"<b>Shooting</b> = " + String.valueOf(isShooting()
) + " <br/> " +
"<b>Health</b> = " + String.valueOf(getHealth()
) + " <br/> " +
"<b>PrimaryAmmo</b> = " + String.valueOf(getPrimaryAmmo()
) + " <br/> " +
"<b>SecondaryAmmo</b> = " + String.valueOf(getSecondaryAmmo()
) + " <br/> " +
"<b>Adrenaline</b> = " + String.valueOf(getAdrenaline()
) + " <br/> " +
"<b>Armor</b> = " + String.valueOf(getArmor()
) + " <br/> " +
"<b>SmallArmor</b> = " + String.valueOf(getSmallArmor()
) + " <br/> " +
"<b>AltFiring</b> = " + String.valueOf(isAltFiring()
) + " <br/> " +
"<b>Crouched</b> = " + String.valueOf(isCrouched()
) + " <br/> " +
"<b>Walking</b> = " + String.valueOf(isWalking()
) + " <br/> " +
"<b>FloorLocation</b> = " + String.valueOf(getFloorLocation()
) + " <br/> " +
"<b>FloorNormal</b> = " + String.valueOf(getFloorNormal()
) + " <br/> " +
"<b>Combo</b> = " + String.valueOf(getCombo()
) + " <br/> " +
"<b>UDamageTime</b> = " + String.valueOf(getUDamageTime()
) + " <br/> " +
"<b>Action</b> = " + String.valueOf(getAction()
) + " <br/> " +
"<b>EmotLeft</b> = " + String.valueOf(getEmotLeft()
) + " <br/> " +
"<b>EmotCenter</b> = " + String.valueOf(getEmotCenter()
) + " <br/> " +
"<b>EmotRight</b> = " + String.valueOf(getEmotRight()
) + " <br/> " +
"<b>Bubble</b> = " + String.valueOf(getBubble()
) + " <br/> " +
"<b>Anim</b> = " + String.valueOf(getAnim()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=local+classtype[@name=message]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=local+classtype[@name=message]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/NavPoint.java | 416 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/NavPointMessage.java | 2485 |
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"Location = " + String.valueOf(getLocation()
) + " | " +
"Velocity = " + String.valueOf(getVelocity()
) + " | " +
"Visible = " + String.valueOf(isVisible()
) + " | " +
"Item = " + String.valueOf(getItem()
) + " | " +
"ItemClass = " + String.valueOf(getItemClass()
) + " | " +
"ItemSpawned = " + String.valueOf(isItemSpawned()
) + " | " +
"DoorOpened = " + String.valueOf(isDoorOpened()
) + " | " +
"Mover = " + String.valueOf(getMover()
) + " | " +
"LiftOffset = " + String.valueOf(getLiftOffset()
) + " | " +
"LiftJumpExit = " + String.valueOf(isLiftJumpExit()
) + " | " +
"NoDoubleJump = " + String.valueOf(isNoDoubleJump()
) + " | " +
"InvSpot = " + String.valueOf(isInvSpot()
) + " | " +
"PlayerStart = " + String.valueOf(isPlayerStart()
) + " | " +
"TeamNumber = " + String.valueOf(getTeamNumber()
) + " | " +
"DomPoint = " + String.valueOf(isDomPoint()
) + " | " +
"DomPointController = " + String.valueOf(getDomPointController()
) + " | " +
"Door = " + String.valueOf(isDoor()
) + " | " +
"LiftCenter = " + String.valueOf(isLiftCenter()
) + " | " +
"LiftExit = " + String.valueOf(isLiftExit()
) + " | " +
"AIMarker = " + String.valueOf(isAIMarker()
) + " | " +
"JumpSpot = " + String.valueOf(isJumpSpot()
) + " | " +
"JumpPad = " + String.valueOf(isJumpPad()
) + " | " +
"JumpDest = " + String.valueOf(isJumpDest()
) + " | " +
"Teleporter = " + String.valueOf(isTeleporter()
) + " | " +
"Rotation = " + String.valueOf(getRotation()
) + " | " +
"RoamingSpot = " + String.valueOf(isRoamingSpot()
) + " | " +
"SnipingSpot = " + String.valueOf(isSnipingSpot()
) + " | " +
"PreferedWeapon = " + String.valueOf(getPreferedWeapon()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>Location</b> = " + String.valueOf(getLocation()
) + " <br/> " +
"<b>Velocity</b> = " + String.valueOf(getVelocity()
) + " <br/> " +
"<b>Visible</b> = " + String.valueOf(isVisible()
) + " <br/> " +
"<b>Item</b> = " + String.valueOf(getItem()
) + " <br/> " +
"<b>ItemClass</b> = " + String.valueOf(getItemClass()
) + " <br/> " +
"<b>ItemSpawned</b> = " + String.valueOf(isItemSpawned()
) + " <br/> " +
"<b>DoorOpened</b> = " + String.valueOf(isDoorOpened()
) + " <br/> " +
"<b>Mover</b> = " + String.valueOf(getMover()
) + " <br/> " +
"<b>LiftOffset</b> = " + String.valueOf(getLiftOffset()
) + " <br/> " +
"<b>LiftJumpExit</b> = " + String.valueOf(isLiftJumpExit()
) + " <br/> " +
"<b>NoDoubleJump</b> = " + String.valueOf(isNoDoubleJump()
) + " <br/> " +
"<b>InvSpot</b> = " + String.valueOf(isInvSpot()
) + " <br/> " +
"<b>PlayerStart</b> = " + String.valueOf(isPlayerStart()
) + " <br/> " +
"<b>TeamNumber</b> = " + String.valueOf(getTeamNumber()
) + " <br/> " +
"<b>DomPoint</b> = " + String.valueOf(isDomPoint()
) + " <br/> " +
"<b>DomPointController</b> = " + String.valueOf(getDomPointController()
) + " <br/> " +
"<b>Door</b> = " + String.valueOf(isDoor()
) + " <br/> " +
"<b>LiftCenter</b> = " + String.valueOf(isLiftCenter()
) + " <br/> " +
"<b>LiftExit</b> = " + String.valueOf(isLiftExit()
) + " <br/> " +
"<b>AIMarker</b> = " + String.valueOf(isAIMarker()
) + " <br/> " +
"<b>JumpSpot</b> = " + String.valueOf(isJumpSpot()
) + " <br/> " +
"<b>JumpPad</b> = " + String.valueOf(isJumpPad()
) + " <br/> " +
"<b>JumpDest</b> = " + String.valueOf(isJumpDest()
) + " <br/> " +
"<b>Teleporter</b> = " + String.valueOf(isTeleporter()
) + " <br/> " +
"<b>Rotation</b> = " + String.valueOf(getRotation()
) + " <br/> " +
"<b>RoamingSpot</b> = " + String.valueOf(isRoamingSpot()
) + " <br/> " +
"<b>SnipingSpot</b> = " + String.valueOf(isSnipingSpot()
) + " <br/> " +
"<b>PreferedWeapon</b> = " + String.valueOf(getPreferedWeapon()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=base+classtype[@name=message]) ---
/**
* DO NOT USE THIS METHOD! Reserved for GaviaLib (Pogamut core)! It's used
* to set correct item instance into the NavPoint.
*/
public void setItemInstance(Item item) { |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/Self.java | 358 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/SelfLocal.java | 325 |
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"BotId = " + String.valueOf(getBotId()
) + " | " +
"Name = " + String.valueOf(getName()
) + " | " +
"Vehicle = " + String.valueOf(isVehicle()
) + " | " +
"Location = " + String.valueOf(getLocation()
) + " | " +
"Velocity = " + String.valueOf(getVelocity()
) + " | " +
"Rotation = " + String.valueOf(getRotation()
) + " | " +
"Team = " + String.valueOf(getTeam()
) + " | " +
"Weapon = " + String.valueOf(getWeapon()
) + " | " +
"Shooting = " + String.valueOf(isShooting()
) + " | " +
"Health = " + String.valueOf(getHealth()
) + " | " +
"PrimaryAmmo = " + String.valueOf(getPrimaryAmmo()
) + " | " +
"SecondaryAmmo = " + String.valueOf(getSecondaryAmmo()
) + " | " +
"Adrenaline = " + String.valueOf(getAdrenaline()
) + " | " +
"Armor = " + String.valueOf(getArmor()
) + " | " +
"SmallArmor = " + String.valueOf(getSmallArmor()
) + " | " +
"AltFiring = " + String.valueOf(isAltFiring()
) + " | " +
"Crouched = " + String.valueOf(isCrouched()
) + " | " +
"Walking = " + String.valueOf(isWalking()
) + " | " +
"FloorLocation = " + String.valueOf(getFloorLocation()
) + " | " +
"FloorNormal = " + String.valueOf(getFloorNormal()
) + " | " +
"Combo = " + String.valueOf(getCombo()
) + " | " +
"UDamageTime = " + String.valueOf(getUDamageTime()
) + " | " +
"Action = " + String.valueOf(getAction()
) + " | " +
"EmotLeft = " + String.valueOf(getEmotLeft()
) + " | " +
"EmotCenter = " + String.valueOf(getEmotCenter()
) + " | " +
"EmotRight = " + String.valueOf(getEmotRight()
) + " | " +
"Bubble = " + String.valueOf(getBubble()
) + " | " +
"Anim = " + String.valueOf(getAnim()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>BotId</b> = " + String.valueOf(getBotId()
) + " <br/> " +
"<b>Name</b> = " + String.valueOf(getName()
) + " <br/> " +
"<b>Vehicle</b> = " + String.valueOf(isVehicle()
) + " <br/> " +
"<b>Location</b> = " + String.valueOf(getLocation()
) + " <br/> " +
"<b>Velocity</b> = " + String.valueOf(getVelocity()
) + " <br/> " +
"<b>Rotation</b> = " + String.valueOf(getRotation()
) + " <br/> " +
"<b>Team</b> = " + String.valueOf(getTeam()
) + " <br/> " +
"<b>Weapon</b> = " + String.valueOf(getWeapon()
) + " <br/> " +
"<b>Shooting</b> = " + String.valueOf(isShooting()
) + " <br/> " +
"<b>Health</b> = " + String.valueOf(getHealth()
) + " <br/> " +
"<b>PrimaryAmmo</b> = " + String.valueOf(getPrimaryAmmo()
) + " <br/> " +
"<b>SecondaryAmmo</b> = " + String.valueOf(getSecondaryAmmo()
) + " <br/> " +
"<b>Adrenaline</b> = " + String.valueOf(getAdrenaline()
) + " <br/> " +
"<b>Armor</b> = " + String.valueOf(getArmor()
) + " <br/> " +
"<b>SmallArmor</b> = " + String.valueOf(getSmallArmor()
) + " <br/> " +
"<b>AltFiring</b> = " + String.valueOf(isAltFiring()
) + " <br/> " +
"<b>Crouched</b> = " + String.valueOf(isCrouched()
) + " <br/> " +
"<b>Walking</b> = " + String.valueOf(isWalking()
) + " <br/> " +
"<b>FloorLocation</b> = " + String.valueOf(getFloorLocation()
) + " <br/> " +
"<b>FloorNormal</b> = " + String.valueOf(getFloorNormal()
) + " <br/> " +
"<b>Combo</b> = " + String.valueOf(getCombo()
) + " <br/> " +
"<b>UDamageTime</b> = " + String.valueOf(getUDamageTime()
) + " <br/> " +
"<b>Action</b> = " + String.valueOf(getAction()
) + " <br/> " +
"<b>EmotLeft</b> = " + String.valueOf(getEmotLeft()
) + " <br/> " +
"<b>EmotCenter</b> = " + String.valueOf(getEmotCenter()
) + " <br/> " +
"<b>EmotRight</b> = " + String.valueOf(getEmotRight()
) + " <br/> " +
"<b>Bubble</b> = " + String.valueOf(getBubble()
) + " <br/> " +
"<b>Anim</b> = " + String.valueOf(getAnim()
) + " <br/> " +
"<br/>]";
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/translator/observer/state/NavPointListState.java | 47 |
cz/cuni/amis/pogamut/ut2004/communication/translator/server/state/NavPointListState.java | 47 |
public class NavPointListState extends AbstractServerFSMState<InfoMessage, TranslatorContext> {
private boolean begun = false;
private Map<UnrealId, NavPoint> navPoints = new HashMap<UnrealId, NavPoint>();
private Map<UnrealId, List<NavPointNeighbourLink>> neighbours = new HashMap<UnrealId, List<NavPointNeighbourLink>>();
private NavPoint currentNavPoint = null;
public NavPointListState() {
}
@Override
public void stateEntering(TranslatorContext context, IFSMState<InfoMessage, TranslatorContext> fromState, InfoMessage symbol) {
if (!begun) {
if (!symbol.getClass().equals(NavPointListStart.class)) throw new UnexpectedMessageException(TranslatorMessages.unexpectedMessage(this, symbol, NavPointListStart.class), context.getLogger(), this);
begun = true;
return;
}
if (!symbol.getClass().equals(NavPointNeighbourLinkEnd.class)) throw new UnexpectedMessageException(TranslatorMessages.unexpectedMessage(this, symbol, NavPointNeighbourLinkEnd.class), context.getLogger(), this);
navPoints.put(currentNavPoint.getId(), currentNavPoint);
neighbours.put(currentNavPoint.getId(), context.getNeighbours());
}
@Override
public void stateLeaving(TranslatorContext context,
IFSMState<InfoMessage, TranslatorContext> toState, InfoMessage symbol) {
if (symbol.getClass().equals(NavPointNeighbourLinkStart.class)) return;
if (!symbol.getClass().equals(NavPointListEnd.class)) throw new UnexpectedMessageException(TranslatorMessages.unexpectedMessage(this, symbol, NavPointListEnd.class), context.getLogger(), this);
long simTime =
(symbol instanceof IWorldChangeEvent ? ((IWorldChangeEvent)symbol).getSimTime() : 0);
// we've received all the navpoints we could!
context.setNavPoints(navPoints);
context.setNavPointLinks(neighbours);
context.processNavPointLinks();
if (context.getItems() != null && context.getItems().size() > 0) {
context.processNavPointsAndItems();
if (context.getLogger().isLoggable(Level.FINE)) context.getLogger().fine("Pushing NavPoint events.");
context.getEventQueue().pushEvent(context.getNavPoints().values().toArray(new IWorldChangeEvent[0]));
if (context.getLogger().isLoggable(Level.FINE)) context.getLogger().fine("Pushing Item events.");
context.getEventQueue().pushEvent(context.getItems().values().toArray(new IWorldChangeEvent[0]));
context.getEventQueue().pushEvent(new MapPointListObtained(context.getNavPoints(), context.getItems(), simTime));
} else {
if (context.getLogger().isLoggable(Level.FINE)) context.getLogger().fine("Pushing NavPoint events.");
context.getEventQueue().pushEvent(context.getNavPoints().values().toArray(new IWorldChangeEvent[0]));
}
// leaving the state, mark we haven't ever begun
navPoints = new HashMap<UnrealId, NavPoint>(navPoints.size() + 20);
neighbours = new HashMap<UnrealId, List<NavPointNeighbourLink>>(neighbours.size() + 20);
begun = false;
}
@Override
protected void innerStateSymbol(TranslatorContext context, InfoMessage symbol) {
if (!symbol.getClass().equals(NavPoint.class)) {
if (!NavPoint.class.isAssignableFrom(symbol.getClass())) {
throw new UnexpectedMessageException(TranslatorMessages.unexpectedMessage(this, symbol, NavPoint.class), context.getLogger(), this);
}
}
currentNavPoint = (NavPoint)symbol;
}
@Override
public void init(TranslatorContext context) {
}
@Override
public void restart(TranslatorContext context) {
currentNavPoint = null;
begun = false;
navPoints = new HashMap<UnrealId, NavPoint>(navPoints.size() + 20);
neighbours = new HashMap<UnrealId, List<NavPointNeighbourLink>>(neighbours.size() + 20);
}
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/MoverMessage.java | 811 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/MoverStaticImpl.java | 498 |
}
@Override
public boolean isDifferentFrom(IStaticWorldObject other)
{
if (other == null) //early fail
{
return true;
}
else if (other == this) //early out
{
return false;
}
else
{
MoverStatic obj = (MoverStatic) other;
if ( !(
AdvancedEquals.equalsOrNull(this.getId()
, obj.getId()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Id on object class MoverStatic");
return true;
}
if ( !(this.isDamageTrig()
== obj.isDamageTrig()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property DamageTrig on object class MoverStatic");
return true;
}
if ( !(
AdvancedEquals.equalsOrNull(this.getType()
, obj.getType()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Type on object class MoverStatic");
return true;
}
if ( !(this.isIsMoving()
== obj.isIsMoving()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property IsMoving on object class MoverStatic");
return true;
}
if ( !(this.getMoveTime()
== obj.getMoveTime()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property MoveTime on object class MoverStatic");
return true;
}
if ( !(this.getOpenTime()
== obj.getOpenTime()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property OpenTime on object class MoverStatic");
return true;
}
if ( !(
AdvancedEquals.equalsOrNull(this.getBasePos()
, obj.getBasePos()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property BasePos on object class MoverStatic");
return true;
}
if ( !(
AdvancedEquals.equalsOrNull(this.getBaseRot()
, obj.getBaseRot()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property BaseRot on object class MoverStatic");
return true;
}
if ( !(this.getDelayTime()
== obj.getDelayTime()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property DelayTime on object class MoverStatic");
return true;
}
if ( !(
AdvancedEquals.equalsOrNull(this.getNavPointMarker()
, obj.getNavPointMarker()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property NavPointMarker on object class MoverStatic");
return true;
}
}
return false;
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"DamageTrig = " + String.valueOf(isDamageTrig()
) + " | " +
"Type = " + String.valueOf(getType()
) + " | " +
"IsMoving = " + String.valueOf(isIsMoving()
) + " | " +
"MoveTime = " + String.valueOf(getMoveTime()
) + " | " +
"OpenTime = " + String.valueOf(getOpenTime()
) + " | " +
"BasePos = " + String.valueOf(getBasePos()
) + " | " +
"BaseRot = " + String.valueOf(getBaseRot()
) + " | " +
"DelayTime = " + String.valueOf(getDelayTime()
) + " | " +
"NavPointMarker = " + String.valueOf(getNavPointMarker()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>DamageTrig</b> = " + String.valueOf(isDamageTrig()
) + " <br/> " +
"<b>Type</b> = " + String.valueOf(getType()
) + " <br/> " +
"<b>IsMoving</b> = " + String.valueOf(isIsMoving()
) + " <br/> " +
"<b>MoveTime</b> = " + String.valueOf(getMoveTime()
) + " <br/> " +
"<b>OpenTime</b> = " + String.valueOf(getOpenTime()
) + " <br/> " +
"<b>BasePos</b> = " + String.valueOf(getBasePos()
) + " <br/> " +
"<b>BaseRot</b> = " + String.valueOf(getBaseRot()
) + " <br/> " +
"<b>DelayTime</b> = " + String.valueOf(getDelayTime()
) + " <br/> " +
"<b>NavPointMarker</b> = " + String.valueOf(getNavPointMarker()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=static+classtype[@name=impl]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=static+classtype[@name=impl]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/MoverMessage.java | 814 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/MoverStatic.java | 144 |
@Override
public boolean isDifferentFrom(IStaticWorldObject other)
{
if (other == null) //early fail
{
return true;
}
else if (other == this) //early out
{
return false;
}
else
{
MoverStatic obj = (MoverStatic) other;
if ( !(
AdvancedEquals.equalsOrNull(this.getId()
, obj.getId()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Id on object class MoverStatic");
return true;
}
if ( !(this.isDamageTrig()
== obj.isDamageTrig()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property DamageTrig on object class MoverStatic");
return true;
}
if ( !(
AdvancedEquals.equalsOrNull(this.getType()
, obj.getType()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Type on object class MoverStatic");
return true;
}
if ( !(this.isIsMoving()
== obj.isIsMoving()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property IsMoving on object class MoverStatic");
return true;
}
if ( !(this.getMoveTime()
== obj.getMoveTime()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property MoveTime on object class MoverStatic");
return true;
}
if ( !(this.getOpenTime()
== obj.getOpenTime()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property OpenTime on object class MoverStatic");
return true;
}
if ( !(
AdvancedEquals.equalsOrNull(this.getBasePos()
, obj.getBasePos()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property BasePos on object class MoverStatic");
return true;
}
if ( !(
AdvancedEquals.equalsOrNull(this.getBaseRot()
, obj.getBaseRot()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property BaseRot on object class MoverStatic");
return true;
}
if ( !(this.getDelayTime()
== obj.getDelayTime()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property DelayTime on object class MoverStatic");
return true;
}
if ( !(
AdvancedEquals.equalsOrNull(this.getNavPointMarker()
, obj.getNavPointMarker()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property NavPointMarker on object class MoverStatic");
return true;
}
}
return false;
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"DamageTrig = " + String.valueOf(isDamageTrig()
) + " | " +
"Type = " + String.valueOf(getType()
) + " | " +
"IsMoving = " + String.valueOf(isIsMoving()
) + " | " +
"MoveTime = " + String.valueOf(getMoveTime()
) + " | " +
"OpenTime = " + String.valueOf(getOpenTime()
) + " | " +
"BasePos = " + String.valueOf(getBasePos()
) + " | " +
"BaseRot = " + String.valueOf(getBaseRot()
) + " | " +
"DelayTime = " + String.valueOf(getDelayTime()
) + " | " +
"NavPointMarker = " + String.valueOf(getNavPointMarker()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>DamageTrig</b> = " + String.valueOf(isDamageTrig()
) + " <br/> " +
"<b>Type</b> = " + String.valueOf(getType()
) + " <br/> " +
"<b>IsMoving</b> = " + String.valueOf(isIsMoving()
) + " <br/> " +
"<b>MoveTime</b> = " + String.valueOf(getMoveTime()
) + " <br/> " +
"<b>OpenTime</b> = " + String.valueOf(getOpenTime()
) + " <br/> " +
"<b>BasePos</b> = " + String.valueOf(getBasePos()
) + " <br/> " +
"<b>BaseRot</b> = " + String.valueOf(getBaseRot()
) + " <br/> " +
"<b>DelayTime</b> = " + String.valueOf(getDelayTime()
) + " <br/> " +
"<b>NavPointMarker</b> = " + String.valueOf(getNavPointMarker()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=static+classtype[@name=abstract]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=static+classtype[@name=abstract]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/InitedMessageLocal.java | 262 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/InitedMessageMessage.java | 1706 |
(this.getStatic(), SimTime);
}
public String toString() {
return
super.toString() + "[" +
"BotId = " + String.valueOf(getBotId()
) + " | " +
"HealthStart = " + String.valueOf(getHealthStart()
) + " | " +
"HealthFull = " + String.valueOf(getHealthFull()
) + " | " +
"HealthMax = " + String.valueOf(getHealthMax()
) + " | " +
"AdrenalineStart = " + String.valueOf(getAdrenalineStart()
) + " | " +
"AdrenalineMax = " + String.valueOf(getAdrenalineMax()
) + " | " +
"ShieldStrengthStart = " + String.valueOf(getShieldStrengthStart()
) + " | " +
"ShieldStrengthMax = " + String.valueOf(getShieldStrengthMax()
) + " | " +
"MaxMultiJump = " + String.valueOf(getMaxMultiJump()
) + " | " +
"DamageScaling = " + String.valueOf(getDamageScaling()
) + " | " +
"GroundSpeed = " + String.valueOf(getGroundSpeed()
) + " | " +
"WaterSpeed = " + String.valueOf(getWaterSpeed()
) + " | " +
"AirSpeed = " + String.valueOf(getAirSpeed()
) + " | " +
"LadderSpeed = " + String.valueOf(getLadderSpeed()
) + " | " +
"AccelRate = " + String.valueOf(getAccelRate()
) + " | " +
"JumpZ = " + String.valueOf(getJumpZ()
) + " | " +
"MultiJumpBoost = " + String.valueOf(getMultiJumpBoost()
) + " | " +
"MaxFallSpeed = " + String.valueOf(getMaxFallSpeed()
) + " | " +
"DodgeSpeedFactor = " + String.valueOf(getDodgeSpeedFactor()
) + " | " +
"DodgeSpeedZ = " + String.valueOf(getDodgeSpeedZ()
) + " | " +
"AirControl = " + String.valueOf(getAirControl()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>BotId</b> = " + String.valueOf(getBotId()
) + " <br/> " +
"<b>HealthStart</b> = " + String.valueOf(getHealthStart()
) + " <br/> " +
"<b>HealthFull</b> = " + String.valueOf(getHealthFull()
) + " <br/> " +
"<b>HealthMax</b> = " + String.valueOf(getHealthMax()
) + " <br/> " +
"<b>AdrenalineStart</b> = " + String.valueOf(getAdrenalineStart()
) + " <br/> " +
"<b>AdrenalineMax</b> = " + String.valueOf(getAdrenalineMax()
) + " <br/> " +
"<b>ShieldStrengthStart</b> = " + String.valueOf(getShieldStrengthStart()
) + " <br/> " +
"<b>ShieldStrengthMax</b> = " + String.valueOf(getShieldStrengthMax()
) + " <br/> " +
"<b>MaxMultiJump</b> = " + String.valueOf(getMaxMultiJump()
) + " <br/> " +
"<b>DamageScaling</b> = " + String.valueOf(getDamageScaling()
) + " <br/> " +
"<b>GroundSpeed</b> = " + String.valueOf(getGroundSpeed()
) + " <br/> " +
"<b>WaterSpeed</b> = " + String.valueOf(getWaterSpeed()
) + " <br/> " +
"<b>AirSpeed</b> = " + String.valueOf(getAirSpeed()
) + " <br/> " +
"<b>LadderSpeed</b> = " + String.valueOf(getLadderSpeed()
) + " <br/> " +
"<b>AccelRate</b> = " + String.valueOf(getAccelRate()
) + " <br/> " +
"<b>JumpZ</b> = " + String.valueOf(getJumpZ()
) + " <br/> " +
"<b>MultiJumpBoost</b> = " + String.valueOf(getMultiJumpBoost()
) + " <br/> " +
"<b>MaxFallSpeed</b> = " + String.valueOf(getMaxFallSpeed()
) + " <br/> " +
"<b>DodgeSpeedFactor</b> = " + String.valueOf(getDodgeSpeedFactor()
) + " <br/> " +
"<b>DodgeSpeedZ</b> = " + String.valueOf(getDodgeSpeedZ()
) + " <br/> " +
"<b>AirControl</b> = " + String.valueOf(getAirControl()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=base+classtype[@name=message]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=base+classtype[@name=message]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/InitedMessage.java | 292 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/InitedMessageLocalImpl.java | 921 |
return data.getId();
}
}
public String toString() {
return
super.toString() + "[" +
"BotId = " + String.valueOf(getBotId()
) + " | " +
"HealthStart = " + String.valueOf(getHealthStart()
) + " | " +
"HealthFull = " + String.valueOf(getHealthFull()
) + " | " +
"HealthMax = " + String.valueOf(getHealthMax()
) + " | " +
"AdrenalineStart = " + String.valueOf(getAdrenalineStart()
) + " | " +
"AdrenalineMax = " + String.valueOf(getAdrenalineMax()
) + " | " +
"ShieldStrengthStart = " + String.valueOf(getShieldStrengthStart()
) + " | " +
"ShieldStrengthMax = " + String.valueOf(getShieldStrengthMax()
) + " | " +
"MaxMultiJump = " + String.valueOf(getMaxMultiJump()
) + " | " +
"DamageScaling = " + String.valueOf(getDamageScaling()
) + " | " +
"GroundSpeed = " + String.valueOf(getGroundSpeed()
) + " | " +
"WaterSpeed = " + String.valueOf(getWaterSpeed()
) + " | " +
"AirSpeed = " + String.valueOf(getAirSpeed()
) + " | " +
"LadderSpeed = " + String.valueOf(getLadderSpeed()
) + " | " +
"AccelRate = " + String.valueOf(getAccelRate()
) + " | " +
"JumpZ = " + String.valueOf(getJumpZ()
) + " | " +
"MultiJumpBoost = " + String.valueOf(getMultiJumpBoost()
) + " | " +
"MaxFallSpeed = " + String.valueOf(getMaxFallSpeed()
) + " | " +
"DodgeSpeedFactor = " + String.valueOf(getDodgeSpeedFactor()
) + " | " +
"DodgeSpeedZ = " + String.valueOf(getDodgeSpeedZ()
) + " | " +
"AirControl = " + String.valueOf(getAirControl()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>BotId</b> = " + String.valueOf(getBotId()
) + " <br/> " +
"<b>HealthStart</b> = " + String.valueOf(getHealthStart()
) + " <br/> " +
"<b>HealthFull</b> = " + String.valueOf(getHealthFull()
) + " <br/> " +
"<b>HealthMax</b> = " + String.valueOf(getHealthMax()
) + " <br/> " +
"<b>AdrenalineStart</b> = " + String.valueOf(getAdrenalineStart()
) + " <br/> " +
"<b>AdrenalineMax</b> = " + String.valueOf(getAdrenalineMax()
) + " <br/> " +
"<b>ShieldStrengthStart</b> = " + String.valueOf(getShieldStrengthStart()
) + " <br/> " +
"<b>ShieldStrengthMax</b> = " + String.valueOf(getShieldStrengthMax()
) + " <br/> " +
"<b>MaxMultiJump</b> = " + String.valueOf(getMaxMultiJump()
) + " <br/> " +
"<b>DamageScaling</b> = " + String.valueOf(getDamageScaling()
) + " <br/> " +
"<b>GroundSpeed</b> = " + String.valueOf(getGroundSpeed()
) + " <br/> " +
"<b>WaterSpeed</b> = " + String.valueOf(getWaterSpeed()
) + " <br/> " +
"<b>AirSpeed</b> = " + String.valueOf(getAirSpeed()
) + " <br/> " +
"<b>LadderSpeed</b> = " + String.valueOf(getLadderSpeed()
) + " <br/> " +
"<b>AccelRate</b> = " + String.valueOf(getAccelRate()
) + " <br/> " +
"<b>JumpZ</b> = " + String.valueOf(getJumpZ()
) + " <br/> " +
"<b>MultiJumpBoost</b> = " + String.valueOf(getMultiJumpBoost()
) + " <br/> " +
"<b>MaxFallSpeed</b> = " + String.valueOf(getMaxFallSpeed()
) + " <br/> " +
"<b>DodgeSpeedFactor</b> = " + String.valueOf(getDodgeSpeedFactor()
) + " <br/> " +
"<b>DodgeSpeedZ</b> = " + String.valueOf(getDodgeSpeedZ()
) + " <br/> " +
"<b>AirControl</b> = " + String.valueOf(getAirControl()
) + " <br/> " +
"<br/>]";
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/InitedMessageLocal.java | 263 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/InitedMessageLocalImpl.java | 924 |
}
public String toString() {
return
super.toString() + "[" +
"BotId = " + String.valueOf(getBotId()
) + " | " +
"HealthStart = " + String.valueOf(getHealthStart()
) + " | " +
"HealthFull = " + String.valueOf(getHealthFull()
) + " | " +
"HealthMax = " + String.valueOf(getHealthMax()
) + " | " +
"AdrenalineStart = " + String.valueOf(getAdrenalineStart()
) + " | " +
"AdrenalineMax = " + String.valueOf(getAdrenalineMax()
) + " | " +
"ShieldStrengthStart = " + String.valueOf(getShieldStrengthStart()
) + " | " +
"ShieldStrengthMax = " + String.valueOf(getShieldStrengthMax()
) + " | " +
"MaxMultiJump = " + String.valueOf(getMaxMultiJump()
) + " | " +
"DamageScaling = " + String.valueOf(getDamageScaling()
) + " | " +
"GroundSpeed = " + String.valueOf(getGroundSpeed()
) + " | " +
"WaterSpeed = " + String.valueOf(getWaterSpeed()
) + " | " +
"AirSpeed = " + String.valueOf(getAirSpeed()
) + " | " +
"LadderSpeed = " + String.valueOf(getLadderSpeed()
) + " | " +
"AccelRate = " + String.valueOf(getAccelRate()
) + " | " +
"JumpZ = " + String.valueOf(getJumpZ()
) + " | " +
"MultiJumpBoost = " + String.valueOf(getMultiJumpBoost()
) + " | " +
"MaxFallSpeed = " + String.valueOf(getMaxFallSpeed()
) + " | " +
"DodgeSpeedFactor = " + String.valueOf(getDodgeSpeedFactor()
) + " | " +
"DodgeSpeedZ = " + String.valueOf(getDodgeSpeedZ()
) + " | " +
"AirControl = " + String.valueOf(getAirControl()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>BotId</b> = " + String.valueOf(getBotId()
) + " <br/> " +
"<b>HealthStart</b> = " + String.valueOf(getHealthStart()
) + " <br/> " +
"<b>HealthFull</b> = " + String.valueOf(getHealthFull()
) + " <br/> " +
"<b>HealthMax</b> = " + String.valueOf(getHealthMax()
) + " <br/> " +
"<b>AdrenalineStart</b> = " + String.valueOf(getAdrenalineStart()
) + " <br/> " +
"<b>AdrenalineMax</b> = " + String.valueOf(getAdrenalineMax()
) + " <br/> " +
"<b>ShieldStrengthStart</b> = " + String.valueOf(getShieldStrengthStart()
) + " <br/> " +
"<b>ShieldStrengthMax</b> = " + String.valueOf(getShieldStrengthMax()
) + " <br/> " +
"<b>MaxMultiJump</b> = " + String.valueOf(getMaxMultiJump()
) + " <br/> " +
"<b>DamageScaling</b> = " + String.valueOf(getDamageScaling()
) + " <br/> " +
"<b>GroundSpeed</b> = " + String.valueOf(getGroundSpeed()
) + " <br/> " +
"<b>WaterSpeed</b> = " + String.valueOf(getWaterSpeed()
) + " <br/> " +
"<b>AirSpeed</b> = " + String.valueOf(getAirSpeed()
) + " <br/> " +
"<b>LadderSpeed</b> = " + String.valueOf(getLadderSpeed()
) + " <br/> " +
"<b>AccelRate</b> = " + String.valueOf(getAccelRate()
) + " <br/> " +
"<b>JumpZ</b> = " + String.valueOf(getJumpZ()
) + " <br/> " +
"<b>MultiJumpBoost</b> = " + String.valueOf(getMultiJumpBoost()
) + " <br/> " +
"<b>MaxFallSpeed</b> = " + String.valueOf(getMaxFallSpeed()
) + " <br/> " +
"<b>DodgeSpeedFactor</b> = " + String.valueOf(getDodgeSpeedFactor()
) + " <br/> " +
"<b>DodgeSpeedZ</b> = " + String.valueOf(getDodgeSpeedZ()
) + " <br/> " +
"<b>AirControl</b> = " + String.valueOf(getAirControl()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=local+classtype[@name=message]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=local+classtype[@name=message]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/InitedMessage.java | 295 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/InitedMessageLocal.java | 263 |
}
public String toString() {
return
super.toString() + "[" +
"BotId = " + String.valueOf(getBotId()
) + " | " +
"HealthStart = " + String.valueOf(getHealthStart()
) + " | " +
"HealthFull = " + String.valueOf(getHealthFull()
) + " | " +
"HealthMax = " + String.valueOf(getHealthMax()
) + " | " +
"AdrenalineStart = " + String.valueOf(getAdrenalineStart()
) + " | " +
"AdrenalineMax = " + String.valueOf(getAdrenalineMax()
) + " | " +
"ShieldStrengthStart = " + String.valueOf(getShieldStrengthStart()
) + " | " +
"ShieldStrengthMax = " + String.valueOf(getShieldStrengthMax()
) + " | " +
"MaxMultiJump = " + String.valueOf(getMaxMultiJump()
) + " | " +
"DamageScaling = " + String.valueOf(getDamageScaling()
) + " | " +
"GroundSpeed = " + String.valueOf(getGroundSpeed()
) + " | " +
"WaterSpeed = " + String.valueOf(getWaterSpeed()
) + " | " +
"AirSpeed = " + String.valueOf(getAirSpeed()
) + " | " +
"LadderSpeed = " + String.valueOf(getLadderSpeed()
) + " | " +
"AccelRate = " + String.valueOf(getAccelRate()
) + " | " +
"JumpZ = " + String.valueOf(getJumpZ()
) + " | " +
"MultiJumpBoost = " + String.valueOf(getMultiJumpBoost()
) + " | " +
"MaxFallSpeed = " + String.valueOf(getMaxFallSpeed()
) + " | " +
"DodgeSpeedFactor = " + String.valueOf(getDodgeSpeedFactor()
) + " | " +
"DodgeSpeedZ = " + String.valueOf(getDodgeSpeedZ()
) + " | " +
"AirControl = " + String.valueOf(getAirControl()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>BotId</b> = " + String.valueOf(getBotId()
) + " <br/> " +
"<b>HealthStart</b> = " + String.valueOf(getHealthStart()
) + " <br/> " +
"<b>HealthFull</b> = " + String.valueOf(getHealthFull()
) + " <br/> " +
"<b>HealthMax</b> = " + String.valueOf(getHealthMax()
) + " <br/> " +
"<b>AdrenalineStart</b> = " + String.valueOf(getAdrenalineStart()
) + " <br/> " +
"<b>AdrenalineMax</b> = " + String.valueOf(getAdrenalineMax()
) + " <br/> " +
"<b>ShieldStrengthStart</b> = " + String.valueOf(getShieldStrengthStart()
) + " <br/> " +
"<b>ShieldStrengthMax</b> = " + String.valueOf(getShieldStrengthMax()
) + " <br/> " +
"<b>MaxMultiJump</b> = " + String.valueOf(getMaxMultiJump()
) + " <br/> " +
"<b>DamageScaling</b> = " + String.valueOf(getDamageScaling()
) + " <br/> " +
"<b>GroundSpeed</b> = " + String.valueOf(getGroundSpeed()
) + " <br/> " +
"<b>WaterSpeed</b> = " + String.valueOf(getWaterSpeed()
) + " <br/> " +
"<b>AirSpeed</b> = " + String.valueOf(getAirSpeed()
) + " <br/> " +
"<b>LadderSpeed</b> = " + String.valueOf(getLadderSpeed()
) + " <br/> " +
"<b>AccelRate</b> = " + String.valueOf(getAccelRate()
) + " <br/> " +
"<b>JumpZ</b> = " + String.valueOf(getJumpZ()
) + " <br/> " +
"<b>MultiJumpBoost</b> = " + String.valueOf(getMultiJumpBoost()
) + " <br/> " +
"<b>MaxFallSpeed</b> = " + String.valueOf(getMaxFallSpeed()
) + " <br/> " +
"<b>DodgeSpeedFactor</b> = " + String.valueOf(getDodgeSpeedFactor()
) + " <br/> " +
"<b>DodgeSpeedZ</b> = " + String.valueOf(getDodgeSpeedZ()
) + " <br/> " +
"<b>AirControl</b> = " + String.valueOf(getAirControl()
) + " <br/> " +
"<br/>]";
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/GameInfo.java | 292 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/GameInfoMessage.java | 1844 |
}
public String toString() {
return
super.toString() + "[" +
"Gametype = " + String.valueOf(getGametype()
) + " | " +
"Level = " + String.valueOf(getLevel()
) + " | " +
"WeaponStay = " + String.valueOf(isWeaponStay()
) + " | " +
"TimeLimit = " + String.valueOf(getTimeLimit()
) + " | " +
"FragLimit = " + String.valueOf(getFragLimit()
) + " | " +
"GoalTeamScore = " + String.valueOf(getGoalTeamScore()
) + " | " +
"MaxTeams = " + String.valueOf(getMaxTeams()
) + " | " +
"MaxTeamSize = " + String.valueOf(getMaxTeamSize()
) + " | " +
"RedBaseLocation = " + String.valueOf(getRedBaseLocation()
) + " | " +
"BlueBaseLocation = " + String.valueOf(getBlueBaseLocation()
) + " | " +
"FirstDomPointLocation = " + String.valueOf(getFirstDomPointLocation()
) + " | " +
"SecondDomPointLocation = " + String.valueOf(getSecondDomPointLocation()
) + " | " +
"GamePaused = " + String.valueOf(isGamePaused()
) + " | " +
"BotsPaused = " + String.valueOf(isBotsPaused()
) + " | " +
"FactoryLocation = " + String.valueOf(getFactoryLocation()
) + " | " +
"FactoryRadius = " + String.valueOf(getFactoryRadius()
) + " | " +
"DisperserLocation = " + String.valueOf(getDisperserLocation()
) + " | " +
"DisperserRadius = " + String.valueOf(getDisperserRadius()
) + " | " +
"FactoryAdrenalineCount = " + String.valueOf(getFactoryAdrenalineCount()
) + " | " +
"FactorySpawnType = " + String.valueOf(getFactorySpawnType()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Gametype</b> = " + String.valueOf(getGametype()
) + " <br/> " +
"<b>Level</b> = " + String.valueOf(getLevel()
) + " <br/> " +
"<b>WeaponStay</b> = " + String.valueOf(isWeaponStay()
) + " <br/> " +
"<b>TimeLimit</b> = " + String.valueOf(getTimeLimit()
) + " <br/> " +
"<b>FragLimit</b> = " + String.valueOf(getFragLimit()
) + " <br/> " +
"<b>GoalTeamScore</b> = " + String.valueOf(getGoalTeamScore()
) + " <br/> " +
"<b>MaxTeams</b> = " + String.valueOf(getMaxTeams()
) + " <br/> " +
"<b>MaxTeamSize</b> = " + String.valueOf(getMaxTeamSize()
) + " <br/> " +
"<b>RedBaseLocation</b> = " + String.valueOf(getRedBaseLocation()
) + " <br/> " +
"<b>BlueBaseLocation</b> = " + String.valueOf(getBlueBaseLocation()
) + " <br/> " +
"<b>FirstDomPointLocation</b> = " + String.valueOf(getFirstDomPointLocation()
) + " <br/> " +
"<b>SecondDomPointLocation</b> = " + String.valueOf(getSecondDomPointLocation()
) + " <br/> " +
"<b>GamePaused</b> = " + String.valueOf(isGamePaused()
) + " <br/> " +
"<b>BotsPaused</b> = " + String.valueOf(isBotsPaused()
) + " <br/> " +
"<b>FactoryLocation</b> = " + String.valueOf(getFactoryLocation()
) + " <br/> " +
"<b>FactoryRadius</b> = " + String.valueOf(getFactoryRadius()
) + " <br/> " +
"<b>DisperserLocation</b> = " + String.valueOf(getDisperserLocation()
) + " <br/> " +
"<b>DisperserRadius</b> = " + String.valueOf(getDisperserRadius()
) + " <br/> " +
"<b>FactoryAdrenalineCount</b> = " + String.valueOf(getFactoryAdrenalineCount()
) + " <br/> " +
"<b>FactorySpawnType</b> = " + String.valueOf(getFactorySpawnType()
) + " <br/> " +
"<br/>]";
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/ConfigChangeLocal.java | 227 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/ConfigChangeMessage.java | 1489 |
(this.getStatic(), SimTime);
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"BotId = " + String.valueOf(getBotId()
) + " | " +
"ManualSpawn = " + String.valueOf(isManualSpawn()
) + " | " +
"AutoTrace = " + String.valueOf(isAutoTrace()
) + " | " +
"Name = " + String.valueOf(getName()
) + " | " +
"SpeedMultiplier = " + String.valueOf(getSpeedMultiplier()
) + " | " +
"RotationRate = " + String.valueOf(getRotationRate()
) + " | " +
"Invulnerable = " + String.valueOf(isInvulnerable()
) + " | " +
"SelfUpdateTime = " + String.valueOf(getSelfUpdateTime()
) + " | " +
"VisionTime = " + String.valueOf(getVisionTime()
) + " | " +
"LocUpdateMultiplier = " + String.valueOf(getLocUpdateMultiplier()
) + " | " +
"ShowDebug = " + String.valueOf(isShowDebug()
) + " | " +
"ShowFocalPoint = " + String.valueOf(isShowFocalPoint()
) + " | " +
"DrawTraceLines = " + String.valueOf(isDrawTraceLines()
) + " | " +
"SynchronousOff = " + String.valueOf(isSynchronousOff()
) + " | " +
"AutoPickupOff = " + String.valueOf(isAutoPickupOff()
) + " | " +
"Action = " + String.valueOf(getAction()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>BotId</b> = " + String.valueOf(getBotId()
) + " <br/> " +
"<b>ManualSpawn</b> = " + String.valueOf(isManualSpawn()
) + " <br/> " +
"<b>AutoTrace</b> = " + String.valueOf(isAutoTrace()
) + " <br/> " +
"<b>Name</b> = " + String.valueOf(getName()
) + " <br/> " +
"<b>SpeedMultiplier</b> = " + String.valueOf(getSpeedMultiplier()
) + " <br/> " +
"<b>RotationRate</b> = " + String.valueOf(getRotationRate()
) + " <br/> " +
"<b>Invulnerable</b> = " + String.valueOf(isInvulnerable()
) + " <br/> " +
"<b>SelfUpdateTime</b> = " + String.valueOf(getSelfUpdateTime()
) + " <br/> " +
"<b>VisionTime</b> = " + String.valueOf(getVisionTime()
) + " <br/> " +
"<b>LocUpdateMultiplier</b> = " + String.valueOf(getLocUpdateMultiplier()
) + " <br/> " +
"<b>ShowDebug</b> = " + String.valueOf(isShowDebug()
) + " <br/> " +
"<b>ShowFocalPoint</b> = " + String.valueOf(isShowFocalPoint()
) + " <br/> " +
"<b>DrawTraceLines</b> = " + String.valueOf(isDrawTraceLines()
) + " <br/> " +
"<b>SynchronousOff</b> = " + String.valueOf(isSynchronousOff()
) + " <br/> " +
"<b>AutoPickupOff</b> = " + String.valueOf(isAutoPickupOff()
) + " <br/> " +
"<b>Action</b> = " + String.valueOf(getAction()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=base+classtype[@name=message]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=base+classtype[@name=message]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/ConfigChange.java | 257 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/ConfigChangeLocalImpl.java | 939 |
return data.getId();
}
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"BotId = " + String.valueOf(getBotId()
) + " | " +
"ManualSpawn = " + String.valueOf(isManualSpawn()
) + " | " +
"AutoTrace = " + String.valueOf(isAutoTrace()
) + " | " +
"Name = " + String.valueOf(getName()
) + " | " +
"SpeedMultiplier = " + String.valueOf(getSpeedMultiplier()
) + " | " +
"RotationRate = " + String.valueOf(getRotationRate()
) + " | " +
"Invulnerable = " + String.valueOf(isInvulnerable()
) + " | " +
"SelfUpdateTime = " + String.valueOf(getSelfUpdateTime()
) + " | " +
"VisionTime = " + String.valueOf(getVisionTime()
) + " | " +
"LocUpdateMultiplier = " + String.valueOf(getLocUpdateMultiplier()
) + " | " +
"ShowDebug = " + String.valueOf(isShowDebug()
) + " | " +
"ShowFocalPoint = " + String.valueOf(isShowFocalPoint()
) + " | " +
"DrawTraceLines = " + String.valueOf(isDrawTraceLines()
) + " | " +
"SynchronousOff = " + String.valueOf(isSynchronousOff()
) + " | " +
"AutoPickupOff = " + String.valueOf(isAutoPickupOff()
) + " | " +
"Action = " + String.valueOf(getAction()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>BotId</b> = " + String.valueOf(getBotId()
) + " <br/> " +
"<b>ManualSpawn</b> = " + String.valueOf(isManualSpawn()
) + " <br/> " +
"<b>AutoTrace</b> = " + String.valueOf(isAutoTrace()
) + " <br/> " +
"<b>Name</b> = " + String.valueOf(getName()
) + " <br/> " +
"<b>SpeedMultiplier</b> = " + String.valueOf(getSpeedMultiplier()
) + " <br/> " +
"<b>RotationRate</b> = " + String.valueOf(getRotationRate()
) + " <br/> " +
"<b>Invulnerable</b> = " + String.valueOf(isInvulnerable()
) + " <br/> " +
"<b>SelfUpdateTime</b> = " + String.valueOf(getSelfUpdateTime()
) + " <br/> " +
"<b>VisionTime</b> = " + String.valueOf(getVisionTime()
) + " <br/> " +
"<b>LocUpdateMultiplier</b> = " + String.valueOf(getLocUpdateMultiplier()
) + " <br/> " +
"<b>ShowDebug</b> = " + String.valueOf(isShowDebug()
) + " <br/> " +
"<b>ShowFocalPoint</b> = " + String.valueOf(isShowFocalPoint()
) + " <br/> " +
"<b>DrawTraceLines</b> = " + String.valueOf(isDrawTraceLines()
) + " <br/> " +
"<b>SynchronousOff</b> = " + String.valueOf(isSynchronousOff()
) + " <br/> " +
"<b>AutoPickupOff</b> = " + String.valueOf(isAutoPickupOff()
) + " <br/> " +
"<b>Action</b> = " + String.valueOf(getAction()
) + " <br/> " +
"<br/>]";
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/ConfigChangeLocal.java | 228 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/ConfigChangeLocalImpl.java | 942 |
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"BotId = " + String.valueOf(getBotId()
) + " | " +
"ManualSpawn = " + String.valueOf(isManualSpawn()
) + " | " +
"AutoTrace = " + String.valueOf(isAutoTrace()
) + " | " +
"Name = " + String.valueOf(getName()
) + " | " +
"SpeedMultiplier = " + String.valueOf(getSpeedMultiplier()
) + " | " +
"RotationRate = " + String.valueOf(getRotationRate()
) + " | " +
"Invulnerable = " + String.valueOf(isInvulnerable()
) + " | " +
"SelfUpdateTime = " + String.valueOf(getSelfUpdateTime()
) + " | " +
"VisionTime = " + String.valueOf(getVisionTime()
) + " | " +
"LocUpdateMultiplier = " + String.valueOf(getLocUpdateMultiplier()
) + " | " +
"ShowDebug = " + String.valueOf(isShowDebug()
) + " | " +
"ShowFocalPoint = " + String.valueOf(isShowFocalPoint()
) + " | " +
"DrawTraceLines = " + String.valueOf(isDrawTraceLines()
) + " | " +
"SynchronousOff = " + String.valueOf(isSynchronousOff()
) + " | " +
"AutoPickupOff = " + String.valueOf(isAutoPickupOff()
) + " | " +
"Action = " + String.valueOf(getAction()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>BotId</b> = " + String.valueOf(getBotId()
) + " <br/> " +
"<b>ManualSpawn</b> = " + String.valueOf(isManualSpawn()
) + " <br/> " +
"<b>AutoTrace</b> = " + String.valueOf(isAutoTrace()
) + " <br/> " +
"<b>Name</b> = " + String.valueOf(getName()
) + " <br/> " +
"<b>SpeedMultiplier</b> = " + String.valueOf(getSpeedMultiplier()
) + " <br/> " +
"<b>RotationRate</b> = " + String.valueOf(getRotationRate()
) + " <br/> " +
"<b>Invulnerable</b> = " + String.valueOf(isInvulnerable()
) + " <br/> " +
"<b>SelfUpdateTime</b> = " + String.valueOf(getSelfUpdateTime()
) + " <br/> " +
"<b>VisionTime</b> = " + String.valueOf(getVisionTime()
) + " <br/> " +
"<b>LocUpdateMultiplier</b> = " + String.valueOf(getLocUpdateMultiplier()
) + " <br/> " +
"<b>ShowDebug</b> = " + String.valueOf(isShowDebug()
) + " <br/> " +
"<b>ShowFocalPoint</b> = " + String.valueOf(isShowFocalPoint()
) + " <br/> " +
"<b>DrawTraceLines</b> = " + String.valueOf(isDrawTraceLines()
) + " <br/> " +
"<b>SynchronousOff</b> = " + String.valueOf(isSynchronousOff()
) + " <br/> " +
"<b>AutoPickupOff</b> = " + String.valueOf(isAutoPickupOff()
) + " <br/> " +
"<b>Action</b> = " + String.valueOf(getAction()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=local+classtype[@name=message]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=local+classtype[@name=message]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/Player.java | 314 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/PlayerMessage.java | 1791 |
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"Jmx = " + String.valueOf(getJmx()
) + " | " +
"Name = " + String.valueOf(getName()
) + " | " +
"Action = " + String.valueOf(getAction()
) + " | " +
"Visible = " + String.valueOf(isVisible()
) + " | " +
"Rotation = " + String.valueOf(getRotation()
) + " | " +
"Location = " + String.valueOf(getLocation()
) + " | " +
"Velocity = " + String.valueOf(getVelocity()
) + " | " +
"Team = " + String.valueOf(getTeam()
) + " | " +
"Weapon = " + String.valueOf(getWeapon()
) + " | " +
"Crouched = " + String.valueOf(isCrouched()
) + " | " +
"Firing = " + String.valueOf(getFiring()
) + " | " +
"EmotLeft = " + String.valueOf(getEmotLeft()
) + " | " +
"EmotCenter = " + String.valueOf(getEmotCenter()
) + " | " +
"EmotRight = " + String.valueOf(getEmotRight()
) + " | " +
"Bubble = " + String.valueOf(getBubble()
) + " | " +
"Anim = " + String.valueOf(getAnim()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>Jmx</b> = " + String.valueOf(getJmx()
) + " <br/> " +
"<b>Name</b> = " + String.valueOf(getName()
) + " <br/> " +
"<b>Action</b> = " + String.valueOf(getAction()
) + " <br/> " +
"<b>Visible</b> = " + String.valueOf(isVisible()
) + " <br/> " +
"<b>Rotation</b> = " + String.valueOf(getRotation()
) + " <br/> " +
"<b>Location</b> = " + String.valueOf(getLocation()
) + " <br/> " +
"<b>Velocity</b> = " + String.valueOf(getVelocity()
) + " <br/> " +
"<b>Team</b> = " + String.valueOf(getTeam()
) + " <br/> " +
"<b>Weapon</b> = " + String.valueOf(getWeapon()
) + " <br/> " +
"<b>Crouched</b> = " + String.valueOf(isCrouched()
) + " <br/> " +
"<b>Firing</b> = " + String.valueOf(getFiring()
) + " <br/> " +
"<b>EmotLeft</b> = " + String.valueOf(getEmotLeft()
) + " <br/> " +
"<b>EmotCenter</b> = " + String.valueOf(getEmotCenter()
) + " <br/> " +
"<b>EmotRight</b> = " + String.valueOf(getEmotRight()
) + " <br/> " +
"<b>Bubble</b> = " + String.valueOf(getBubble()
) + " <br/> " +
"<b>Anim</b> = " + String.valueOf(getAnim()
) + " <br/> " +
"<br/>]";
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/ConfigChange.java | 260 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/ConfigChangeMessage.java | 1013 |
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"BotId = " + String.valueOf(getBotId()
) + " | " +
"ManualSpawn = " + String.valueOf(isManualSpawn()
) + " | " +
"AutoTrace = " + String.valueOf(isAutoTrace()
) + " | " +
"Name = " + String.valueOf(getName()
) + " | " +
"SpeedMultiplier = " + String.valueOf(getSpeedMultiplier()
) + " | " +
"RotationRate = " + String.valueOf(getRotationRate()
) + " | " +
"Invulnerable = " + String.valueOf(isInvulnerable()
) + " | " +
"SelfUpdateTime = " + String.valueOf(getSelfUpdateTime()
) + " | " +
"VisionTime = " + String.valueOf(getVisionTime()
) + " | " +
"LocUpdateMultiplier = " + String.valueOf(getLocUpdateMultiplier()
) + " | " +
"ShowDebug = " + String.valueOf(isShowDebug()
) + " | " +
"ShowFocalPoint = " + String.valueOf(isShowFocalPoint()
) + " | " +
"DrawTraceLines = " + String.valueOf(isDrawTraceLines()
) + " | " +
"SynchronousOff = " + String.valueOf(isSynchronousOff()
) + " | " +
"AutoPickupOff = " + String.valueOf(isAutoPickupOff()
) + " | " +
"Action = " + String.valueOf(getAction()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>BotId</b> = " + String.valueOf(getBotId()
) + " <br/> " +
"<b>ManualSpawn</b> = " + String.valueOf(isManualSpawn()
) + " <br/> " +
"<b>AutoTrace</b> = " + String.valueOf(isAutoTrace()
) + " <br/> " +
"<b>Name</b> = " + String.valueOf(getName()
) + " <br/> " +
"<b>SpeedMultiplier</b> = " + String.valueOf(getSpeedMultiplier()
) + " <br/> " +
"<b>RotationRate</b> = " + String.valueOf(getRotationRate()
) + " <br/> " +
"<b>Invulnerable</b> = " + String.valueOf(isInvulnerable()
) + " <br/> " +
"<b>SelfUpdateTime</b> = " + String.valueOf(getSelfUpdateTime()
) + " <br/> " +
"<b>VisionTime</b> = " + String.valueOf(getVisionTime()
) + " <br/> " +
"<b>LocUpdateMultiplier</b> = " + String.valueOf(getLocUpdateMultiplier()
) + " <br/> " +
"<b>ShowDebug</b> = " + String.valueOf(isShowDebug()
) + " <br/> " +
"<b>ShowFocalPoint</b> = " + String.valueOf(isShowFocalPoint()
) + " <br/> " +
"<b>DrawTraceLines</b> = " + String.valueOf(isDrawTraceLines()
) + " <br/> " +
"<b>SynchronousOff</b> = " + String.valueOf(isSynchronousOff()
) + " <br/> " +
"<b>AutoPickupOff</b> = " + String.valueOf(isAutoPickupOff()
) + " <br/> " +
"<b>Action</b> = " + String.valueOf(getAction()
) + " <br/> " +
"<br/>]";
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/PlayerMessage.java | 1508 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/PlayerSharedImpl.java | 597 |
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"Name = " + String.valueOf(getName()
) + " | " +
"Action = " + String.valueOf(getAction()
) + " | " +
"Rotation = " + String.valueOf(getRotation()
) + " | " +
"Location = " + String.valueOf(getLocation()
) + " | " +
"Velocity = " + String.valueOf(getVelocity()
) + " | " +
"Team = " + String.valueOf(getTeam()
) + " | " +
"Weapon = " + String.valueOf(getWeapon()
) + " | " +
"Crouched = " + String.valueOf(isCrouched()
) + " | " +
"Firing = " + String.valueOf(getFiring()
) + " | " +
"EmotLeft = " + String.valueOf(getEmotLeft()
) + " | " +
"EmotCenter = " + String.valueOf(getEmotCenter()
) + " | " +
"EmotRight = " + String.valueOf(getEmotRight()
) + " | " +
"Bubble = " + String.valueOf(getBubble()
) + " | " +
"Anim = " + String.valueOf(getAnim()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>Name</b> = " + String.valueOf(getName()
) + " <br/> " +
"<b>Action</b> = " + String.valueOf(getAction()
) + " <br/> " +
"<b>Rotation</b> = " + String.valueOf(getRotation()
) + " <br/> " +
"<b>Location</b> = " + String.valueOf(getLocation()
) + " <br/> " +
"<b>Velocity</b> = " + String.valueOf(getVelocity()
) + " <br/> " +
"<b>Team</b> = " + String.valueOf(getTeam()
) + " <br/> " +
"<b>Weapon</b> = " + String.valueOf(getWeapon()
) + " <br/> " +
"<b>Crouched</b> = " + String.valueOf(isCrouched()
) + " <br/> " +
"<b>Firing</b> = " + String.valueOf(getFiring()
) + " <br/> " +
"<b>EmotLeft</b> = " + String.valueOf(getEmotLeft()
) + " <br/> " +
"<b>EmotCenter</b> = " + String.valueOf(getEmotCenter()
) + " <br/> " +
"<b>EmotRight</b> = " + String.valueOf(getEmotRight()
) + " <br/> " +
"<b>Bubble</b> = " + String.valueOf(getBubble()
) + " <br/> " +
"<b>Anim</b> = " + String.valueOf(getAnim()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=shared+classtype[@name=impl]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=shared+classtype[@name=impl]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/PlayerMessage.java | 1511 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/PlayerShared.java | 268 |
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"Name = " + String.valueOf(getName()
) + " | " +
"Action = " + String.valueOf(getAction()
) + " | " +
"Rotation = " + String.valueOf(getRotation()
) + " | " +
"Location = " + String.valueOf(getLocation()
) + " | " +
"Velocity = " + String.valueOf(getVelocity()
) + " | " +
"Team = " + String.valueOf(getTeam()
) + " | " +
"Weapon = " + String.valueOf(getWeapon()
) + " | " +
"Crouched = " + String.valueOf(isCrouched()
) + " | " +
"Firing = " + String.valueOf(getFiring()
) + " | " +
"EmotLeft = " + String.valueOf(getEmotLeft()
) + " | " +
"EmotCenter = " + String.valueOf(getEmotCenter()
) + " | " +
"EmotRight = " + String.valueOf(getEmotRight()
) + " | " +
"Bubble = " + String.valueOf(getBubble()
) + " | " +
"Anim = " + String.valueOf(getAnim()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>Name</b> = " + String.valueOf(getName()
) + " <br/> " +
"<b>Action</b> = " + String.valueOf(getAction()
) + " <br/> " +
"<b>Rotation</b> = " + String.valueOf(getRotation()
) + " <br/> " +
"<b>Location</b> = " + String.valueOf(getLocation()
) + " <br/> " +
"<b>Velocity</b> = " + String.valueOf(getVelocity()
) + " <br/> " +
"<b>Team</b> = " + String.valueOf(getTeam()
) + " <br/> " +
"<b>Weapon</b> = " + String.valueOf(getWeapon()
) + " <br/> " +
"<b>Crouched</b> = " + String.valueOf(isCrouched()
) + " <br/> " +
"<b>Firing</b> = " + String.valueOf(getFiring()
) + " <br/> " +
"<b>EmotLeft</b> = " + String.valueOf(getEmotLeft()
) + " <br/> " +
"<b>EmotCenter</b> = " + String.valueOf(getEmotCenter()
) + " <br/> " +
"<b>EmotRight</b> = " + String.valueOf(getEmotRight()
) + " <br/> " +
"<b>Bubble</b> = " + String.valueOf(getBubble()
) + " <br/> " +
"<b>Anim</b> = " + String.valueOf(getAnim()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=shared+classtype[@name=abstract]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=shared+classtype[@name=abstract]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/Mover.java | 262 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/MoverMessage.java | 1282 |
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"Location = " + String.valueOf(getLocation()
) + " | " +
"Visible = " + String.valueOf(isVisible()
) + " | " +
"DamageTrig = " + String.valueOf(isDamageTrig()
) + " | " +
"Type = " + String.valueOf(getType()
) + " | " +
"IsMoving = " + String.valueOf(isIsMoving()
) + " | " +
"Velocity = " + String.valueOf(getVelocity()
) + " | " +
"MoveTime = " + String.valueOf(getMoveTime()
) + " | " +
"OpenTime = " + String.valueOf(getOpenTime()
) + " | " +
"BasePos = " + String.valueOf(getBasePos()
) + " | " +
"BaseRot = " + String.valueOf(getBaseRot()
) + " | " +
"DelayTime = " + String.valueOf(getDelayTime()
) + " | " +
"State = " + String.valueOf(getState()
) + " | " +
"NavPointMarker = " + String.valueOf(getNavPointMarker()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>Location</b> = " + String.valueOf(getLocation()
) + " <br/> " +
"<b>Visible</b> = " + String.valueOf(isVisible()
) + " <br/> " +
"<b>DamageTrig</b> = " + String.valueOf(isDamageTrig()
) + " <br/> " +
"<b>Type</b> = " + String.valueOf(getType()
) + " <br/> " +
"<b>IsMoving</b> = " + String.valueOf(isIsMoving()
) + " <br/> " +
"<b>Velocity</b> = " + String.valueOf(getVelocity()
) + " <br/> " +
"<b>MoveTime</b> = " + String.valueOf(getMoveTime()
) + " <br/> " +
"<b>OpenTime</b> = " + String.valueOf(getOpenTime()
) + " <br/> " +
"<b>BasePos</b> = " + String.valueOf(getBasePos()
) + " <br/> " +
"<b>BaseRot</b> = " + String.valueOf(getBaseRot()
) + " <br/> " +
"<b>DelayTime</b> = " + String.valueOf(getDelayTime()
) + " <br/> " +
"<b>State</b> = " + String.valueOf(getState()
) + " <br/> " +
"<b>NavPointMarker</b> = " + String.valueOf(getNavPointMarker()
) + " <br/> " +
"<br/>]";
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/ItemMessage.java | 663 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/ItemStatic.java | 127 |
@Override
public boolean isDifferentFrom(IStaticWorldObject other)
{
if (other == null) //early fail
{
return true;
}
else if (other == this) //early out
{
return false;
}
else
{
ItemStatic obj = (ItemStatic) other;
if ( !(
AdvancedEquals.equalsOrNull(this.getId()
, obj.getId()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Id on object class ItemStatic");
return true;
}
if ( !(
AdvancedEquals.equalsOrNull(this.getNavPointId()
, obj.getNavPointId()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property NavPointId on object class ItemStatic");
return true;
}
if ( !(
AdvancedEquals.equalsOrNull(this.getNavPoint()
, obj.getNavPoint()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property NavPoint on object class ItemStatic");
return true;
}
if ( !(this.getAmount()
== obj.getAmount()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Amount on object class ItemStatic");
return true;
}
if ( !(
AdvancedEquals.equalsOrNull(this.getType()
, obj.getType()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Type on object class ItemStatic");
return true;
}
if ( !(
AdvancedEquals.equalsOrNull(this.getDescriptor()
, obj.getDescriptor()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Descriptor on object class ItemStatic");
return true;
}
}
return false;
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"NavPointId = " + String.valueOf(getNavPointId()
) + " | " +
"Amount = " + String.valueOf(getAmount()
) + " | " +
"Type = " + String.valueOf(getType()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>NavPointId</b> = " + String.valueOf(getNavPointId()
) + " <br/> " +
"<b>Amount</b> = " + String.valueOf(getAmount()
) + " <br/> " +
"<b>Type</b> = " + String.valueOf(getType()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=static+classtype[@name=abstract]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=static+classtype[@name=abstract]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/ItemMessage.java | 660 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/ItemStaticImpl.java | 396 |
}
@Override
public boolean isDifferentFrom(IStaticWorldObject other)
{
if (other == null) //early fail
{
return true;
}
else if (other == this) //early out
{
return false;
}
else
{
ItemStatic obj = (ItemStatic) other;
if ( !(
AdvancedEquals.equalsOrNull(this.getId()
, obj.getId()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Id on object class ItemStatic");
return true;
}
if ( !(
AdvancedEquals.equalsOrNull(this.getNavPointId()
, obj.getNavPointId()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property NavPointId on object class ItemStatic");
return true;
}
if ( !(
AdvancedEquals.equalsOrNull(this.getNavPoint()
, obj.getNavPoint()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property NavPoint on object class ItemStatic");
return true;
}
if ( !(this.getAmount()
== obj.getAmount()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Amount on object class ItemStatic");
return true;
}
if ( !(
AdvancedEquals.equalsOrNull(this.getType()
, obj.getType()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Type on object class ItemStatic");
return true;
}
if ( !(
AdvancedEquals.equalsOrNull(this.getDescriptor()
, obj.getDescriptor()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Descriptor on object class ItemStatic");
return true;
}
}
return false;
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"NavPointId = " + String.valueOf(getNavPointId()
) + " | " +
"Amount = " + String.valueOf(getAmount()
) + " | " +
"Type = " + String.valueOf(getType()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>NavPointId</b> = " + String.valueOf(getNavPointId()
) + " <br/> " +
"<b>Amount</b> = " + String.valueOf(getAmount()
) + " <br/> " +
"<b>Type</b> = " + String.valueOf(getType()
) + " <br/> " +
"<br/>]";
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/ItemStatic.java | 127 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/ItemStaticImpl.java | 400 |
@Override
public boolean isDifferentFrom(IStaticWorldObject other)
{
if (other == null) //early fail
{
return true;
}
else if (other == this) //early out
{
return false;
}
else
{
ItemStatic obj = (ItemStatic) other;
if ( !(
AdvancedEquals.equalsOrNull(this.getId()
, obj.getId()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Id on object class ItemStatic");
return true;
}
if ( !(
AdvancedEquals.equalsOrNull(this.getNavPointId()
, obj.getNavPointId()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property NavPointId on object class ItemStatic");
return true;
}
if ( !(
AdvancedEquals.equalsOrNull(this.getNavPoint()
, obj.getNavPoint()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property NavPoint on object class ItemStatic");
return true;
}
if ( !(this.getAmount()
== obj.getAmount()
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Amount on object class ItemStatic");
return true;
}
if ( !(
AdvancedEquals.equalsOrNull(this.getType()
, obj.getType()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Type on object class ItemStatic");
return true;
}
if ( !(
AdvancedEquals.equalsOrNull(this.getDescriptor()
, obj.getDescriptor()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Descriptor on object class ItemStatic");
return true;
}
}
return false;
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"NavPointId = " + String.valueOf(getNavPointId()
) + " | " +
"Amount = " + String.valueOf(getAmount()
) + " | " +
"Type = " + String.valueOf(getType()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>NavPointId</b> = " + String.valueOf(getNavPointId()
) + " <br/> " +
"<b>Amount</b> = " + String.valueOf(getAmount()
) + " <br/> " +
"<b>Type</b> = " + String.valueOf(getType()
) + " <br/> " +
"<br/>]";
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/Vehicle.java | 259 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/VehicleMessage.java | 1258 |
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"Rotation = " + String.valueOf(getRotation()
) + " | " +
"Location = " + String.valueOf(getLocation()
) + " | " +
"Velocity = " + String.valueOf(getVelocity()
) + " | " +
"Visible = " + String.valueOf(isVisible()
) + " | " +
"Team = " + String.valueOf(getTeam()
) + " | " +
"Health = " + String.valueOf(getHealth()
) + " | " +
"Armor = " + String.valueOf(getArmor()
) + " | " +
"Driver = " + String.valueOf(getDriver()
) + " | " +
"TeamLocked = " + String.valueOf(isTeamLocked()
) + " | " +
"Type = " + String.valueOf(getType()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>Rotation</b> = " + String.valueOf(getRotation()
) + " <br/> " +
"<b>Location</b> = " + String.valueOf(getLocation()
) + " <br/> " +
"<b>Velocity</b> = " + String.valueOf(getVelocity()
) + " <br/> " +
"<b>Visible</b> = " + String.valueOf(isVisible()
) + " <br/> " +
"<b>Team</b> = " + String.valueOf(getTeam()
) + " <br/> " +
"<b>Health</b> = " + String.valueOf(getHealth()
) + " <br/> " +
"<b>Armor</b> = " + String.valueOf(getArmor()
) + " <br/> " +
"<b>Driver</b> = " + String.valueOf(getDriver()
) + " <br/> " +
"<b>TeamLocked</b> = " + String.valueOf(isTeamLocked()
) + " <br/> " +
"<b>Type</b> = " + String.valueOf(getType()
) + " <br/> " +
"<br/>]";
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/translator/observer/support/ObserverListState.java | 44 |
cz/cuni/amis/pogamut/ut2004/communication/translator/server/support/ServerListState.java | 44 |
public ServerListState(Class beginMessage, Class<MESSAGE> message, Class endMessage) {
this.beginMessage = beginMessage;
this.message = message;
this.endMessage = endMessage;
}
protected List<MESSAGE> getList() {
return messages;
}
protected void newList() {
messages = new ArrayList<MESSAGE>();
}
@Override
public void init(CONTEXT context) {
messages = new ArrayList<MESSAGE>();
}
@Override
public void restart(CONTEXT context) {
messages = new ArrayList<MESSAGE>();
}
@Override
public void stateEntering(CONTEXT context, IFSMState<InfoMessage, CONTEXT> fromState, InfoMessage symbol) {
if (!symbol.getClass().equals(beginMessage)) throw new UnexpectedMessageException(TranslatorMessages.unexpectedMessage(this, symbol, beginMessage), context.getLogger(), this);
}
@Override
public void stateLeaving(CONTEXT context,
IFSMState<InfoMessage, CONTEXT> toState, InfoMessage symbol) {
if (!symbol.getClass().equals(endMessage)) throw new UnexpectedMessageException(TranslatorMessages.unexpectedMessage(this, symbol, endMessage), context.getLogger(), this);
}
@Override
protected void innerStateSymbol(CONTEXT context, InfoMessage symbol) {
if (!symbol.getClass().equals(message)) {
if (!message.isAssignableFrom(symbol.getClass())) {
throw new UnexpectedMessageException(TranslatorMessages.unexpectedMessage(this, symbol, message), context.getLogger(), this);
}
}
messages.add(message.cast(symbol));
}
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/AutoTraceRayLocal.java | 176 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/AutoTraceRayMessage.java | 1082 |
(this.getStatic(), SimTime);
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"From = " + String.valueOf(getFrom()
) + " | " +
"To = " + String.valueOf(getTo()
) + " | " +
"FastTrace = " + String.valueOf(isFastTrace()
) + " | " +
"FloorCorrection = " + String.valueOf(isFloorCorrection()
) + " | " +
"Result = " + String.valueOf(isResult()
) + " | " +
"HitNormal = " + String.valueOf(getHitNormal()
) + " | " +
"HitLocation = " + String.valueOf(getHitLocation()
) + " | " +
"TraceActors = " + String.valueOf(isTraceActors()
) + " | " +
"HitId = " + String.valueOf(getHitId()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>From</b> = " + String.valueOf(getFrom()
) + " <br/> " +
"<b>To</b> = " + String.valueOf(getTo()
) + " <br/> " +
"<b>FastTrace</b> = " + String.valueOf(isFastTrace()
) + " <br/> " +
"<b>FloorCorrection</b> = " + String.valueOf(isFloorCorrection()
) + " <br/> " +
"<b>Result</b> = " + String.valueOf(isResult()
) + " <br/> " +
"<b>HitNormal</b> = " + String.valueOf(getHitNormal()
) + " <br/> " +
"<b>HitLocation</b> = " + String.valueOf(getHitLocation()
) + " <br/> " +
"<b>TraceActors</b> = " + String.valueOf(isTraceActors()
) + " <br/> " +
"<b>HitId</b> = " + String.valueOf(getHitId()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=base+classtype[@name=message]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=base+classtype[@name=message]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/AutoTraceRay.java | 206 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/AutoTraceRayLocalImpl.java | 645 |
return data.getId();
}
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"From = " + String.valueOf(getFrom()
) + " | " +
"To = " + String.valueOf(getTo()
) + " | " +
"FastTrace = " + String.valueOf(isFastTrace()
) + " | " +
"FloorCorrection = " + String.valueOf(isFloorCorrection()
) + " | " +
"Result = " + String.valueOf(isResult()
) + " | " +
"HitNormal = " + String.valueOf(getHitNormal()
) + " | " +
"HitLocation = " + String.valueOf(getHitLocation()
) + " | " +
"TraceActors = " + String.valueOf(isTraceActors()
) + " | " +
"HitId = " + String.valueOf(getHitId()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>From</b> = " + String.valueOf(getFrom()
) + " <br/> " +
"<b>To</b> = " + String.valueOf(getTo()
) + " <br/> " +
"<b>FastTrace</b> = " + String.valueOf(isFastTrace()
) + " <br/> " +
"<b>FloorCorrection</b> = " + String.valueOf(isFloorCorrection()
) + " <br/> " +
"<b>Result</b> = " + String.valueOf(isResult()
) + " <br/> " +
"<b>HitNormal</b> = " + String.valueOf(getHitNormal()
) + " <br/> " +
"<b>HitLocation</b> = " + String.valueOf(getHitLocation()
) + " <br/> " +
"<b>TraceActors</b> = " + String.valueOf(isTraceActors()
) + " <br/> " +
"<b>HitId</b> = " + String.valueOf(getHitId()
) + " <br/> " +
"<br/>]";
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/AutoTraceRayLocal.java | 177 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/AutoTraceRayMessage.java | 689 |
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"From = " + String.valueOf(getFrom()
) + " | " +
"To = " + String.valueOf(getTo()
) + " | " +
"FastTrace = " + String.valueOf(isFastTrace()
) + " | " +
"FloorCorrection = " + String.valueOf(isFloorCorrection()
) + " | " +
"Result = " + String.valueOf(isResult()
) + " | " +
"HitNormal = " + String.valueOf(getHitNormal()
) + " | " +
"HitLocation = " + String.valueOf(getHitLocation()
) + " | " +
"TraceActors = " + String.valueOf(isTraceActors()
) + " | " +
"HitId = " + String.valueOf(getHitId()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>From</b> = " + String.valueOf(getFrom()
) + " <br/> " +
"<b>To</b> = " + String.valueOf(getTo()
) + " <br/> " +
"<b>FastTrace</b> = " + String.valueOf(isFastTrace()
) + " <br/> " +
"<b>FloorCorrection</b> = " + String.valueOf(isFloorCorrection()
) + " <br/> " +
"<b>Result</b> = " + String.valueOf(isResult()
) + " <br/> " +
"<b>HitNormal</b> = " + String.valueOf(getHitNormal()
) + " <br/> " +
"<b>HitLocation</b> = " + String.valueOf(getHitLocation()
) + " <br/> " +
"<b>TraceActors</b> = " + String.valueOf(isTraceActors()
) + " <br/> " +
"<b>HitId</b> = " + String.valueOf(getHitId()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=local+classtype[@name=message]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=local+classtype[@name=message]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/IncomingProjectile.java | 249 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/IncomingProjectileMessage.java | 1179 |
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"ImpactTime = " + String.valueOf(getImpactTime()
) + " | " +
"Direction = " + String.valueOf(getDirection()
) + " | " +
"Location = " + String.valueOf(getLocation()
) + " | " +
"Velocity = " + String.valueOf(getVelocity()
) + " | " +
"Speed = " + String.valueOf(getSpeed()
) + " | " +
"Origin = " + String.valueOf(getOrigin()
) + " | " +
"DamageRadius = " + String.valueOf(getDamageRadius()
) + " | " +
"Type = " + String.valueOf(getType()
) + " | " +
"Visible = " + String.valueOf(isVisible()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>ImpactTime</b> = " + String.valueOf(getImpactTime()
) + " <br/> " +
"<b>Direction</b> = " + String.valueOf(getDirection()
) + " <br/> " +
"<b>Location</b> = " + String.valueOf(getLocation()
) + " <br/> " +
"<b>Velocity</b> = " + String.valueOf(getVelocity()
) + " <br/> " +
"<b>Speed</b> = " + String.valueOf(getSpeed()
) + " <br/> " +
"<b>Origin</b> = " + String.valueOf(getOrigin()
) + " <br/> " +
"<b>DamageRadius</b> = " + String.valueOf(getDamageRadius()
) + " <br/> " +
"<b>Type</b> = " + String.valueOf(getType()
) + " <br/> " +
"<b>Visible</b> = " + String.valueOf(isVisible()
) + " <br/> " +
"<br/>]";
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/AutoTraceRay.java | 209 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/AutoTraceRayMessage.java | 1083 |
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"From = " + String.valueOf(getFrom()
) + " | " +
"To = " + String.valueOf(getTo()
) + " | " +
"FastTrace = " + String.valueOf(isFastTrace()
) + " | " +
"FloorCorrection = " + String.valueOf(isFloorCorrection()
) + " | " +
"Result = " + String.valueOf(isResult()
) + " | " +
"HitNormal = " + String.valueOf(getHitNormal()
) + " | " +
"HitLocation = " + String.valueOf(getHitLocation()
) + " | " +
"TraceActors = " + String.valueOf(isTraceActors()
) + " | " +
"HitId = " + String.valueOf(getHitId()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>From</b> = " + String.valueOf(getFrom()
) + " <br/> " +
"<b>To</b> = " + String.valueOf(getTo()
) + " <br/> " +
"<b>FastTrace</b> = " + String.valueOf(isFastTrace()
) + " <br/> " +
"<b>FloorCorrection</b> = " + String.valueOf(isFloorCorrection()
) + " <br/> " +
"<b>Result</b> = " + String.valueOf(isResult()
) + " <br/> " +
"<b>HitNormal</b> = " + String.valueOf(getHitNormal()
) + " <br/> " +
"<b>HitLocation</b> = " + String.valueOf(getHitLocation()
) + " <br/> " +
"<b>TraceActors</b> = " + String.valueOf(isTraceActors()
) + " <br/> " +
"<b>HitId</b> = " + String.valueOf(getHitId()
) + " <br/> " +
"<br/>]";
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/translator/bot/state/NavPointListState.java | 44 |
cz/cuni/amis/pogamut/ut2004/communication/translator/server/state/NavPointListState.java | 47 |
public class NavPointListState extends AbstractObserverFSMState<InfoMessage, TranslatorContext> {
private boolean begun = false;
private Map<UnrealId, NavPoint> navPoints = new HashMap<UnrealId, NavPoint>();
private Map<UnrealId, List<NavPointNeighbourLink>> neighbours = new HashMap<UnrealId, List<NavPointNeighbourLink>>();
private NavPoint currentNavPoint = null;
public NavPointListState() {
}
@Override
public void stateEntering(TranslatorContext context, IFSMState<InfoMessage, TranslatorContext> fromState, InfoMessage symbol) {
if (!begun) {
if (!symbol.getClass().equals(NavPointListStart.class)) throw new UnexpectedMessageException(TranslatorMessages.unexpectedMessage(this, symbol, NavPointListStart.class), context.getLogger(), this);
begun = true;
return;
}
if (!symbol.getClass().equals(NavPointNeighbourLinkEnd.class)) throw new UnexpectedMessageException(TranslatorMessages.unexpectedMessage(this, symbol, NavPointNeighbourLinkEnd.class), context.getLogger(), this);
navPoints.put(currentNavPoint.getId(), currentNavPoint);
neighbours.put(currentNavPoint.getId(), context.getNeighbours());
}
@Override
public void stateLeaving(TranslatorContext context,
IFSMState<InfoMessage, TranslatorContext> toState, InfoMessage symbol) {
if (symbol.getClass().equals(NavPointNeighbourLinkStart.class)) return;
if (!symbol.getClass().equals(NavPointListEnd.class)) throw new UnexpectedMessageException(TranslatorMessages.unexpectedMessage(this, symbol, NavPointListEnd.class), context.getLogger(), this); |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/agent/navigation/UT2004Navigation.java | 573 |
cz/cuni/amis/pogamut/ut2004/agent/navigation/UT2004Navigation.java | 749 |
}
// PATH EXECUTOR IS NOT RUNNING
// => we have not started to run along path yet
// ARE WE ON NAV-GRAPH?
if (!getBackToNavGraph.isOnNavGraph()) {
// NO!
// => get back to navigation graph
if (log != null && log.isLoggable(Level.FINE)) log.fine("Getting back to navigation graph");
if (getBackToNavGraph.isExecuting()) {
// nothing to see go along
return;
}
if (usingGetBackToNavGraph) {
// GetBackToNavGraph was already called && stopped && we're still not on nav graph
// => stuck
if (log != null && log.isLoggable(Level.WARNING)) log.warning("UT2004Navigation:stuck(). GetBackToNavGraph was already called && stopped && we're still not on nav graph.");
stuck();
return;
}
getBackToNavGraph.backToNavGraph();
// => mark that we're using GetBackToNavGraph
usingGetBackToNavGraph = true;
return;
} else {
usingGetBackToNavGraph = false;
}
// YES, WE'RE ON NAV-GRAPH!
// ... getBackToNavGraph will auto-terminate itself when we manage to get back to graph
if (currentPathFuture == null) {
fromNavPoint = getNearestNavPoint(bot.getLocation());
toNavPoint = getNearestNavPoint(currentTarget);
if (log != null && log.isLoggable(Level.FINE)) log.fine("Computing path from " + fromNavPoint.getId().getStringId() + " to " + toNavPoint.getId().getStringId());
currentPathFuture = pathPlanner.computePath(fromNavPoint, toNavPoint);
}
switch(currentPathFuture.getStatus()) {
case FUTURE_IS_READY:
// ALL OK!
break;
case FUTURE_IS_BEING_COMPUTED:
if (log != null && log.isLoggable(Level.FINE)) log.fine("Waiting for the path to be computed...");
return;
case CANCELED:
if (log != null && log.isLoggable(Level.WARNING)) log.warning("Path computation has been canceled.");
noPath();
return;
case COMPUTATION_EXCEPTION:
if (log != null && log.isLoggable(Level.WARNING)) log.warning("Path computation has failed with an exception.");
noPath();
return;
}
// PATH IS READY!
// => tinker the path
if (!processPathFuture(currentPathFuture, currentTarget)) {
noPath();
return;
}
// => let's start running
pathExecutor.followPath(currentPathFuture);
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/HearNoise.java | 114 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/HearPickup.java | 107 |
public HearPickup(HearPickup original) {
this.Source = original.getSource()
;
this.Type = original.getType()
;
this.Rotation = original.getRotation()
;
this.Distance = original.getDistance()
;
this.SimTime = original.getSimTime();
}
protected long SimTime;
/**
* Simulation time in MILLI SECONDS !!!
*/
@Override
public long getSimTime() {
return SimTime;
}
/**
* Used by Yylex to slip correct time of the object or programmatically.
*/
protected void setSimTime(long SimTime) {
this.SimTime = SimTime;
}
/**
* Unique Id of an object picked up.
*/
protected
UnrealId Source =
null;
/**
* Unique Id of an object picked up.
*/
public UnrealId getSource()
{
return Source;
}
/**
* Class of the picked up actor.
*/
protected
String Type =
null;
/**
* Class of the picked up actor.
*/
public String getType()
{
return Type;
}
/**
*
How should bot rotate if it would like to be in the
direction of the pickuped actor
*/
protected
Rotation Rotation =
null;
/**
*
How should bot rotate if it would like to be in the
direction of the pickuped actor
*/
public Rotation getRotation()
{
return Rotation;
}
/**
*
How far the noise source is.
*/
protected
double Distance =
0;
/**
*
How far the noise source is.
*/
public double getDistance()
{
return Distance;
}
public String toString() {
return
super.toString() + "[" +
"Source = " + String.valueOf(getSource()
) + " | " +
"Type = " + String.valueOf(getType()
) + " | " +
"Rotation = " + String.valueOf(getRotation()
) + " | " +
"Distance = " + String.valueOf(getDistance()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Source</b> = " + String.valueOf(getSource()
) + " <br/> " +
"<b>Type</b> = " + String.valueOf(getType()
) + " <br/> " +
"<b>Rotation</b> = " + String.valueOf(getRotation()
) + " <br/> " +
"<b>Distance</b> = " + String.valueOf(getDistance()
) + " <br/> " +
"<br/>]";
}
public String toJsonLiteral() {
return "hearpickup( " |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/GlobalChat.java | 105 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/TeamChat.java | 105 |
public TeamChat(TeamChat original) {
this.Id = original.getId()
;
this.Name = original.getName()
;
this.ControlServer = original.isControlServer()
;
this.Text = original.getText()
;
this.SimTime = original.getSimTime();
}
protected long SimTime;
/**
* Simulation time in MILLI SECONDS !!!
*/
@Override
public long getSimTime() {
return SimTime;
}
/**
* Used by Yylex to slip correct time of the object or programmatically.
*/
protected void setSimTime(long SimTime) {
this.SimTime = SimTime;
}
/**
*
Unique UnrealId of the sender.
*/
protected
UnrealId Id =
null;
/**
*
Unique UnrealId of the sender.
*/
public UnrealId getId()
{
return Id;
}
/**
*
Human readable name of the sender.
*/
protected
String Name =
null;
/**
*
Human readable name of the sender.
*/
public String getName()
{
return Name;
}
/**
*
True if this message was sent by control server - in that case the id will be id of control server (that has no physical appearance in the game).
*/
protected
Boolean ControlServer =
null;
/**
*
True if this message was sent by control server - in that case the id will be id of control server (that has no physical appearance in the game).
*/
public Boolean isControlServer()
{
return ControlServer;
}
/**
*
A human readable message sent by a team mate in the game on
the private team channel.
*/
protected
String Text =
null;
/**
*
A human readable message sent by a team mate in the game on
the private team channel.
*/
public String getText()
{
return Text;
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"Name = " + String.valueOf(getName()
) + " | " +
"ControlServer = " + String.valueOf(isControlServer()
) + " | " +
"Text = " + String.valueOf(getText()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>Name</b> = " + String.valueOf(getName()
) + " <br/> " +
"<b>ControlServer</b> = " + String.valueOf(isControlServer()
) + " <br/> " +
"<b>Text</b> = " + String.valueOf(getText()
) + " <br/> " +
"<br/>]";
}
public String toJsonLiteral() {
return "teamchat( " |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/SelfLocalImpl.java | 307 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/SelfLocalImpl.java | 404 |
public SelfLocalImpl(SelfLocalImpl original) {
this.Id = original.getId()
;
this.BotId = original.getBotId()
;
this.Name = original.getName()
;
this.Vehicle = original.isVehicle()
;
this.Location = original.getLocation()
;
this.Velocity = original.getVelocity()
;
this.Rotation = original.getRotation()
;
this.Team = original.getTeam()
;
this.Weapon = original.getWeapon()
;
this.Shooting = original.isShooting()
;
this.Health = original.getHealth()
;
this.PrimaryAmmo = original.getPrimaryAmmo()
;
this.SecondaryAmmo = original.getSecondaryAmmo()
;
this.Adrenaline = original.getAdrenaline()
;
this.Armor = original.getArmor()
;
this.SmallArmor = original.getSmallArmor()
;
this.AltFiring = original.isAltFiring()
;
this.Crouched = original.isCrouched()
;
this.Walking = original.isWalking()
;
this.FloorLocation = original.getFloorLocation()
;
this.FloorNormal = original.getFloorNormal()
;
this.Combo = original.getCombo()
;
this.UDamageTime = original.getUDamageTime()
;
this.Action = original.getAction()
;
this.EmotLeft = original.getEmotLeft()
;
this.EmotCenter = original.getEmotCenter()
;
this.EmotRight = original.getEmotRight()
;
this.Bubble = original.getBubble()
;
this.Anim = original.getAnim()
;
this.SimTime = original.getSimTime();
}
/**
* Cloning constructor from the message part.
*
* @param original
*/
public SelfLocalImpl(SelfLocal original) { |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/VehicleMessage.java | 1065 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/VehicleSharedImpl.java | 409 |
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"Rotation = " + String.valueOf(getRotation()
) + " | " +
"Location = " + String.valueOf(getLocation()
) + " | " +
"Velocity = " + String.valueOf(getVelocity()
) + " | " +
"Team = " + String.valueOf(getTeam()
) + " | " +
"Health = " + String.valueOf(getHealth()
) + " | " +
"Armor = " + String.valueOf(getArmor()
) + " | " +
"Driver = " + String.valueOf(getDriver()
) + " | " +
"TeamLocked = " + String.valueOf(isTeamLocked()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>Rotation</b> = " + String.valueOf(getRotation()
) + " <br/> " +
"<b>Location</b> = " + String.valueOf(getLocation()
) + " <br/> " +
"<b>Velocity</b> = " + String.valueOf(getVelocity()
) + " <br/> " +
"<b>Team</b> = " + String.valueOf(getTeam()
) + " <br/> " +
"<b>Health</b> = " + String.valueOf(getHealth()
) + " <br/> " +
"<b>Armor</b> = " + String.valueOf(getArmor()
) + " <br/> " +
"<b>Driver</b> = " + String.valueOf(getDriver()
) + " <br/> " +
"<b>TeamLocked</b> = " + String.valueOf(isTeamLocked()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=shared+classtype[@name=impl]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=shared+classtype[@name=impl]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/VehicleMessage.java | 1068 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/VehicleShared.java | 192 |
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"Rotation = " + String.valueOf(getRotation()
) + " | " +
"Location = " + String.valueOf(getLocation()
) + " | " +
"Velocity = " + String.valueOf(getVelocity()
) + " | " +
"Team = " + String.valueOf(getTeam()
) + " | " +
"Health = " + String.valueOf(getHealth()
) + " | " +
"Armor = " + String.valueOf(getArmor()
) + " | " +
"Driver = " + String.valueOf(getDriver()
) + " | " +
"TeamLocked = " + String.valueOf(isTeamLocked()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>Rotation</b> = " + String.valueOf(getRotation()
) + " <br/> " +
"<b>Location</b> = " + String.valueOf(getLocation()
) + " <br/> " +
"<b>Velocity</b> = " + String.valueOf(getVelocity()
) + " <br/> " +
"<b>Team</b> = " + String.valueOf(getTeam()
) + " <br/> " +
"<b>Health</b> = " + String.valueOf(getHealth()
) + " <br/> " +
"<b>Armor</b> = " + String.valueOf(getArmor()
) + " <br/> " +
"<b>Driver</b> = " + String.valueOf(getDriver()
) + " <br/> " +
"<b>TeamLocked</b> = " + String.valueOf(isTeamLocked()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=shared+classtype[@name=abstract]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=shared+classtype[@name=abstract]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/SelfLocalImpl.java | 307 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/SelfMessage.java | 309 |
public SelfMessage(SelfMessage original) {
this.Id = original.getId()
;
this.BotId = original.getBotId()
;
this.Name = original.getName()
;
this.Vehicle = original.isVehicle()
;
this.Location = original.getLocation()
;
this.Velocity = original.getVelocity()
;
this.Rotation = original.getRotation()
;
this.Team = original.getTeam()
;
this.Weapon = original.getWeapon()
;
this.Shooting = original.isShooting()
;
this.Health = original.getHealth()
;
this.PrimaryAmmo = original.getPrimaryAmmo()
;
this.SecondaryAmmo = original.getSecondaryAmmo()
;
this.Adrenaline = original.getAdrenaline()
;
this.Armor = original.getArmor()
;
this.SmallArmor = original.getSmallArmor()
;
this.AltFiring = original.isAltFiring()
;
this.Crouched = original.isCrouched()
;
this.Walking = original.isWalking()
;
this.FloorLocation = original.getFloorLocation()
;
this.FloorNormal = original.getFloorNormal()
;
this.Combo = original.getCombo()
;
this.UDamageTime = original.getUDamageTime()
;
this.Action = original.getAction()
;
this.EmotLeft = original.getEmotLeft()
;
this.EmotCenter = original.getEmotCenter()
;
this.EmotRight = original.getEmotRight()
;
this.Bubble = original.getBubble()
;
this.Anim = original.getAnim()
;
this.TeamId = original.getTeamId(); |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/SelfLocalImpl.java | 307 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/SelfLocalImpl.java | 501 |
public SelfLocalImpl(SelfLocal original) {
this.Id = original.getId()
;
this.BotId = original.getBotId()
;
this.Name = original.getName()
;
this.Vehicle = original.isVehicle()
;
this.Location = original.getLocation()
;
this.Velocity = original.getVelocity()
;
this.Rotation = original.getRotation()
;
this.Team = original.getTeam()
;
this.Weapon = original.getWeapon()
;
this.Shooting = original.isShooting()
;
this.Health = original.getHealth()
;
this.PrimaryAmmo = original.getPrimaryAmmo()
;
this.SecondaryAmmo = original.getSecondaryAmmo()
;
this.Adrenaline = original.getAdrenaline()
;
this.Armor = original.getArmor()
;
this.SmallArmor = original.getSmallArmor()
;
this.AltFiring = original.isAltFiring()
;
this.Crouched = original.isCrouched()
;
this.Walking = original.isWalking()
;
this.FloorLocation = original.getFloorLocation()
;
this.FloorNormal = original.getFloorNormal()
;
this.Combo = original.getCombo()
;
this.UDamageTime = original.getUDamageTime()
;
this.Action = original.getAction()
;
this.EmotLeft = original.getEmotLeft()
;
this.EmotCenter = original.getEmotCenter()
;
this.EmotRight = original.getEmotRight()
;
this.Bubble = original.getBubble()
;
this.Anim = original.getAnim() |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/EntityMessage.java | 504 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/EntityStaticImpl.java | 264 |
}
@Override
public boolean isDifferentFrom(IStaticWorldObject other)
{
if (other == null) //early fail
{
return true;
}
else if (other == this) //early out
{
return false;
}
else
{
EntityStatic obj = (EntityStatic) other;
if ( !(
AdvancedEquals.equalsOrNull(this.getId()
, obj.getId()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Id on object class EntityStatic");
return true;
}
if ( !(
AdvancedEquals.equalsOrNull(this.getType()
, obj.getType()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Type on object class EntityStatic");
return true;
}
if ( !(
AdvancedEquals.equalsOrNull(this.getEntityClass()
, obj.getEntityClass()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property EntityClass on object class EntityStatic");
return true;
}
}
return false;
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"Type = " + String.valueOf(getType()
) + " | " +
"EntityClass = " + String.valueOf(getEntityClass()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>Type</b> = " + String.valueOf(getType()
) + " <br/> " +
"<b>EntityClass</b> = " + String.valueOf(getEntityClass()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=static+classtype[@name=impl]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=static+classtype[@name=impl]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/EntityMessage.java | 507 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/EntityStatic.java | 95 |
@Override
public boolean isDifferentFrom(IStaticWorldObject other)
{
if (other == null) //early fail
{
return true;
}
else if (other == this) //early out
{
return false;
}
else
{
EntityStatic obj = (EntityStatic) other;
if ( !(
AdvancedEquals.equalsOrNull(this.getId()
, obj.getId()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Id on object class EntityStatic");
return true;
}
if ( !(
AdvancedEquals.equalsOrNull(this.getType()
, obj.getType()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Type on object class EntityStatic");
return true;
}
if ( !(
AdvancedEquals.equalsOrNull(this.getEntityClass()
, obj.getEntityClass()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property EntityClass on object class EntityStatic");
return true;
}
}
return false;
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"Type = " + String.valueOf(getType()
) + " | " +
"EntityClass = " + String.valueOf(getEntityClass()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>Type</b> = " + String.valueOf(getType()
) + " <br/> " +
"<b>EntityClass</b> = " + String.valueOf(getEntityClass()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=static+classtype[@name=abstract]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=static+classtype[@name=abstract]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/translator/observer/state/ItemCategoryState.java | 29 |
cz/cuni/amis/pogamut/ut2004/communication/translator/server/state/ItemCategoryState.java | 29 |
public class ItemCategoryState extends AbstractServerFSMState<InfoMessage, TranslatorContext>{
@Override
public void init(TranslatorContext context) {
}
@Override
public void restart(TranslatorContext context) {
}
@Override
public void stateEntering(TranslatorContext context,
IFSMState<InfoMessage, TranslatorContext> fromState,
InfoMessage symbol) {
if (!(symbol instanceof ItemCategoryStart)) throw new UnexpectedMessageException(TranslatorMessages.unexpectedMessage(this, symbol, ItemCategoryStart.class), context.getLogger(), this);
}
@Override
public void stateLeaving(TranslatorContext context,
IFSMState<InfoMessage, TranslatorContext> toState, InfoMessage symbol) {
if (!(symbol instanceof ItemCategoryEnd)) throw new UnexpectedMessageException(TranslatorMessages.unexpectedMessage(this, symbol, ItemCategoryEnd.class), context.getLogger(), this);
}
@Override
protected void innerStateSymbol(TranslatorContext context, InfoMessage symbol) {
if (!(symbol instanceof ItemCategory)) throw new UnexpectedMessageException(TranslatorMessages.unexpectedMessage(this, symbol, ItemCategory.class), context.getLogger(), this);
long simTime = ((ItemCategory)symbol).getSimTime();
ItemDescriptor desc = context.getItemTranslator().createDescriptor((ItemCategory)symbol);
if (desc == null) {
context.getLogger().warning("ItemCategory was not translated into ItemDescriptor: " + symbol);
return;
}
context.getEventQueue().pushEvent(new ItemDescriptorObtained(desc, simTime));
}
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/NavPointStaticImpl.java | 281 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/NavPointStaticImpl.java | 369 |
public NavPointStaticImpl(NavPointStaticImpl original) {
this.Id = original.getId()
;
this.Item = original.getItem()
;
this.ItemClass = original.getItemClass()
;
this.Mover = original.getMover()
;
this.LiftOffset = original.getLiftOffset()
;
this.LiftJumpExit = original.isLiftJumpExit()
;
this.NoDoubleJump = original.isNoDoubleJump()
;
this.InvSpot = original.isInvSpot()
;
this.PlayerStart = original.isPlayerStart()
;
this.TeamNumber = original.getTeamNumber()
;
this.DomPoint = original.isDomPoint()
;
this.Door = original.isDoor()
;
this.LiftCenter = original.isLiftCenter()
;
this.LiftExit = original.isLiftExit()
;
this.AIMarker = original.isAIMarker()
;
this.JumpSpot = original.isJumpSpot()
;
this.JumpPad = original.isJumpPad()
;
this.JumpDest = original.isJumpDest()
;
this.Teleporter = original.isTeleporter()
;
this.Rotation = original.getRotation()
;
this.RoamingSpot = original.isRoamingSpot()
;
this.SnipingSpot = original.isSnipingSpot()
;
this.ItemInstance = original.getItemInstance()
;
this.OutgoingEdges = original.getOutgoingEdges()
;
this.IncomingEdges = original.getIncomingEdges()
;
this.PreferedWeapon = original.getPreferedWeapon()
;
this.SimTime = original.getSimTime();
}
/**
* Cloning constructor from the message part.
*
* @param original
*/
public NavPointStaticImpl(NavPointStatic original) { |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/IncomingProjectileMessage.java | 987 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/IncomingProjectileSharedImpl.java | 385 |
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"Direction = " + String.valueOf(getDirection()
) + " | " +
"Location = " + String.valueOf(getLocation()
) + " | " +
"Velocity = " + String.valueOf(getVelocity()
) + " | " +
"Speed = " + String.valueOf(getSpeed()
) + " | " +
"Origin = " + String.valueOf(getOrigin()
) + " | " +
"DamageRadius = " + String.valueOf(getDamageRadius()
) + " | " +
"Type = " + String.valueOf(getType()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>Direction</b> = " + String.valueOf(getDirection()
) + " <br/> " +
"<b>Location</b> = " + String.valueOf(getLocation()
) + " <br/> " +
"<b>Velocity</b> = " + String.valueOf(getVelocity()
) + " <br/> " +
"<b>Speed</b> = " + String.valueOf(getSpeed()
) + " <br/> " +
"<b>Origin</b> = " + String.valueOf(getOrigin()
) + " <br/> " +
"<b>DamageRadius</b> = " + String.valueOf(getDamageRadius()
) + " <br/> " +
"<b>Type</b> = " + String.valueOf(getType()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=shared+classtype[@name=impl]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=shared+classtype[@name=impl]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/IncomingProjectileMessage.java | 990 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/IncomingProjectileShared.java | 179 |
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"Direction = " + String.valueOf(getDirection()
) + " | " +
"Location = " + String.valueOf(getLocation()
) + " | " +
"Velocity = " + String.valueOf(getVelocity()
) + " | " +
"Speed = " + String.valueOf(getSpeed()
) + " | " +
"Origin = " + String.valueOf(getOrigin()
) + " | " +
"DamageRadius = " + String.valueOf(getDamageRadius()
) + " | " +
"Type = " + String.valueOf(getType()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>Direction</b> = " + String.valueOf(getDirection()
) + " <br/> " +
"<b>Location</b> = " + String.valueOf(getLocation()
) + " <br/> " +
"<b>Velocity</b> = " + String.valueOf(getVelocity()
) + " <br/> " +
"<b>Speed</b> = " + String.valueOf(getSpeed()
) + " <br/> " +
"<b>Origin</b> = " + String.valueOf(getOrigin()
) + " <br/> " +
"<b>DamageRadius</b> = " + String.valueOf(getDamageRadius()
) + " <br/> " +
"<b>Type</b> = " + String.valueOf(getType()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=shared+classtype[@name=abstract]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=shared+classtype[@name=abstract]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/NavPointStaticImpl.java | 281 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/NavPointStaticImpl.java | 457 |
public NavPointStaticImpl(NavPointStatic original) {
this.Id = original.getId()
;
this.Item = original.getItem()
;
this.ItemClass = original.getItemClass()
;
this.Mover = original.getMover()
;
this.LiftOffset = original.getLiftOffset()
;
this.LiftJumpExit = original.isLiftJumpExit()
;
this.NoDoubleJump = original.isNoDoubleJump()
;
this.InvSpot = original.isInvSpot()
;
this.PlayerStart = original.isPlayerStart()
;
this.TeamNumber = original.getTeamNumber()
;
this.DomPoint = original.isDomPoint()
;
this.Door = original.isDoor()
;
this.LiftCenter = original.isLiftCenter()
;
this.LiftExit = original.isLiftExit()
;
this.AIMarker = original.isAIMarker()
;
this.JumpSpot = original.isJumpSpot()
;
this.JumpPad = original.isJumpPad()
;
this.JumpDest = original.isJumpDest()
;
this.Teleporter = original.isTeleporter()
;
this.Rotation = original.getRotation()
;
this.RoamingSpot = original.isRoamingSpot()
;
this.SnipingSpot = original.isSnipingSpot()
;
this.ItemInstance = original.getItemInstance()
;
this.OutgoingEdges = original.getOutgoingEdges()
;
this.IncomingEdges = original.getIncomingEdges()
;
this.PreferedWeapon = original.getPreferedWeapon() |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/SelfLocalImpl.java | 238 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/SelfMessage.java | 240 |
public SelfMessage(
UnrealId Id, UnrealId BotId, String Name, boolean Vehicle, Location Location, Velocity Velocity, Rotation Rotation, int Team, String Weapon, boolean Shooting, int Health, int PrimaryAmmo, int SecondaryAmmo, int Adrenaline, int Armor, int SmallArmor, boolean AltFiring, boolean Crouched, boolean Walking, Location FloorLocation, Location FloorNormal, String Combo, double UDamageTime, String Action, String EmotLeft, String EmotCenter, String EmotRight, String Bubble, String Anim
) {
this.Id = Id;
this.BotId = BotId;
this.Name = Name;
this.Vehicle = Vehicle;
this.Location = Location;
this.Velocity = Velocity;
this.Rotation = Rotation;
this.Team = Team;
this.Weapon = Weapon;
this.Shooting = Shooting;
this.Health = Health;
this.PrimaryAmmo = PrimaryAmmo;
this.SecondaryAmmo = SecondaryAmmo;
this.Adrenaline = Adrenaline;
this.Armor = Armor;
this.SmallArmor = SmallArmor;
this.AltFiring = AltFiring;
this.Crouched = Crouched;
this.Walking = Walking;
this.FloorLocation = FloorLocation;
this.FloorNormal = FloorNormal;
this.Combo = Combo;
this.UDamageTime = UDamageTime;
this.Action = Action;
this.EmotLeft = EmotLeft;
this.EmotCenter = EmotCenter;
this.EmotRight = EmotRight;
this.Bubble = Bubble;
this.Anim = Anim;
}
/**
* Cloning constructor from the full message.
*
* @param original
*/
public SelfMessage(SelfMessage original) { |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/MyInventoryMessage.java | 531 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/MyInventoryStaticImpl.java | 274 |
}
@Override
public boolean isDifferentFrom(IStaticWorldObject other)
{
if (other == null) //early fail
{
return true;
}
else if (other == this) //early out
{
return false;
}
else
{
MyInventoryStatic obj = (MyInventoryStatic) other;
if ( !(
AdvancedEquals.equalsOrNull(this.getId()
, obj.getId()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Id on object class MyInventoryStatic");
return true;
}
if ( !(
AdvancedEquals.equalsOrNull(this.getType()
, obj.getType()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Type on object class MyInventoryStatic");
return true;
}
if ( !(
AdvancedEquals.equalsOrNull(this.getDescriptor()
, obj.getDescriptor()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Descriptor on object class MyInventoryStatic");
return true;
}
}
return false;
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"Type = " + String.valueOf(getType()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>Type</b> = " + String.valueOf(getType()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=static+classtype[@name=impl]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=static+classtype[@name=impl]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/MyInventoryMessage.java | 534 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/MyInventoryStatic.java | 99 |
@Override
public boolean isDifferentFrom(IStaticWorldObject other)
{
if (other == null) //early fail
{
return true;
}
else if (other == this) //early out
{
return false;
}
else
{
MyInventoryStatic obj = (MyInventoryStatic) other;
if ( !(
AdvancedEquals.equalsOrNull(this.getId()
, obj.getId()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Id on object class MyInventoryStatic");
return true;
}
if ( !(
AdvancedEquals.equalsOrNull(this.getType()
, obj.getType()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Type on object class MyInventoryStatic");
return true;
}
if ( !(
AdvancedEquals.equalsOrNull(this.getDescriptor()
, obj.getDescriptor()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Descriptor on object class MyInventoryStatic");
return true;
}
}
return false;
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"Type = " + String.valueOf(getType()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>Type</b> = " + String.valueOf(getType()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=static+classtype[@name=abstract]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=static+classtype[@name=abstract]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/EnteredVehicle.java | 96 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/LockedVehicle.java | 94 |
public LockedVehicle(LockedVehicle original) {
this.Id = original.getId()
;
this.Type = original.getType()
;
this.Location = original.getLocation()
;
this.SimTime = original.getSimTime();
}
protected long SimTime;
/**
* Simulation time in MILLI SECONDS !!!
*/
@Override
public long getSimTime() {
return SimTime;
}
/**
* Used by Yylex to slip correct time of the object or programmatically.
*/
protected void setSimTime(long SimTime) {
this.SimTime = SimTime;
}
/**
* Id of the vehicle, which we cannot enter, because it is locked.
*/
protected
UnrealId Id =
null;
/**
* Id of the vehicle, which we cannot enter, because it is locked.
*/
public UnrealId getId()
{
return Id;
}
/**
* Type of the vehicle we wanted to enter. What kind of turret or car.
*/
protected
String Type =
null;
/**
* Type of the vehicle we wanted to enter. What kind of turret or car.
*/
public String getType()
{
return Type;
}
/**
* Location of the vehicle.
*/
protected
Location Location =
null;
/**
* Location of the vehicle.
*/
public Location getLocation()
{
return Location;
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"Type = " + String.valueOf(getType()
) + " | " +
"Location = " + String.valueOf(getLocation()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>Type</b> = " + String.valueOf(getType()
) + " <br/> " +
"<b>Location</b> = " + String.valueOf(getLocation()
) + " <br/> " +
"<br/>]";
}
public String toJsonLiteral() {
return "lockedvehicle( " |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/Item.java | 244 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/ItemMessage.java | 1029 |
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"NavPointId = " + String.valueOf(getNavPointId()
) + " | " +
"Visible = " + String.valueOf(isVisible()
) + " | " +
"Location = " + String.valueOf(getLocation()
) + " | " +
"Amount = " + String.valueOf(getAmount()
) + " | " +
"Type = " + String.valueOf(getType()
) + " | " +
"Dropped = " + String.valueOf(isDropped()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>NavPointId</b> = " + String.valueOf(getNavPointId()
) + " <br/> " +
"<b>Visible</b> = " + String.valueOf(isVisible()
) + " <br/> " +
"<b>Location</b> = " + String.valueOf(getLocation()
) + " <br/> " +
"<b>Amount</b> = " + String.valueOf(getAmount()
) + " <br/> " +
"<b>Type</b> = " + String.valueOf(getType()
) + " <br/> " +
"<b>Dropped</b> = " + String.valueOf(isDropped()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=base+classtype[@name=message]) ---
/**
* DO NOT USE THIS METHOD! Reserved for GaviaLib (Pogamut core)! It's used
* to set correct navpoint instance into the item.
*/
public void setNavPoint(NavPoint navPoint) { |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/GameInfoMessage.java | 1677 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/GameInfoSharedImpl.java | 374 |
}
public String toString() {
return
super.toString() + "[" +
"WeaponStay = " + String.valueOf(isWeaponStay()
) + " | " +
"TimeLimit = " + String.valueOf(getTimeLimit()
) + " | " +
"FragLimit = " + String.valueOf(getFragLimit()
) + " | " +
"GoalTeamScore = " + String.valueOf(getGoalTeamScore()
) + " | " +
"MaxTeamSize = " + String.valueOf(getMaxTeamSize()
) + " | " +
"GamePaused = " + String.valueOf(isGamePaused()
) + " | " +
"BotsPaused = " + String.valueOf(isBotsPaused()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>WeaponStay</b> = " + String.valueOf(isWeaponStay()
) + " <br/> " +
"<b>TimeLimit</b> = " + String.valueOf(getTimeLimit()
) + " <br/> " +
"<b>FragLimit</b> = " + String.valueOf(getFragLimit()
) + " <br/> " +
"<b>GoalTeamScore</b> = " + String.valueOf(getGoalTeamScore()
) + " <br/> " +
"<b>MaxTeamSize</b> = " + String.valueOf(getMaxTeamSize()
) + " <br/> " +
"<b>GamePaused</b> = " + String.valueOf(isGamePaused()
) + " <br/> " +
"<b>BotsPaused</b> = " + String.valueOf(isBotsPaused()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=shared+classtype[@name=impl]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=shared+classtype[@name=impl]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/GameInfoMessage.java | 1680 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/GameInfoShared.java | 182 |
public String toString() {
return
super.toString() + "[" +
"WeaponStay = " + String.valueOf(isWeaponStay()
) + " | " +
"TimeLimit = " + String.valueOf(getTimeLimit()
) + " | " +
"FragLimit = " + String.valueOf(getFragLimit()
) + " | " +
"GoalTeamScore = " + String.valueOf(getGoalTeamScore()
) + " | " +
"MaxTeamSize = " + String.valueOf(getMaxTeamSize()
) + " | " +
"GamePaused = " + String.valueOf(isGamePaused()
) + " | " +
"BotsPaused = " + String.valueOf(isBotsPaused()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>WeaponStay</b> = " + String.valueOf(isWeaponStay()
) + " <br/> " +
"<b>TimeLimit</b> = " + String.valueOf(getTimeLimit()
) + " <br/> " +
"<b>FragLimit</b> = " + String.valueOf(getFragLimit()
) + " <br/> " +
"<b>GoalTeamScore</b> = " + String.valueOf(getGoalTeamScore()
) + " <br/> " +
"<b>MaxTeamSize</b> = " + String.valueOf(getMaxTeamSize()
) + " <br/> " +
"<b>GamePaused</b> = " + String.valueOf(isGamePaused()
) + " <br/> " +
"<b>BotsPaused</b> = " + String.valueOf(isBotsPaused()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=shared+classtype[@name=abstract]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=shared+classtype[@name=abstract]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/Entity.java | 214 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/EntityMessage.java | 879 |
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"Visible = " + String.valueOf(isVisible()
) + " | " +
"Location = " + String.valueOf(getLocation()
) + " | " +
"Rotation = " + String.valueOf(getRotation()
) + " | " +
"Velocity = " + String.valueOf(getVelocity()
) + " | " +
"Type = " + String.valueOf(getType()
) + " | " +
"EntityClass = " + String.valueOf(getEntityClass()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>Visible</b> = " + String.valueOf(isVisible()
) + " <br/> " +
"<b>Location</b> = " + String.valueOf(getLocation()
) + " <br/> " +
"<b>Rotation</b> = " + String.valueOf(getRotation()
) + " <br/> " +
"<b>Velocity</b> = " + String.valueOf(getVelocity()
) + " <br/> " +
"<b>Type</b> = " + String.valueOf(getType()
) + " <br/> " +
"<b>EntityClass</b> = " + String.valueOf(getEntityClass()
) + " <br/> " +
"<br/>]";
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/BombInfo.java | 226 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/BombInfoMessage.java | 961 |
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"Velocity = " + String.valueOf(getVelocity()
) + " | " +
"Location = " + String.valueOf(getLocation()
) + " | " +
"Holder = " + String.valueOf(getHolder()
) + " | " +
"HolderTeam = " + String.valueOf(getHolderTeam()
) + " | " +
"Visible = " + String.valueOf(isVisible()
) + " | " +
"State = " + String.valueOf(getState()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>Velocity</b> = " + String.valueOf(getVelocity()
) + " <br/> " +
"<b>Location</b> = " + String.valueOf(getLocation()
) + " <br/> " +
"<b>Holder</b> = " + String.valueOf(getHolder()
) + " <br/> " +
"<b>HolderTeam</b> = " + String.valueOf(getHolderTeam()
) + " <br/> " +
"<b>Visible</b> = " + String.valueOf(isVisible()
) + " <br/> " +
"<b>State</b> = " + String.valueOf(getState()
) + " <br/> " +
"<br/>]";
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/AutoTraceRaySharedImpl.java | 138 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/SelfSharedImpl.java | 129 |
(SelfShared data, long time, ITeamId teamId)
{
this.object = data;
this.time = time;
this.teamId = teamId;
}
/**
* Simulation time in MILLI SECONDS !!!
*/
@Override
public long getSimTime() {
return this.time;
}
@Override
public WorldObjectId getId() {
return object.getId();
}
@Override
public ITeamId getTeamId() {
return teamId;
}
@Override
public Class getCompositeObjectClass()
{
return object.getCompositeClass();
}
@Override
public Collection<ISharedPropertyUpdatedEvent> getPropertyEvents() {
LinkedList<ISharedPropertyUpdatedEvent> events = new LinkedList<ISharedPropertyUpdatedEvent>();
for ( ISharedProperty property : object.getProperties().values() )
{
if ( property != null)
{
events.push( property.createUpdateEvent(time, teamId) );
}
}
return events;
}
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=shared+classtype[@name=impl]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=shared+classtype[@name=impl]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/PlayerMessage.java | 1724 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/SelfMessage.java | 2166 |
toUpdate.Action=getAction()
;
updated = true;
}
if (!SafeEquals.equals(toUpdate.EmotLeft, getEmotLeft()
)) {
toUpdate.EmotLeft=getEmotLeft()
;
updated = true;
}
if (!SafeEquals.equals(toUpdate.EmotCenter, getEmotCenter()
)) {
toUpdate.EmotCenter=getEmotCenter()
;
updated = true;
}
if (!SafeEquals.equals(toUpdate.EmotRight, getEmotRight()
)) {
toUpdate.EmotRight=getEmotRight()
;
updated = true;
}
if (!SafeEquals.equals(toUpdate.Bubble, getBubble()
)) {
toUpdate.Bubble=getBubble()
;
updated = true;
}
if (!SafeEquals.equals(toUpdate.Anim, getAnim()
)) {
toUpdate.Anim=getAnim()
;
updated = true;
}
// UPDATING SHARED PROPERTIES
// UPDATE TIME
toUpdate.SimTime = SimTime;
if (updated) {
return new IWorldObjectUpdateResult.WorldObjectUpdateResult<IWorldObject>(IWorldObjectUpdateResult.Result.UPDATED, toUpdate);
} else {
return new IWorldObjectUpdateResult.WorldObjectUpdateResult<IWorldObject>(IWorldObjectUpdateResult.Result.SAME, toUpdate);
}
}
@Override
public ILocalWorldObjectUpdatedEvent getLocalEvent() {
return new SelfLocalImpl.SelfLocalUpdate |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/InitedMessageLocalImpl.java | 48 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/InitedMessageLocalImpl.java | 121 |
public InitedMessageLocalImpl(InitedMessageLocalImpl original) {
this.BotId = original.getBotId()
;
this.HealthStart = original.getHealthStart()
;
this.HealthFull = original.getHealthFull()
;
this.HealthMax = original.getHealthMax()
;
this.AdrenalineStart = original.getAdrenalineStart()
;
this.AdrenalineMax = original.getAdrenalineMax()
;
this.ShieldStrengthStart = original.getShieldStrengthStart()
;
this.ShieldStrengthMax = original.getShieldStrengthMax()
;
this.MaxMultiJump = original.getMaxMultiJump()
;
this.DamageScaling = original.getDamageScaling()
;
this.GroundSpeed = original.getGroundSpeed()
;
this.WaterSpeed = original.getWaterSpeed()
;
this.AirSpeed = original.getAirSpeed()
;
this.LadderSpeed = original.getLadderSpeed()
;
this.AccelRate = original.getAccelRate()
;
this.JumpZ = original.getJumpZ()
;
this.MultiJumpBoost = original.getMultiJumpBoost()
;
this.MaxFallSpeed = original.getMaxFallSpeed()
;
this.DodgeSpeedFactor = original.getDodgeSpeedFactor()
;
this.DodgeSpeedZ = original.getDodgeSpeedZ()
;
this.AirControl = original.getAirControl()
;
this.SimTime = original.getSimTime();
}
/**
* Cloning constructor from the message part.
*
* @param original
*/
public InitedMessageLocalImpl(InitedMessageLocal original) { |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/observer/impl/AbstractUT2004Observer.java | 79 |
cz/cuni/amis/pogamut/ut2004/server/impl/AbstractUT2004Server.java | 136 |
}
/**
* Specify the password that should be used if required by the world.
*
* @param password
*/
public void setPassword(String password) {
this.desiredPassword = password;
}
// --------------
// -=-=-=-=-=-=-=
// READY LISTENER
// -=-=-=-=-=-=-=
// --------------
/**
* This method is called whenever HelloBot message is parsed - the
* GameBots2004 is awaiting the bot to reply with Ready command to begin the
* handshake.
*/
protected void readyCommandRequested() {
getAct().act(new Ready());
}
/**
* Listener that is hooked to WorldView awaiting event ReadyCommandRequest
* calling setupWorldViewListeners() and then readyCommandRequested() method
* upon receiving the event.
*/
private IWorldEventListener<ReadyCommandRequest> readyCommandRequestListener = new IWorldEventListener<ReadyCommandRequest>() {
@Override
public void notify(ReadyCommandRequest event) {
setState(new AgentStateStarting("GameBots2004 greeted us, sending READY."));
readyCommandRequested();
setState(new AgentStateStarting("READY sent."));
}
};
// -----------------
// -=-=-=-=-=-=-=-=-
// PASSWORD LISTENER
// -=-=-=-=-=-=-=-=-
// -----------------
/**
* Instance of the password reply command that was sent upon receivieng
* request for the password (the world is locked).
* <p>
* <p>
* If null the password was not required by the time the bot connected to
* the world.
*/
private PasswordReply passwordReply = null;
/**
* Instance of the password reply command that was sent upon receivieng
* request for the password (the world is locked).
* <p>
* <p>
* If null the password was not required by the time the bot connected to
* the world.
*
* @return
*/
public PasswordReply getPasswordReply() {
return passwordReply;
}
/**
* This method is called whenever the Password event is caught telling us
* the world is locked and is requiring a password.
* <p>
* <p>
* May return null - in that case an empty password is sent to the server
* (which will probably result in closing the connection and termination of
* the agent).
* <p>
* <p>
* This message is then saved to private field passwordReply and is
* accessible via getPasswordReply() method if required to be probed during
* the bot's runtime.
* <p>
* <p>
* Note that if setPassword() method is called before this one it will use
* provided password via that method.
*/
protected PasswordReply createPasswordReply() {
return desiredPassword != null ? new PasswordReply(desiredPassword)
: null;
}
/**
* Listener that is hooked to WorldView awaiting event InitCommandRequest
* calling initCommandRequested() method upon receiving the event.
*/
private IWorldEventListener<Password> passwordRequestedListener = new IWorldEventListener<Password>() {
@Override
public void notify(Password event) {
setState(new AgentStateStarting("Password requested by the world."));
passwordReply = createPasswordReply();
if (passwordReply == null) {
passwordReply = new PasswordReply("");
}
if (log.isLoggable(Level.INFO)) log.info("Password required for the world, replying with '"
+ passwordReply.getPassword() + "'.");
getAct().act(passwordReply);
}
}; |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/VehicleMessage.java | 686 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/VehicleStaticImpl.java | 249 |
}
@Override
public boolean isDifferentFrom(IStaticWorldObject other)
{
if (other == null) //early fail
{
return true;
}
else if (other == this) //early out
{
return false;
}
else
{
VehicleStatic obj = (VehicleStatic) other;
if ( !(
AdvancedEquals.equalsOrNull(this.getId()
, obj.getId()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Id on object class VehicleStatic");
return true;
}
if ( !(
AdvancedEquals.equalsOrNull(this.getType()
, obj.getType()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Type on object class VehicleStatic");
return true;
}
}
return false;
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"Type = " + String.valueOf(getType()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>Type</b> = " + String.valueOf(getType()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=static+classtype[@name=impl]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=static+classtype[@name=impl]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/VehicleMessage.java | 689 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/VehicleStatic.java | 92 |
@Override
public boolean isDifferentFrom(IStaticWorldObject other)
{
if (other == null) //early fail
{
return true;
}
else if (other == this) //early out
{
return false;
}
else
{
VehicleStatic obj = (VehicleStatic) other;
if ( !(
AdvancedEquals.equalsOrNull(this.getId()
, obj.getId()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Id on object class VehicleStatic");
return true;
}
if ( !(
AdvancedEquals.equalsOrNull(this.getType()
, obj.getType()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Type on object class VehicleStatic");
return true;
}
}
return false;
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"Type = " + String.valueOf(getType()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>Type</b> = " + String.valueOf(getType()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=static+classtype[@name=abstract]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=static+classtype[@name=abstract]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/MoverSharedImpl.java | 212 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/NavPointSharedImpl.java | 272 |
(NavPointShared data, long time, ITeamId teamId)
{
this.object = data;
this.time = time;
this.teamId = teamId;
}
/**
* Simulation time in MILLI SECONDS !!!
*/
@Override
public long getSimTime() {
return this.time;
}
@Override
public WorldObjectId getId() {
return object.getId();
}
@Override
public ITeamId getTeamId() {
return teamId;
}
@Override
public Class getCompositeObjectClass()
{
return object.getCompositeClass();
}
@Override
public Collection<ISharedPropertyUpdatedEvent> getPropertyEvents() {
LinkedList<ISharedPropertyUpdatedEvent> events = new LinkedList<ISharedPropertyUpdatedEvent>();
for ( ISharedProperty property : object.getProperties().values() )
{
if ( property != null)
{
events.push( property.createUpdateEvent(time, teamId) );
}
}
return events;
}
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"Location = " + String.valueOf(getLocation()
) + " | " +
"Velocity = " + String.valueOf(getVelocity()
) + " | " + |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/agent/navigation/navmesh/NavMesh.java | 1323 |
cz/cuni/amis/pogamut/ut2004/agent/navigation/navmesh/NavMesh.java | 1484 |
if(safeVertex.get(v1)) {
rightMantinelTarget = new Location(vv1[0],vv1[1],vv1[2]+NavMeshConstants.liftPolygonLocation);
} else {
if(gateway.getLength() <= 2*NavMeshConstants.agentRadius) {
rightMantinelTarget = new Location((vv2[0]+vv1[0])/2,(vv2[1]+vv1[1])/2,(vv2[2]+vv1[2])/2+NavMeshConstants.liftPolygonLocation);
} else {
rightMantinelTarget = new Location( vv1[0] + (vv2[0]-vv1[0])/gateway.getLength()*NavMeshConstants.agentRadius,
vv1[1] + (vv2[1]-vv1[1])/gateway.getLength()*NavMeshConstants.agentRadius,
vv1[2] + (vv2[2]-vv1[2])/gateway.getLength()*NavMeshConstants.agentRadius+NavMeshConstants.liftPolygonLocation);
}
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/agent/navigation/navmesh/NavMesh.java | 1308 |
cz/cuni/amis/pogamut/ut2004/agent/navigation/navmesh/NavMesh.java | 1441 |
if(safeVertex.get(v2)) {
leftMantinelTarget = new Location(vv2[0],vv2[1],vv2[2]+NavMeshConstants.liftPolygonLocation);
} else {
if(gateway.getLength() <= 2*NavMeshConstants.agentRadius) {
leftMantinelTarget = new Location((vv2[0]+vv1[0])/2,(vv2[1]+vv1[1])/2,(vv2[2]+vv1[2])/2+NavMeshConstants.liftPolygonLocation);
} else {
leftMantinelTarget = new Location( vv2[0] + (vv1[0]-vv2[0])/gateway.getLength()*NavMeshConstants.agentRadius,
vv2[1] + (vv1[1]-vv2[1])/gateway.getLength()*NavMeshConstants.agentRadius,
vv2[2] + (vv1[2]-vv2[2])/gateway.getLength()*NavMeshConstants.agentRadius+NavMeshConstants.liftPolygonLocation);
}
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/translator/observer/state/PasswordState.java | 31 |
cz/cuni/amis/pogamut/ut2004/communication/translator/server/state/PasswordState.java | 31 |
public class PasswordState extends AbstractServerFSMState<InfoMessage, TranslatorContext> {
@Override
public void init(TranslatorContext context) {
}
@Override
public void restart(TranslatorContext context) {
}
@Override
public void stateEntering(TranslatorContext context,
IFSMState<InfoMessage, TranslatorContext> fromState,
InfoMessage symbol) {
if (!(symbol instanceof Password)) throw new UnexpectedMessageException(TranslatorMessages.unexpectedMessage(this, symbol, Password.class), context.getLogger(), this);
if (!(symbol instanceof IWorldChangeEvent)) throw new UnexpectedMessageException(TranslatorMessages.messageNotWorldEvent(this, symbol), context.getLogger(), this);
context.getEventQueue().pushEvent((IWorldChangeEvent)symbol);
}
@Override
public void stateLeaving(TranslatorContext context,
IFSMState<InfoMessage, TranslatorContext> toState, InfoMessage symbol) {
}
@Override
protected void innerStateSymbol(TranslatorContext context, InfoMessage symbol) {
if (!(symbol instanceof Password)) throw new UnexpectedMessageException(TranslatorMessages.unexpectedMessage(this, symbol), context.getLogger(), this);
}
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/InitedMessageLocalImpl.java | 48 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/InitedMessageMessage.java | 241 |
public InitedMessageMessage(InitedMessageMessage original) {
this.BotId = original.getBotId()
;
this.HealthStart = original.getHealthStart()
;
this.HealthFull = original.getHealthFull()
;
this.HealthMax = original.getHealthMax()
;
this.AdrenalineStart = original.getAdrenalineStart()
;
this.AdrenalineMax = original.getAdrenalineMax()
;
this.ShieldStrengthStart = original.getShieldStrengthStart()
;
this.ShieldStrengthMax = original.getShieldStrengthMax()
;
this.MaxMultiJump = original.getMaxMultiJump()
;
this.DamageScaling = original.getDamageScaling()
;
this.GroundSpeed = original.getGroundSpeed()
;
this.WaterSpeed = original.getWaterSpeed()
;
this.AirSpeed = original.getAirSpeed()
;
this.LadderSpeed = original.getLadderSpeed()
;
this.AccelRate = original.getAccelRate()
;
this.JumpZ = original.getJumpZ()
;
this.MultiJumpBoost = original.getMultiJumpBoost()
;
this.MaxFallSpeed = original.getMaxFallSpeed()
;
this.DodgeSpeedFactor = original.getDodgeSpeedFactor()
;
this.DodgeSpeedZ = original.getDodgeSpeedZ()
;
this.AirControl = original.getAirControl()
;
this.TeamId = original.getTeamId(); |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/Player.java | 333 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/PlayerShared.java | 278 |
"Action = " + String.valueOf(getAction()
) + " | " +
"Rotation = " + String.valueOf(getRotation()
) + " | " +
"Location = " + String.valueOf(getLocation()
) + " | " +
"Velocity = " + String.valueOf(getVelocity()
) + " | " +
"Team = " + String.valueOf(getTeam()
) + " | " +
"Weapon = " + String.valueOf(getWeapon()
) + " | " +
"Crouched = " + String.valueOf(isCrouched()
) + " | " +
"Firing = " + String.valueOf(getFiring()
) + " | " +
"EmotLeft = " + String.valueOf(getEmotLeft()
) + " | " +
"EmotCenter = " + String.valueOf(getEmotCenter()
) + " | " +
"EmotRight = " + String.valueOf(getEmotRight()
) + " | " +
"Bubble = " + String.valueOf(getBubble()
) + " | " +
"Anim = " + String.valueOf(getAnim()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " + |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/NavPointMessage.java | 2540 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/NavPointStaticImpl.java | 1400 |
"DomPoint = " + String.valueOf(isDomPoint()
) + " | " +
"Door = " + String.valueOf(isDoor()
) + " | " +
"LiftCenter = " + String.valueOf(isLiftCenter()
) + " | " +
"LiftExit = " + String.valueOf(isLiftExit()
) + " | " +
"AIMarker = " + String.valueOf(isAIMarker()
) + " | " +
"JumpSpot = " + String.valueOf(isJumpSpot()
) + " | " +
"JumpPad = " + String.valueOf(isJumpPad()
) + " | " +
"JumpDest = " + String.valueOf(isJumpDest()
) + " | " +
"Teleporter = " + String.valueOf(isTeleporter()
) + " | " +
"Rotation = " + String.valueOf(getRotation()
) + " | " +
"RoamingSpot = " + String.valueOf(isRoamingSpot()
) + " | " +
"SnipingSpot = " + String.valueOf(isSnipingSpot()
) + " | " +
"PreferedWeapon = " + String.valueOf(getPreferedWeapon()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " + |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/NavPointMessage.java | 2326 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/NavPointSharedImpl.java | 317 |
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"Location = " + String.valueOf(getLocation()
) + " | " +
"Velocity = " + String.valueOf(getVelocity()
) + " | " +
"ItemSpawned = " + String.valueOf(isItemSpawned()
) + " | " +
"DoorOpened = " + String.valueOf(isDoorOpened()
) + " | " +
"DomPointController = " + String.valueOf(getDomPointController()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>Location</b> = " + String.valueOf(getLocation()
) + " <br/> " +
"<b>Velocity</b> = " + String.valueOf(getVelocity()
) + " <br/> " +
"<b>ItemSpawned</b> = " + String.valueOf(isItemSpawned()
) + " <br/> " +
"<b>DoorOpened</b> = " + String.valueOf(isDoorOpened()
) + " <br/> " +
"<b>DomPointController</b> = " + String.valueOf(getDomPointController()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=shared+classtype[@name=impl]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=shared+classtype[@name=impl]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/NavPoint.java | 471 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/NavPointMessage.java | 1996 |
"DomPoint = " + String.valueOf(isDomPoint()
) + " | " +
"Door = " + String.valueOf(isDoor()
) + " | " +
"LiftCenter = " + String.valueOf(isLiftCenter()
) + " | " +
"LiftExit = " + String.valueOf(isLiftExit()
) + " | " +
"AIMarker = " + String.valueOf(isAIMarker()
) + " | " +
"JumpSpot = " + String.valueOf(isJumpSpot()
) + " | " +
"JumpPad = " + String.valueOf(isJumpPad()
) + " | " +
"JumpDest = " + String.valueOf(isJumpDest()
) + " | " +
"Teleporter = " + String.valueOf(isTeleporter()
) + " | " +
"Rotation = " + String.valueOf(getRotation()
) + " | " +
"RoamingSpot = " + String.valueOf(isRoamingSpot()
) + " | " +
"SnipingSpot = " + String.valueOf(isSnipingSpot()
) + " | " +
"PreferedWeapon = " + String.valueOf(getPreferedWeapon()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " + |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/InitedMessageLocalImpl.java | 48 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/InitedMessageLocalImpl.java | 194 |
public InitedMessageLocalImpl(InitedMessageLocal original) {
this.BotId = original.getBotId()
;
this.HealthStart = original.getHealthStart()
;
this.HealthFull = original.getHealthFull()
;
this.HealthMax = original.getHealthMax()
;
this.AdrenalineStart = original.getAdrenalineStart()
;
this.AdrenalineMax = original.getAdrenalineMax()
;
this.ShieldStrengthStart = original.getShieldStrengthStart()
;
this.ShieldStrengthMax = original.getShieldStrengthMax()
;
this.MaxMultiJump = original.getMaxMultiJump()
;
this.DamageScaling = original.getDamageScaling()
;
this.GroundSpeed = original.getGroundSpeed()
;
this.WaterSpeed = original.getWaterSpeed()
;
this.AirSpeed = original.getAirSpeed()
;
this.LadderSpeed = original.getLadderSpeed()
;
this.AccelRate = original.getAccelRate()
;
this.JumpZ = original.getJumpZ()
;
this.MultiJumpBoost = original.getMultiJumpBoost()
;
this.MaxFallSpeed = original.getMaxFallSpeed()
;
this.DodgeSpeedFactor = original.getDodgeSpeedFactor()
;
this.DodgeSpeedZ = original.getDodgeSpeedZ()
;
this.AirControl = original.getAirControl() |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/BombInfoMessage.java | 807 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/BombInfoSharedImpl.java | 332 |
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"Velocity = " + String.valueOf(getVelocity()
) + " | " +
"Location = " + String.valueOf(getLocation()
) + " | " +
"Holder = " + String.valueOf(getHolder()
) + " | " +
"HolderTeam = " + String.valueOf(getHolderTeam()
) + " | " +
"State = " + String.valueOf(getState()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>Velocity</b> = " + String.valueOf(getVelocity()
) + " <br/> " +
"<b>Location</b> = " + String.valueOf(getLocation()
) + " <br/> " +
"<b>Holder</b> = " + String.valueOf(getHolder()
) + " <br/> " +
"<b>HolderTeam</b> = " + String.valueOf(getHolderTeam()
) + " <br/> " +
"<b>State</b> = " + String.valueOf(getState()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=shared+classtype[@name=impl]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=shared+classtype[@name=impl]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/NavPointMessage.java | 2329 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/NavPointShared.java | 151 |
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"Location = " + String.valueOf(getLocation()
) + " | " +
"Velocity = " + String.valueOf(getVelocity()
) + " | " +
"ItemSpawned = " + String.valueOf(isItemSpawned()
) + " | " +
"DoorOpened = " + String.valueOf(isDoorOpened()
) + " | " +
"DomPointController = " + String.valueOf(getDomPointController()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>Location</b> = " + String.valueOf(getLocation()
) + " <br/> " +
"<b>Velocity</b> = " + String.valueOf(getVelocity()
) + " <br/> " +
"<b>ItemSpawned</b> = " + String.valueOf(isItemSpawned()
) + " <br/> " +
"<b>DoorOpened</b> = " + String.valueOf(isDoorOpened()
) + " <br/> " +
"<b>DomPointController</b> = " + String.valueOf(getDomPointController()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=shared+classtype[@name=abstract]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=shared+classtype[@name=abstract]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/FlagInfo.java | 216 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/FlagInfoMessage.java | 874 |
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"Location = " + String.valueOf(getLocation()
) + " | " +
"Holder = " + String.valueOf(getHolder()
) + " | " +
"Team = " + String.valueOf(getTeam()
) + " | " +
"Visible = " + String.valueOf(isVisible()
) + " | " +
"State = " + String.valueOf(getState()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>Location</b> = " + String.valueOf(getLocation()
) + " <br/> " +
"<b>Holder</b> = " + String.valueOf(getHolder()
) + " <br/> " +
"<b>Team</b> = " + String.valueOf(getTeam()
) + " <br/> " +
"<b>Visible</b> = " + String.valueOf(isVisible()
) + " <br/> " +
"<b>State</b> = " + String.valueOf(getState()
) + " <br/> " +
"<br/>]";
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/BombInfoMessage.java | 810 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/BombInfoShared.java | 157 |
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"Velocity = " + String.valueOf(getVelocity()
) + " | " +
"Location = " + String.valueOf(getLocation()
) + " | " +
"Holder = " + String.valueOf(getHolder()
) + " | " +
"HolderTeam = " + String.valueOf(getHolderTeam()
) + " | " +
"State = " + String.valueOf(getState()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>Velocity</b> = " + String.valueOf(getVelocity()
) + " <br/> " +
"<b>Location</b> = " + String.valueOf(getLocation()
) + " <br/> " +
"<b>Holder</b> = " + String.valueOf(getHolder()
) + " <br/> " +
"<b>HolderTeam</b> = " + String.valueOf(getHolderTeam()
) + " <br/> " +
"<b>State</b> = " + String.valueOf(getState()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=shared+classtype[@name=abstract]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=shared+classtype[@name=abstract]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/translator/observer/state/ItemListState.java | 58 |
cz/cuni/amis/pogamut/ut2004/communication/translator/server/state/ItemListState.java | 57 |
if (context.getLogger().isLoggable(Level.FINE)) context.getLogger().fine("Pushing NavPoint events.");
context.getEventQueue().pushEvent(context.getNavPoints().values().toArray(new IWorldChangeEvent[0]));
if (context.getLogger().isLoggable(Level.FINE)) context.getLogger().fine("Pushing Item events.");
context.getEventQueue().pushEvent(context.getItems().values().toArray(new IWorldChangeEvent[0]));
context.getEventQueue().pushEvent(new MapPointListObtained(context.getNavPoints(), context.getItems(), simTime));
} else {
if (context.getLogger().isLoggable(Level.FINE)) context.getLogger().fine("Pushing Item events.");
context.getEventQueue().pushEvent(context.getItems().values().toArray(new IWorldChangeEvent[0]));
}
}
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/EntitySharedImpl.java | 208 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/ItemSharedImpl.java | 192 |
(MoverShared data, long time, ITeamId teamId)
{
this.object = data;
this.time = time;
this.teamId = teamId;
}
/**
* Simulation time in MILLI SECONDS !!!
*/
@Override
public long getSimTime() {
return this.time;
}
@Override
public WorldObjectId getId() {
return object.getId();
}
@Override
public ITeamId getTeamId() {
return teamId;
}
@Override
public Class getCompositeObjectClass()
{
return object.getCompositeClass();
}
@Override
public Collection<ISharedPropertyUpdatedEvent> getPropertyEvents() {
LinkedList<ISharedPropertyUpdatedEvent> events = new LinkedList<ISharedPropertyUpdatedEvent>();
for ( ISharedProperty property : object.getProperties().values() )
{
if ( property != null)
{
events.push( property.createUpdateEvent(time, teamId) );
}
}
return events;
}
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"Location = " + String.valueOf(getLocation()
) + " | " + |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/translator/observer/state/ObserverRunningState.java | 58 |
cz/cuni/amis/pogamut/ut2004/communication/translator/server/state/ServerRunningState.java | 58 |
public class ServerRunningState extends AbstractServerFSMState<InfoMessage, TranslatorContext> {
@Override
public void stateEntering(TranslatorContext context, IFSMState<InfoMessage, TranslatorContext> arg1, InfoMessage arg2) {
}
@Override
protected void innerStateSymbol(TranslatorContext context, InfoMessage obj) {
if (obj instanceof IWorldChangeEvent) {
if (obj instanceof HandShakeEnd) {
long simTime = ((IWorldChangeEvent)obj).getSimTime();
context.getEventQueue().pushEvent(new MapPointListObtained(context.getNavPoints(), context.getItems(), simTime));
} else {
context.getEventQueue().pushEvent((IWorldChangeEvent) obj);
}
} else {
throw new UnexpectedMessageException(TranslatorMessages.messageNotWorldEvent(this, obj), context.getLogger(), this);
}
}
@Override
public void stateLeaving(TranslatorContext context, IFSMState<InfoMessage, TranslatorContext> arg1, InfoMessage symbol) {
}
@Override
public void init(TranslatorContext arg0) {
}
@Override
public void restart(TranslatorContext arg0) {
}
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/translator/observer/state/MutatorListState.java | 28 |
cz/cuni/amis/pogamut/ut2004/communication/translator/server/state/MutatorListState.java | 28 |
public class MutatorListState extends ServerListState<Mutator, TranslatorContext>{
public MutatorListState() {
super(MutatorListStart.class, Mutator.class, MutatorListEnd.class);
}
@Override
public void stateEntering(TranslatorContext context, IFSMState<InfoMessage, TranslatorContext> fromState, InfoMessage symbol) {
super.restart(context);
super.stateEntering(context, fromState, symbol);
}
@Override
public void stateLeaving(TranslatorContext context, IFSMState<InfoMessage, TranslatorContext> toState, InfoMessage symbol) {
super.stateLeaving(context, toState, symbol);
long simTime =
(symbol instanceof IWorldChangeEvent ? ((IWorldChangeEvent)symbol).getSimTime() : 0);
context.getEventQueue().pushEvent(new MutatorListObtained(getList(), simTime));
newList();
}
@Override
protected void innerStateSymbol(TranslatorContext context,
InfoMessage symbol) {
super.innerStateSymbol(context, symbol);
if (symbol instanceof Mutator) {
context.getEventQueue().pushEvent((Mutator)symbol);
}
}
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/agent/navigation/navmesh/NavMesh.java | 1138 |
cz/cuni/amis/pogamut/ut2004/agent/navigation/navmesh/NavMesh.java | 1220 |
if(atom.getClass()==OffMeshPoint.class) {
NavPoint np = (NavPoint)server.getWorldView().get(((OffMeshPoint)atom).getNavPointId());
path.add(np);
}
// * -> polygon
else {
NavMeshPolygon polygon = (NavMeshPolygon)atom;
// point -> polygon
if(lastAtom==null || lastAtom.getClass()==OffMeshPoint.class) {
OffMeshPoint op = (OffMeshPoint)lastAtom;
// was lastAtom inside this polygon?
boolean inside;
if(lastAtom==null) {
inside = polygonContainsPoint(polygon.getPolygonId(), new Point2D(from.getLocation().x, from.getLocation().y));
} else {
inside = false;
List<OffMeshPoint> offPs = polysToOffMeshPoints.get(polygon.getPolygonId());
for(OffMeshPoint op2 : offPs) {
if(op2.equals(op)) inside = true;
}
}
if(inside) {
// nothing
} else {
// add center
path.add(getLocation(atom));
}
}
// polygon -> polygon
else { |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/PlayerJoinsGame.java | 84 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/PlayerLeft.java | 86 |
public PlayerLeft(PlayerLeft original) {
this.Id = original.getId()
;
this.Name = original.getName()
;
this.SimTime = original.getSimTime();
}
protected long SimTime;
/**
* Simulation time in MILLI SECONDS !!!
*/
@Override
public long getSimTime() {
return SimTime;
}
/**
* Used by Yylex to slip correct time of the object or programmatically.
*/
protected void setSimTime(long SimTime) {
this.SimTime = SimTime;
}
/**
* Unique Id of the player who left.
*/
protected
UnrealId Id =
null;
/**
* Unique Id of the player who left.
*/
public UnrealId getId()
{
return Id;
}
/**
* The name of the player.
*/
protected
String Name =
null;
/**
* The name of the player.
*/
public String getName()
{
return Name;
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"Name = " + String.valueOf(getName()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>Name</b> = " + String.valueOf(getName()
) + " <br/> " +
"<br/>]";
}
public String toJsonLiteral() {
return "playerleft( " |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/PickedUsableObject.java | 88 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/SpawnedUsableObject.java | 88 |
public SpawnedUsableObject(SpawnedUsableObject original) {
this.Name = original.getName()
;
this.Location = original.getLocation()
;
this.SimTime = original.getSimTime();
}
protected long SimTime;
/**
* Simulation time in MILLI SECONDS !!!
*/
@Override
public long getSimTime() {
return SimTime;
}
/**
* Used by Yylex to slip correct time of the object or programmatically.
*/
protected void setSimTime(long SimTime) {
this.SimTime = SimTime;
}
/**
*
Name of the picked usable object.
*/
protected
String Name =
null;
/**
*
Name of the picked usable object.
*/
public String getName()
{
return Name;
}
/**
*
Location of the usable object.
*/
protected
Location Location =
null;
/**
*
Location of the usable object.
*/
public Location getLocation()
{
return Location;
}
public String toString() {
return
super.toString() + "[" +
"Name = " + String.valueOf(getName()
) + " | " +
"Location = " + String.valueOf(getLocation()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Name</b> = " + String.valueOf(getName()
) + " <br/> " +
"<b>Location</b> = " + String.valueOf(getLocation()
) + " <br/> " +
"<br/>]";
}
public String toJsonLiteral() {
return "spawnedusableobject( " |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/Mutator.java | 93 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/PlayerJoinsGame.java | 84 |
public PlayerJoinsGame(PlayerJoinsGame original) {
this.Id = original.getId()
;
this.Name = original.getName()
;
this.SimTime = original.getSimTime();
}
protected long SimTime;
/**
* Simulation time in MILLI SECONDS !!!
*/
@Override
public long getSimTime() {
return SimTime;
}
/**
* Used by Yylex to slip correct time of the object or programmatically.
*/
protected void setSimTime(long SimTime) {
this.SimTime = SimTime;
}
/**
* Unique Id of the player.
*/
protected
UnrealId Id =
null;
/**
* Unique Id of the player.
*/
public UnrealId getId()
{
return Id;
}
/**
* Name of the player.
*/
protected
String Name =
null;
/**
* Name of the player.
*/
public String getName()
{
return Name;
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"Name = " + String.valueOf(getName()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>Name</b> = " + String.valueOf(getName()
) + " <br/> " +
"<br/>]";
}
public String toJsonLiteral() {
return "playerjoinsgame( " |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/HelloControlServerHandshake.java | 90 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/HelloObserverHandshake.java | 90 |
public HelloObserverHandshake(HelloObserverHandshake original) {
this.Game = original.getGame()
;
this.Version = original.getVersion()
;
this.SimTime = original.getSimTime();
}
protected long SimTime;
/**
* Simulation time in MILLI SECONDS !!!
*/
@Override
public long getSimTime() {
return SimTime;
}
/**
* Used by Yylex to slip correct time of the object or programmatically.
*/
protected void setSimTime(long SimTime) {
this.SimTime = SimTime;
}
/**
*
Name of the Unreal Tournament version these GameBots are running on (UT2004, UE2, UDK, UT3...).
*/
protected
String Game =
null;
/**
*
Name of the Unreal Tournament version these GameBots are running on (UT2004, UE2, UDK, UT3...).
*/
public String getGame()
{
return Game;
}
/**
*
Version number of GameBots.
*/
protected
String Version =
null;
/**
*
Version number of GameBots.
*/
public String getVersion()
{
return Version;
}
public String toString() {
return
super.toString() + "[" +
"Game = " + String.valueOf(getGame()
) + " | " +
"Version = " + String.valueOf(getVersion()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Game</b> = " + String.valueOf(getGame()
) + " <br/> " +
"<b>Version</b> = " + String.valueOf(getVersion()
) + " <br/> " +
"<br/>]";
}
public String toJsonLiteral() {
return "helloobserverhandshake( " |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/BeginMessage.java | 88 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/EndMessage.java | 90 |
public EndMessage(EndMessage original) {
this.Time = original.getTime()
;
this.VisUpdate = original.isVisUpdate()
;
this.SimTime = original.getSimTime();
}
protected long SimTime;
/**
* Simulation time in MILLI SECONDS !!!
*/
@Override
public long getSimTime() {
return SimTime;
}
/**
* Used by Yylex to slip correct time of the object or programmatically.
*/
protected void setSimTime(long SimTime) {
this.SimTime = SimTime;
}
/**
*
Time, when the message was sent - intern UT time.
*/
protected
double Time =
0;
/**
*
Time, when the message was sent - intern UT time.
*/
public double getTime()
{
return Time;
}
/**
* Sent only if new synchronous batch procotol is used (NewSelfBatchProtocol attribute in INIT message). If true it means this sync. batches contains also visiblity information - PLR, INV, PRJ messages... If false, it means that only SELF message is in this synchronous batch.
*/
protected
boolean VisUpdate =
false;
/**
* Sent only if new synchronous batch procotol is used (NewSelfBatchProtocol attribute in INIT message). If true it means this sync. batches contains also visiblity information - PLR, INV, PRJ messages... If false, it means that only SELF message is in this synchronous batch.
*/
public boolean isVisUpdate()
{
return VisUpdate;
}
public String toString() {
return
super.toString() + "[" +
"Time = " + String.valueOf(getTime()
) + " | " +
"VisUpdate = " + String.valueOf(isVisUpdate()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Time</b> = " + String.valueOf(getTime()
) + " <br/> " +
"<b>VisUpdate</b> = " + String.valueOf(isVisUpdate()
) + " <br/> " +
"<br/>]";
}
public String toJsonLiteral() {
return "endmessage( " |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/AliveMessageSharedImpl.java | 119 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/InitedMessageSharedImpl.java | 118 |
(InitedMessageShared data, long time, ITeamId teamId)
{
this.object = data;
this.time = time;
this.teamId = teamId;
}
/**
* Simulation time in MILLI SECONDS !!!
*/
@Override
public long getSimTime() {
return this.time;
}
@Override
public WorldObjectId getId() {
return object.getId();
}
@Override
public ITeamId getTeamId() {
return teamId;
}
@Override
public Class getCompositeObjectClass()
{
return object.getCompositeClass();
}
@Override
public Collection<ISharedPropertyUpdatedEvent> getPropertyEvents() {
LinkedList<ISharedPropertyUpdatedEvent> events = new LinkedList<ISharedPropertyUpdatedEvent>();
for ( ISharedProperty property : object.getProperties().values() )
{
if ( property != null)
{
events.push( property.createUpdateEvent(time, teamId) );
}
}
return events;
}
}
public String toString() {
return
super.toString() + "[" +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=shared+classtype[@name=impl]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=shared+classtype[@name=impl]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/bot/command/AdvancedLocomotion.java | 403 |
cz/cuni/amis/pogamut/ut2004/bot/command/AdvancedLocomotion.java | 431 |
public void dodgeRight(ILocated inFrontOfTheBot, boolean bDouble) {
ILocated bot = self.getLocation();
Location direction = new Location(inFrontOfTheBot.getLocation().x - bot.getLocation().x, inFrontOfTheBot.getLocation().y - bot.getLocation().y, 0);
direction = direction.getNormalized();
double x = direction.getX();
double y = direction.getY();
direction = new Location(-y, x, 0);
double alpha = Math.acos(self.getRotation().toLocation().getNormalized().dot(direction.getNormalized()));
double orientation = self.getRotation().toLocation().cross(new Location(0, 0, 1)).dot(direction);
if (orientation > 0) {
alpha = -alpha;
}
Matrix3d rot = Rotation.constructXYRot(alpha);
direction = new Location(1, 0, 0).mul(rot); |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/Self.java | 66 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/SelfLocal.java | 70 |
}
/**
* Unique Id of this self message instance.
*/
public abstract UnrealId getId()
;
/**
* Unique Id of this bot.
*/
public abstract UnrealId getBotId()
;
/**
* Human readable bot name.
*/
public abstract String getName()
;
/**
* If we are vehicle just these attr. are sent in SLF: "Id","Vehicle""Rotation", "Location","Velocity ","Name ","Team" ,"Health"
"Armor","Adrenaline", "FloorLocation", "FloorNormal".
*/
public abstract boolean isVehicle()
;
/**
*
An absolute location of the bot.
*/
public abstract Location getLocation()
;
/**
*
Absolute velocity of the bot as a vector of movement per one
game second.
*/
public abstract Velocity getVelocity()
;
/**
*
Which direction the bot is facing in absolute terms.
*/
public abstract Rotation getRotation()
;
/**
*
What team the bot is on. 255 is no team. 0-3 are red,
blue, green, gold in that order.
*/
public abstract int getTeam()
;
/**
*
Id of the weapon we are holding. This is unique Id of an
item in our inventory and is different from the Id of the
item we pick up from the ground! We can parse this string to
look which weapon we hold. Weapon strings to look for
include: "AssaultRifle", "ShieldGun", "FlakCannon",
"BioRifle", "ShockRifle", "LinkGun", "SniperRifle",
"RocketLauncher", "Minigun", "LightingGun", "Translocator".
TODO: Look if this is all.
*/
public abstract String getWeapon()
;
/**
* If the bot is shooting or not.
*/
public abstract boolean isShooting()
;
/**
*
How much health the bot has left. Starts at 100, ranges from
0 to 200.
*/
public abstract int getHealth()
;
/**
*
How much ammo the bot has left for current weapon primary
mode.
*/
public abstract int getPrimaryAmmo()
;
/**
*
How much ammo the bot has left for current weapon secondary
mode. Weapon does not have to support sec. fire mode.
*/
public abstract int getSecondaryAmmo()
;
/**
* How much adrenaline the bot has.
*/
public abstract int getAdrenaline()
;
/**
*
Combined size of high armor and low armor (or small armor). The high and low armor are tracked
separately. Low armor is limited to 50 points, while the
high armor can have up to 150 points. Both stacks can have a combined size of 150 points as well,
so if low armor is already at 50 points, high armor can have
100 points at max.
*/
public abstract int getArmor()
;
/**
*
Also refered to as a "low armor". Ranges from 0 to 50 points.
*/
public abstract int getSmallArmor()
;
/**
*
If we are firing in secondary firing mode.
*/
public abstract boolean isAltFiring()
;
/**
*
If we are currently crouched.
*/
public abstract boolean isCrouched()
;
/**
*
If we are currently in walking mode.
*/
public abstract boolean isWalking()
;
/**
*
Holds current floor location under the bot.
*/
public abstract Location getFloorLocation()
;
/**
*
Holds current floor normal under the bot.
*/
public abstract Location getFloorNormal()
;
/**
*
Name of the current combo (None if no combo active).
Can be xGame.ComboBerserk, xGame.ComboDefensive, xGame.ComboInvis or xGame.ComboSpeed.
To trigger combo adrenaline needs to be at 100 (maximum) and no other combo can be active.
*/
public abstract String getCombo()
;
/**
*
Time when the UDamage effect expires. If the number is higher then the current
time, it means the bot has UDamage effect active right now.
*/
public abstract double getUDamageTime()
;
/**
*
Name of the current BDI action.
*/
public abstract String getAction()
;
/**
*
For UE2. Holds left emoticon of the bot, "None" means none set.
*/
public abstract String getEmotLeft()
;
/**
*
For UE2. Holds center emoticon of the bot, "None" means none set.
*/
public abstract String getEmotCenter()
;
/**
*
For UE2. Holds right emoticon of the bot, "None" means none set.
*/
public abstract String getEmotRight()
;
/**
*
For UE2. Holds the bubble of the emoticon of the bot, "None" means none set.
*/
public abstract String getBubble()
;
/**
*
For UE2. Current played animation of the bot.
*/
public abstract String getAnim()
;
public SelfLocal getLocal() { |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbcommands/SendControlMessage.java | 684 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/ControlMessage.java | 469 |
return super.toString() + "[<br/>" +
"<b>Type</b> = " + String.valueOf(getType()
) + " <br/> " +
"<b>PS1</b> = " + String.valueOf(getPS1()
) + " <br/> " +
"<b>PS2</b> = " + String.valueOf(getPS2()
) + " <br/> " +
"<b>PS3</b> = " + String.valueOf(getPS3()
) + " <br/> " +
"<b>PI1</b> = " + String.valueOf(getPI1()
) + " <br/> " +
"<b>PI2</b> = " + String.valueOf(getPI2()
) + " <br/> " +
"<b>PI3</b> = " + String.valueOf(getPI3()
) + " <br/> " +
"<b>PF1</b> = " + String.valueOf(getPF1()
) + " <br/> " +
"<b>PF2</b> = " + String.valueOf(getPF2()
) + " <br/> " +
"<b>PF3</b> = " + String.valueOf(getPF3()
) + " <br/> " +
"<b>PB1</b> = " + String.valueOf(isPB1()
) + " <br/> " +
"<b>PB2</b> = " + String.valueOf(isPB2()
) + " <br/> " +
"<b>PB3</b> = " + String.valueOf(isPB3()
) + " <br/> " +
"<br/>]";
}
public String toJsonLiteral() { |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/AutoTraceRaySharedImpl.java | 138 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/TeamScoreSharedImpl.java | 187 |
(VehicleShared data, long time, ITeamId teamId)
{
this.object = data;
this.time = time;
this.teamId = teamId;
}
/**
* Simulation time in MILLI SECONDS !!!
*/
@Override
public long getSimTime() {
return this.time;
}
@Override
public WorldObjectId getId() {
return object.getId();
}
@Override
public ITeamId getTeamId() {
return teamId;
}
@Override
public Class getCompositeObjectClass()
{
return object.getCompositeClass();
}
@Override
public Collection<ISharedPropertyUpdatedEvent> getPropertyEvents() {
LinkedList<ISharedPropertyUpdatedEvent> events = new LinkedList<ISharedPropertyUpdatedEvent>();
for ( ISharedProperty property : object.getProperties().values() )
{
if ( property != null)
{
events.push( property.createUpdateEvent(time, teamId) );
}
}
return events;
}
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " + |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/AutoTraceRayMessage.java | 906 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/MyInventoryMessage.java | 648 |
SelfSharedMessage clone() {
return this;
}
protected HashMap<PropertyId, ISharedProperty> propertyMap = new HashMap<PropertyId, ISharedProperty>(
0
);
@Override
public ISharedProperty getProperty(PropertyId id) {
return propertyMap.get(id);
}
@Override
public Map<PropertyId, ISharedProperty> getProperties() {
return propertyMap;
}
/**
* Unique Id of this self message instance.
*/
public UnrealId getId()
{
return Id;
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=shared+classtype[@name=message]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=shared+classtype[@name=message]) ---
}
@Override
public IWorldObjectUpdateResult<IWorldObject> update(IWorldObject object) {
if (object == null)
{
return new IWorldObjectUpdateResult.WorldObjectUpdateResult(IWorldObjectUpdateResult.Result.CREATED, this);
}
if (!( object instanceof SelfMessage) ) { |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/ConfigChangeLocalImpl.java | 212 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/ConfigChangeLocalImpl.java | 273 |
public ConfigChangeLocalImpl(ConfigChangeLocalImpl original) {
this.Id = original.getId()
;
this.BotId = original.getBotId()
;
this.ManualSpawn = original.isManualSpawn()
;
this.AutoTrace = original.isAutoTrace()
;
this.Name = original.getName()
;
this.SpeedMultiplier = original.getSpeedMultiplier()
;
this.RotationRate = original.getRotationRate()
;
this.Invulnerable = original.isInvulnerable()
;
this.SelfUpdateTime = original.getSelfUpdateTime()
;
this.VisionTime = original.getVisionTime()
;
this.LocUpdateMultiplier = original.getLocUpdateMultiplier()
;
this.ShowDebug = original.isShowDebug()
;
this.ShowFocalPoint = original.isShowFocalPoint()
;
this.DrawTraceLines = original.isDrawTraceLines()
;
this.SynchronousOff = original.isSynchronousOff()
;
this.AutoPickupOff = original.isAutoPickupOff()
;
this.Action = original.getAction()
;
this.SimTime = original.getSimTime();
}
/**
* Cloning constructor from the message part.
*
* @param original
*/
public ConfigChangeLocalImpl(ConfigChangeLocal original) { |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/FlagInfoMessage.java | 728 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/FlagInfoSharedImpl.java | 299 |
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"Location = " + String.valueOf(getLocation()
) + " | " +
"Holder = " + String.valueOf(getHolder()
) + " | " +
"Team = " + String.valueOf(getTeam()
) + " | " +
"State = " + String.valueOf(getState()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>Location</b> = " + String.valueOf(getLocation()
) + " <br/> " +
"<b>Holder</b> = " + String.valueOf(getHolder()
) + " <br/> " +
"<b>Team</b> = " + String.valueOf(getTeam()
) + " <br/> " +
"<b>State</b> = " + String.valueOf(getState()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=shared+classtype[@name=impl]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=shared+classtype[@name=impl]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/PlayerMessage.java | 1573 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/PlayerMessage.java | 1868 |
"<b>Visible</b> = " + String.valueOf(isVisible()
) + " <br/> " +
"<b>Rotation</b> = " + String.valueOf(getRotation()
) + " <br/> " +
"<b>Location</b> = " + String.valueOf(getLocation()
) + " <br/> " +
"<b>Velocity</b> = " + String.valueOf(getVelocity()
) + " <br/> " +
"<b>Team</b> = " + String.valueOf(getTeam()
) + " <br/> " +
"<b>Weapon</b> = " + String.valueOf(getWeapon()
) + " <br/> " +
"<b>Crouched</b> = " + String.valueOf(isCrouched()
) + " <br/> " +
"<b>Firing</b> = " + String.valueOf(getFiring()
) + " <br/> " +
"<b>EmotLeft</b> = " + String.valueOf(getEmotLeft()
) + " <br/> " +
"<b>EmotCenter</b> = " + String.valueOf(getEmotCenter()
) + " <br/> " +
"<b>EmotRight</b> = " + String.valueOf(getEmotRight()
) + " <br/> " +
"<b>Bubble</b> = " + String.valueOf(getBubble()
) + " <br/> " +
"<b>Anim</b> = " + String.valueOf(getAnim()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=base+classtype[@name=message]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=base+classtype[@name=message]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/NavPoint.java | 565 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/NavPointStaticImpl.java | 1476 |
"<b>DomPoint</b> = " + String.valueOf(isDomPoint()
) + " <br/> " +
"<b>Door</b> = " + String.valueOf(isDoor()
) + " <br/> " +
"<b>LiftCenter</b> = " + String.valueOf(isLiftCenter()
) + " <br/> " +
"<b>LiftExit</b> = " + String.valueOf(isLiftExit()
) + " <br/> " +
"<b>AIMarker</b> = " + String.valueOf(isAIMarker()
) + " <br/> " +
"<b>JumpSpot</b> = " + String.valueOf(isJumpSpot()
) + " <br/> " +
"<b>JumpPad</b> = " + String.valueOf(isJumpPad()
) + " <br/> " +
"<b>JumpDest</b> = " + String.valueOf(isJumpDest()
) + " <br/> " +
"<b>Teleporter</b> = " + String.valueOf(isTeleporter()
) + " <br/> " +
"<b>Rotation</b> = " + String.valueOf(getRotation()
) + " <br/> " +
"<b>RoamingSpot</b> = " + String.valueOf(isRoamingSpot()
) + " <br/> " +
"<b>SnipingSpot</b> = " + String.valueOf(isSnipingSpot()
) + " <br/> " +
"<b>PreferedWeapon</b> = " + String.valueOf(getPreferedWeapon()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=static+classtype[@name=impl]) ---
/**
* DO NOT USE THIS METHOD! Reserved for GaviaLib (Pogamut core)! It's used
* to set correct item instance into the NavPoint.
*/
public void setItemInstance(Item item) { |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/MyInventory.java | 165 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/MyInventoryMessage.java | 782 |
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"CurrentAmmo = " + String.valueOf(getCurrentAmmo()
) + " | " +
"CurrentAltAmmo = " + String.valueOf(getCurrentAltAmmo()
) + " | " +
"Amount = " + String.valueOf(getAmount()
) + " | " +
"Type = " + String.valueOf(getType()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>CurrentAmmo</b> = " + String.valueOf(getCurrentAmmo()
) + " <br/> " +
"<b>CurrentAltAmmo</b> = " + String.valueOf(getCurrentAltAmmo()
) + " <br/> " +
"<b>Amount</b> = " + String.valueOf(getAmount()
) + " <br/> " +
"<b>Type</b> = " + String.valueOf(getType()
) + " <br/> " +
"<br/>]";
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/FlagInfoMessage.java | 731 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/FlagInfoShared.java | 143 |
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"Location = " + String.valueOf(getLocation()
) + " | " +
"Holder = " + String.valueOf(getHolder()
) + " | " +
"Team = " + String.valueOf(getTeam()
) + " | " +
"State = " + String.valueOf(getState()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>Location</b> = " + String.valueOf(getLocation()
) + " <br/> " +
"<b>Holder</b> = " + String.valueOf(getHolder()
) + " <br/> " +
"<b>Team</b> = " + String.valueOf(getTeam()
) + " <br/> " +
"<b>State</b> = " + String.valueOf(getState()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=shared+classtype[@name=abstract]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=shared+classtype[@name=abstract]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/translator/server/state/ItemListState.java | 55 |
cz/cuni/amis/pogamut/ut2004/communication/translator/server/state/NavPointListState.java | 86 |
if (context.getItems() != null && context.getItems().size() > 0) {
context.processNavPointsAndItems();
if (context.getLogger().isLoggable(Level.FINE)) context.getLogger().fine("Pushing NavPoint events.");
context.getEventQueue().pushEvent(context.getNavPoints().values().toArray(new IWorldChangeEvent[0]));
if (context.getLogger().isLoggable(Level.FINE)) context.getLogger().fine("Pushing Item events.");
context.getEventQueue().pushEvent(context.getItems().values().toArray(new IWorldChangeEvent[0]));
context.getEventQueue().pushEvent(new MapPointListObtained(context.getNavPoints(), context.getItems(), simTime));
} else {
if (context.getLogger().isLoggable(Level.FINE)) context.getLogger().fine("Pushing NavPoint events."); |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/translator/observer/support/ObserverMessageExpectedState.java | 26 |
cz/cuni/amis/pogamut/ut2004/communication/translator/server/support/ServerMessageExpectedState.java | 26 |
public ServerMessageExpectedState(Class expectedMessage) {
message = expectedMessage;
}
@Override
public void init(CONTEXT context) {
}
@Override
public void restart(CONTEXT context) {
}
@Override
public void stateEntering(CONTEXT context,
IFSMState<InfoMessage, CONTEXT> fromState, InfoMessage symbol) {
}
@Override
public void stateLeaving(CONTEXT context, IFSMState<InfoMessage, CONTEXT> toState, InfoMessage symbol) {
if (!symbol.getClass().equals(message)) {
if (!message.isAssignableFrom(symbol.getClass())) {
throw new UnexpectedMessageException(TranslatorMessages.unexpectedMessage(this, symbol), context.getLogger(), this);
}
}
}
@Override
protected void innerStateSymbol(CONTEXT context, InfoMessage symbol) {
throw new UnexpectedMessageException(TranslatorMessages.unexpectedMessage(this, symbol), context.getLogger(), this);
}
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/translator/observer/state/NavPointListState.java | 86 |
cz/cuni/amis/pogamut/ut2004/communication/translator/server/state/ItemListState.java | 55 |
if (context.getNavPoints() != null && context.getNavPoints().size() != 0) {
context.processNavPointsAndItems();
if (context.getLogger().isLoggable(Level.FINE)) context.getLogger().fine("Pushing NavPoint events.");
context.getEventQueue().pushEvent(context.getNavPoints().values().toArray(new IWorldChangeEvent[0]));
if (context.getLogger().isLoggable(Level.FINE)) context.getLogger().fine("Pushing Item events.");
context.getEventQueue().pushEvent(context.getItems().values().toArray(new IWorldChangeEvent[0]));
context.getEventQueue().pushEvent(new MapPointListObtained(context.getNavPoints(), context.getItems(), simTime));
} else {
if (context.getLogger().isLoggable(Level.FINE)) context.getLogger().fine("Pushing Item events."); |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/Player.java | 391 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/PlayerShared.java | 330 |
"<b>Action</b> = " + String.valueOf(getAction()
) + " <br/> " +
"<b>Rotation</b> = " + String.valueOf(getRotation()
) + " <br/> " +
"<b>Location</b> = " + String.valueOf(getLocation()
) + " <br/> " +
"<b>Velocity</b> = " + String.valueOf(getVelocity()
) + " <br/> " +
"<b>Team</b> = " + String.valueOf(getTeam()
) + " <br/> " +
"<b>Weapon</b> = " + String.valueOf(getWeapon()
) + " <br/> " +
"<b>Crouched</b> = " + String.valueOf(isCrouched()
) + " <br/> " +
"<b>Firing</b> = " + String.valueOf(getFiring()
) + " <br/> " +
"<b>EmotLeft</b> = " + String.valueOf(getEmotLeft()
) + " <br/> " +
"<b>EmotCenter</b> = " + String.valueOf(getEmotCenter()
) + " <br/> " +
"<b>EmotRight</b> = " + String.valueOf(getEmotRight()
) + " <br/> " +
"<b>Bubble</b> = " + String.valueOf(getBubble()
) + " <br/> " +
"<b>Anim</b> = " + String.valueOf(getAnim()
) + " <br/> " +
"<br/>]";
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/NavPoint.java | 565 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/NavPointMessage.java | 2072 |
"<b>DomPoint</b> = " + String.valueOf(isDomPoint()
) + " <br/> " +
"<b>Door</b> = " + String.valueOf(isDoor()
) + " <br/> " +
"<b>LiftCenter</b> = " + String.valueOf(isLiftCenter()
) + " <br/> " +
"<b>LiftExit</b> = " + String.valueOf(isLiftExit()
) + " <br/> " +
"<b>AIMarker</b> = " + String.valueOf(isAIMarker()
) + " <br/> " +
"<b>JumpSpot</b> = " + String.valueOf(isJumpSpot()
) + " <br/> " +
"<b>JumpPad</b> = " + String.valueOf(isJumpPad()
) + " <br/> " +
"<b>JumpDest</b> = " + String.valueOf(isJumpDest()
) + " <br/> " +
"<b>Teleporter</b> = " + String.valueOf(isTeleporter()
) + " <br/> " +
"<b>Rotation</b> = " + String.valueOf(getRotation()
) + " <br/> " +
"<b>RoamingSpot</b> = " + String.valueOf(isRoamingSpot()
) + " <br/> " +
"<b>SnipingSpot</b> = " + String.valueOf(isSnipingSpot()
) + " <br/> " +
"<b>PreferedWeapon</b> = " + String.valueOf(getPreferedWeapon()
) + " <br/> " +
"<br/>]";
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/translator/itemdescriptor/AmmoDescriptor.java | 66 |
cz/cuni/amis/pogamut/ut2004/communication/translator/itemdescriptor/WeaponDescriptor.java | 456 |
}
/**
* Initial amount of ammunition. We get this if we pick up the item for the
* first time.
*
* @return priInitialAmount
*/
public int getPriInitialAmount() {
return priInitialAmount;
}
/**
* Maximum amount of this ammunition we can hold in our inventory.
*
* @return priMaxAmount
*/
public int getPriMaxAmount() {
return priMaxAmount;
}
/**
* Maximum firing range. 0 if not limited - probably.
*
* @return priMaxRange
* @todo Find out how this works.
*/
public double getPriMaxRange() {
return priMaxRange;
}
/**
* Class of this ammunitions damage type. If ammo is not none, then this
* shouldn't be none either.
*
* @return priDamageType
*/
public String getPriDamageType() {
return priDamageType;
}
/**
* If this damage can be stopped by an armor.
*
* @return priArmorStops
*/
public boolean isPriArmorStops() {
return priArmorStops;
}
/**
* If this damage will kill us instantly.
*
* @return priAlwaysGibs
*/
public boolean isPriAlwaysGibs() {
return priAlwaysGibs;
}
/**
* If this damage is special.
*
* @return priSpecial
* @todo find out what it is.
*/
public boolean isPriSpecial() {
return priSpecial;
}
/**
* If this damage can detonate goop created by bio rifle (not sure).
*
* @return priDetonatesGoop
* @todo Find out correct info.
*/
public boolean isPriDetonatesGoop() {
return priDetonatesGoop;
}
/**
* If this damage is caused by super weapon and will damage also team mates
* even if friendly fire is off.
*
* @return priSuperWeapon
*/
public boolean isPriSuperWeapon() {
return priSuperWeapon;
}
/**
* If the hit by this damage will add some speed to the target (will "push"
* the target a bit).
*
* @return priExtraMomZ
*/
public boolean isPriExtraMomZ() {
return priExtraMomZ;
}
/**
* Holds the class of the projectile of this firing mode. If none, then the
* mode does not spawn projectiles. all the info below is then not relevant
* and will have default values on.
*
* @return priProjType
*/
public String getPriProjType() {
return priProjType;
}
/**
* Damage of the projectile.
*
* @return priDamage
*/
public double getPriDamage() {
return priDamage;
}
/**
* Default speed of the projectile - probably the projectile has this speed
* when fired.
*
* @return priSpeed
*/
public double getPriSpeed() {
return priSpeed;
}
/**
* Maximum possible speed of this projectile.
*
* @return priMaxSpeed
*/
public double getPriMaxSpeed() {
return priMaxSpeed;
}
/**
* Life span of this projectile. How long the projectile lasts in the
* environment. If 0 than probably unlimited.
*
* @return priLifeSpan
*/
public double getPriLifeSpan() {
return priLifeSpan;
}
/**
* If the projectile does splash damage, the value here won't be zero and
* will specify the radius of the splash damage in ut units.
*
* @return priDamageRadius
*/
public double getPriDamageRadius() {
return priDamageRadius;
}
/**
* Probably the amount of speed added to Z velocity vector when this
* projectile is fired. In UT units.
*
* @return priTossZ
* @todo Find out correct info.
*/
public double getPriTossZ() {
return priTossZ;
}
/**
* Maximum effective distance of the projectile. Probably 0 if not limited.
*
* @return priMaxEffectDistance
* @todo Find out correct info.
*/
public double getPriMaxEffectDistance() {
return priMaxEffectDistance;
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/AliveMessageSharedImpl.java | 119 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/ConfigChangeSharedImpl.java | 131 |
(GameInfoShared data, long time, ITeamId teamId)
{
this.object = data;
this.time = time;
this.teamId = teamId;
}
/**
* Simulation time in MILLI SECONDS !!!
*/
@Override
public long getSimTime() {
return this.time;
}
@Override
public WorldObjectId getId() {
return object.getId();
}
@Override
public ITeamId getTeamId() {
return teamId;
}
@Override
public Class getCompositeObjectClass()
{
return object.getCompositeClass();
}
@Override
public Collection<ISharedPropertyUpdatedEvent> getPropertyEvents() {
LinkedList<ISharedPropertyUpdatedEvent> events = new LinkedList<ISharedPropertyUpdatedEvent>();
for ( ISharedProperty property : object.getProperties().values() )
{
if ( property != null)
{
events.push( property.createUpdateEvent(time, teamId) );
}
}
return events;
}
}
public String toString() {
return
super.toString() + "[" + |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/ConfigChangeLocalImpl.java | 212 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/ConfigChangeMessage.java | 214 |
public ConfigChangeMessage(ConfigChangeMessage original) {
this.Id = original.getId()
;
this.BotId = original.getBotId()
;
this.ManualSpawn = original.isManualSpawn()
;
this.AutoTrace = original.isAutoTrace()
;
this.Name = original.getName()
;
this.SpeedMultiplier = original.getSpeedMultiplier()
;
this.RotationRate = original.getRotationRate()
;
this.Invulnerable = original.isInvulnerable()
;
this.SelfUpdateTime = original.getSelfUpdateTime()
;
this.VisionTime = original.getVisionTime()
;
this.LocUpdateMultiplier = original.getLocUpdateMultiplier()
;
this.ShowDebug = original.isShowDebug()
;
this.ShowFocalPoint = original.isShowFocalPoint()
;
this.DrawTraceLines = original.isDrawTraceLines()
;
this.SynchronousOff = original.isSynchronousOff()
;
this.AutoPickupOff = original.isAutoPickupOff()
;
this.Action = original.getAction()
;
this.TeamId = original.getTeamId(); |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/translator/observer/state/ItemListState.java | 31 |
cz/cuni/amis/pogamut/ut2004/communication/translator/server/state/ItemListState.java | 31 |
public class ItemListState extends ServerListState<Item, TranslatorContext> {
public ItemListState() {
super(ItemListStart.class, Item.class, ItemListEnd.class);
}
@Override
public void stateLeaving(TranslatorContext translatorContext,
IFSMState<InfoMessage, TranslatorContext> toState, InfoMessage symbol) {
long simTime =
(symbol instanceof IWorldChangeEvent ? ((IWorldChangeEvent)symbol).getSimTime() : 0);
processItems(translatorContext.getNavPoints(), getList(), translatorContext, simTime);
newList();
}
private void processItems(Map<UnrealId, NavPoint> origNavPoints, List<Item> list, TranslatorContext context, long simTime) {
Map<UnrealId, Item> items = new HashMap<UnrealId, Item>();
for (Item item : list) {
items.put(item.getId(), item);
}
context.setItems(items); |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/translator/observer/state/PathAcceptState.java | 28 |
cz/cuni/amis/pogamut/ut2004/communication/translator/server/state/PathAcceptState.java | 28 |
public class PathAcceptState extends ServerListState<PathList, TranslatorContext> {
private String pathId = null;
public PathAcceptState() {
super(PathListStart.class, PathList.class, PathListEnd.class);
}
@Override
public void stateEntering(TranslatorContext context, IFSMState<InfoMessage, TranslatorContext> fromState, InfoMessage symbol) {
super.stateEntering(context, fromState, symbol);
pathId = ((PathListStart)symbol).getMessageId();
}
@Override
public void stateLeaving(TranslatorContext context, IFSMState<InfoMessage, TranslatorContext> toState, InfoMessage symbol) {
super.stateLeaving(context, toState, symbol);
long simTime =
(symbol instanceof IWorldChangeEvent ? ((IWorldChangeEvent)symbol).getSimTime() : 0);
context.getEventQueue().pushEvent(new Path(pathId, getList(), simTime));
getList().clear();
}
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/translator/observer/state/ItemListState.java | 58 |
cz/cuni/amis/pogamut/ut2004/communication/translator/observer/state/NavPointListState.java | 88 |
if (context.getLogger().isLoggable(Level.FINE)) context.getLogger().fine("Pushing NavPoint events.");
context.getEventQueue().pushEvent(context.getNavPoints().values().toArray(new IWorldChangeEvent[0]));
if (context.getLogger().isLoggable(Level.FINE)) context.getLogger().fine("Pushing Item events.");
context.getEventQueue().pushEvent(context.getItems().values().toArray(new IWorldChangeEvent[0]));
context.getEventQueue().pushEvent(new MapPointListObtained(context.getNavPoints(), context.getItems(), simTime));
} else {
if (context.getLogger().isLoggable(Level.FINE)) context.getLogger().fine("Pushing NavPoint events."); |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/translator/bot/state/PathAcceptState.java | 33 |
cz/cuni/amis/pogamut/ut2004/communication/translator/observer/state/PathAcceptState.java | 28 |
public class PathAcceptState extends ObserverListState<PathList, TranslatorContext> {
private String pathId = null;
public PathAcceptState() {
super(PathListStart.class, PathList.class, PathListEnd.class);
}
@Override
public void stateEntering(TranslatorContext context, IFSMState<InfoMessage, TranslatorContext> fromState, InfoMessage symbol) {
super.stateEntering(context, fromState, symbol);
pathId = ((PathListStart)symbol).getMessageId();
}
@Override
public void stateLeaving(TranslatorContext context, IFSMState<InfoMessage, TranslatorContext> toState, InfoMessage symbol) {
super.stateLeaving(context, toState, symbol);
long simTime =
(symbol instanceof IWorldChangeEvent ? ((IWorldChangeEvent)symbol).getSimTime() : 0);
context.getEventQueue().pushEvent(new Path(pathId, getList(), simTime));
getList().clear();
}
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/ConfigChangeLocalImpl.java | 212 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/ConfigChangeLocalImpl.java | 334 |
public ConfigChangeLocalImpl(ConfigChangeLocal original) {
this.Id = original.getId()
;
this.BotId = original.getBotId()
;
this.ManualSpawn = original.isManualSpawn()
;
this.AutoTrace = original.isAutoTrace()
;
this.Name = original.getName()
;
this.SpeedMultiplier = original.getSpeedMultiplier()
;
this.RotationRate = original.getRotationRate()
;
this.Invulnerable = original.isInvulnerable()
;
this.SelfUpdateTime = original.getSelfUpdateTime()
;
this.VisionTime = original.getVisionTime()
;
this.LocUpdateMultiplier = original.getLocUpdateMultiplier()
;
this.ShowDebug = original.isShowDebug()
;
this.ShowFocalPoint = original.isShowFocalPoint()
;
this.DrawTraceLines = original.isDrawTraceLines()
;
this.SynchronousOff = original.isSynchronousOff()
;
this.AutoPickupOff = original.isAutoPickupOff()
;
this.Action = original.getAction() |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/translator/bot/state/PasswordState.java | 32 |
cz/cuni/amis/pogamut/ut2004/communication/translator/server/state/PasswordState.java | 31 |
public class PasswordState extends AbstractObserverFSMState<InfoMessage, TranslatorContext> {
@Override
public void init(TranslatorContext context) {
}
@Override
public void restart(TranslatorContext context) {
}
@Override
public void stateEntering(TranslatorContext context,
IFSMState<InfoMessage, TranslatorContext> fromState,
InfoMessage symbol) {
if (!(symbol instanceof Password)) throw new UnexpectedMessageException(TranslatorMessages.unexpectedMessage(this, symbol, Password.class), context.getLogger(), this);
if (!(symbol instanceof IWorldChangeEvent)) throw new UnexpectedMessageException(TranslatorMessages.messageNotWorldEvent(this, symbol), context.getLogger(), this);
context.getEventQueue().pushEvent((IWorldChangeEvent)symbol);
}
@Override
public void stateLeaving(TranslatorContext context,
IFSMState<InfoMessage, TranslatorContext> toState, InfoMessage symbol) {
}
@Override |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/BombInfoLocalImpl.java | 248 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/NavPointLocalImpl.java | 302 |
throw new PogamutException("Unsupported object type for update. Expected VehicleLocalImpl for object " + object.getId() +", not object of class " + object.getClass().getSimpleName() + ".", this);
}
/**
* Simulation time in MILLI SECONDS !!!
*/
@Override
public long getSimTime() {
return this.time;
}
@Override
public IWorldObject getObject() {
return data;
}
@Override
public WorldObjectId getId() {
return data.getId();
}
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"Visible = " + String.valueOf(isVisible()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>Visible</b> = " + String.valueOf(isVisible()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=local+classtype[@name=impl]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=local+classtype[@name=impl]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/custom/ControlMessageMapper.java | 204 |
cz/cuni/amis/pogamut/ut2004/communication/messages/custom/SendControlMessageMapper.java | 177 |
throw new RuntimeException("Cannot create SendControlMessageDeserializer for " + customControlMessageClass + " as field " + field.getDeclaringClass() + "." + field.getName() + " contains annotation ControlMessageParam(index=" + info.index() + "), unsupported. 1 <= index <= 3.");
}
Map<Integer, Field> map;
if (field.getType() == Integer.class) {
map = integers;
} else
if (field.getType() == Double.class) {
map = doubles;
} else
if (field.getType() == String.class) {
map = strings;
} else
if (field.getType() == Boolean.class) {
map = booleans;
} else
if (field.getType() == UnrealId.class) {
map = strings;
} else
if (field.getType() == Location.class) {
map = strings;
} else {
throw new RuntimeException("Cannot create SendControlMessageDeserializer for " + customControlMessageClass + " as field " + field.getDeclaringClass() + "." + field.getName() + " is of invalid type " + field.getType() + ", only Integer, Double, String, Boolean, UnrealId, Location is supported."); |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/agent/navigation/navmesh/NavMesh.java | 1171 |
cz/cuni/amis/pogamut/ut2004/agent/navigation/navmesh/NavMesh.java | 1260 |
NavMeshPolygon polygon2 = (NavMeshPolygon)lastAtom;
int[] p1 = this.getPolygon(polygon.getPolygonId());
int[] p2 = this.getPolygon(polygon2.getPolygonId());
int v1 = -1;
int v2 = -1;
outer: for(int i = 0; i < p1.length; i++) {
for(int j = 0; j < p2.length; j++) {
if(p1[i]==p2[j]) {
if(v1==-1) {
v1 = p1[i];
}
else {
if(p1[i]!=v1) v2 = p1[i];
break outer;
}
}
}
}
double[] vv1 = getVertex(v1);
double[] vv2 = getVertex(v2); |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/translator/observer/state/ObserverRunningState.java | 26 |
cz/cuni/amis/pogamut/ut2004/communication/translator/server/state/ServerRunningState.java | 26 |
@FSMState(map = {
@FSMTransition(
state=ItemCategoryState.class,
symbol={ItemCategoryStart.class},
transition={}
),
@FSMTransition(
state=MutatorListState.class,
symbol={MutatorListStart.class},
transition={}),
@FSMTransition(
state = NavPointListState.class,
symbol = { NavPointListStart.class },
transition = {}
),
@FSMTransition(
state = ItemListState.class,
symbol = { ItemListStart.class },
transition = {}
),
@FSMTransition(
state = PlayerListState.class,
symbol = { PlayerListStart.class },
transition = {}
),
@FSMTransition(
state = MapListState.class,
symbol = { MapListStart.class },
transition = {}
)
}
)
public class ServerRunningState extends AbstractServerFSMState<InfoMessage, TranslatorContext> { |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/translator/bot/state/NavPointListState.java | 86 |
cz/cuni/amis/pogamut/ut2004/communication/translator/server/state/NavPointListState.java | 105 |
protected void innerStateSymbol(TranslatorContext context, InfoMessage symbol) {
if (!symbol.getClass().equals(NavPoint.class)) {
if (!NavPoint.class.isAssignableFrom(symbol.getClass())) {
throw new UnexpectedMessageException(TranslatorMessages.unexpectedMessage(this, symbol, NavPoint.class), context.getLogger(), this);
}
}
currentNavPoint = (NavPoint)symbol;
}
@Override
public void init(TranslatorContext context) {
}
@Override
public void restart(TranslatorContext context) {
currentNavPoint = null;
begun = false;
navPoints = new HashMap<UnrealId, NavPoint>(navPoints.size() + 20);
neighbours = new HashMap<UnrealId, List<NavPointNeighbourLink>>(neighbours.size() + 20);
}
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/agent/navigation/navmesh/NavMesh.java | 217 |
cz/cuni/amis/pogamut/ut2004/agent/navigation/navmesh/NavMesh.java | 238 |
int[] p = (int[]) polys.get(polygonNumber);
for(int j = 0; j<p.length; j++) {
if(result.length()>0) result.append(";");
// ziskame vrcholy v1 a v2 mezi kterymi vykreslime caru
double[] v1,v2;
v1 = (double[]) verts.get(p[j]);
if(j==p.length-1) v2 = (double[]) verts.get(p[0]);
else v2 = (double[]) verts.get(p[j+1]);
// pridani cary
result.append(v1[0]+","+v1[1]+","+v1[2]+";"+v2[0]+","+v2[1]+","+v2[2]);
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/translator/bot/state/ItemCategoryState.java | 30 |
cz/cuni/amis/pogamut/ut2004/communication/translator/server/state/ItemCategoryState.java | 29 |
public class ItemCategoryState extends AbstractObserverFSMState<InfoMessage, TranslatorContext>{
@Override
public void init(TranslatorContext context) {
}
@Override
public void restart(TranslatorContext context) {
}
@Override
public void stateEntering(TranslatorContext context,
IFSMState<InfoMessage, TranslatorContext> fromState,
InfoMessage symbol) {
if (!(symbol instanceof ItemCategoryStart)) throw new UnexpectedMessageException(TranslatorMessages.unexpectedMessage(this, symbol, ItemCategoryStart.class), context.getLogger(), this);
}
@Override
public void stateLeaving(TranslatorContext context,
IFSMState<InfoMessage, TranslatorContext> toState, InfoMessage symbol) {
if (!(symbol instanceof ItemCategoryEnd)) throw new UnexpectedMessageException(TranslatorMessages.unexpectedMessage(this, symbol, ItemCategoryEnd.class), context.getLogger(), this);
}
@Override |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/LocationUpdateLocal.java | 115 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/LocationUpdateMessage.java | 649 |
(this.getStatic(), SimTime);
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"Loc = " + String.valueOf(getLoc()
) + " | " +
"Vel = " + String.valueOf(getVel()
) + " | " +
"Rot = " + String.valueOf(getRot()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>Loc</b> = " + String.valueOf(getLoc()
) + " <br/> " +
"<b>Vel</b> = " + String.valueOf(getVel()
) + " <br/> " +
"<b>Rot</b> = " + String.valueOf(getRot()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=base+classtype[@name=message]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=base+classtype[@name=message]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/LocationUpdate.java | 145 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/LocationUpdateLocalImpl.java | 345 |
return data.getId();
}
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"Loc = " + String.valueOf(getLoc()
) + " | " +
"Vel = " + String.valueOf(getVel()
) + " | " +
"Rot = " + String.valueOf(getRot()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>Loc</b> = " + String.valueOf(getLoc()
) + " <br/> " +
"<b>Vel</b> = " + String.valueOf(getVel()
) + " <br/> " +
"<b>Rot</b> = " + String.valueOf(getRot()
) + " <br/> " +
"<br/>]";
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/translator/bot/state/MutatorListState.java | 28 |
cz/cuni/amis/pogamut/ut2004/communication/translator/observer/state/MutatorListState.java | 28 |
public class MutatorListState extends ObserverListState<Mutator, TranslatorContext>{
public MutatorListState() {
super(MutatorListStart.class, Mutator.class, MutatorListEnd.class);
}
@Override
public void stateEntering(TranslatorContext context, IFSMState<InfoMessage, TranslatorContext> fromState, InfoMessage symbol) {
super.restart(context);
super.stateEntering(context, fromState, symbol);
}
@Override
public void stateLeaving(TranslatorContext context, IFSMState<InfoMessage, TranslatorContext> toState, InfoMessage symbol) {
super.stateLeaving(context, toState, symbol);
long simTime =
(symbol instanceof IWorldChangeEvent ? ((IWorldChangeEvent)symbol).getSimTime() : 0);
context.getEventQueue().pushEvent(new MutatorListObtained(getList(), simTime));
newList();
}
@Override |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/TeamScoreMessage.java | 336 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/TeamScoreStaticImpl.java | 192 |
}
@Override
public boolean isDifferentFrom(IStaticWorldObject other)
{
if (other == null) //early fail
{
return true;
}
else if (other == this) //early out
{
return false;
}
else
{
TeamScoreStatic obj = (TeamScoreStatic) other;
if ( !(
AdvancedEquals.equalsOrNull(this.getId()
, obj.getId()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Id on object class TeamScoreStatic");
return true;
}
}
return false;
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=static+classtype[@name=impl]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=static+classtype[@name=impl]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/SelfMessage.java | 1838 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/SelfStaticImpl.java | 244 |
}
@Override
public boolean isDifferentFrom(IStaticWorldObject other)
{
if (other == null) //early fail
{
return true;
}
else if (other == this) //early out
{
return false;
}
else
{
SelfStatic obj = (SelfStatic) other;
if ( !(
AdvancedEquals.equalsOrNull(this.getId()
, obj.getId()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Id on object class SelfStatic");
return true;
}
}
return false;
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=static+classtype[@name=impl]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=static+classtype[@name=impl]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/PlayerMessage.java | 951 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/PlayerStaticImpl.java | 226 |
}
@Override
public boolean isDifferentFrom(IStaticWorldObject other)
{
if (other == null) //early fail
{
return true;
}
else if (other == this) //early out
{
return false;
}
else
{
PlayerStatic obj = (PlayerStatic) other;
if ( !(
AdvancedEquals.equalsOrNull(this.getId()
, obj.getId()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Id on object class PlayerStatic");
return true;
}
}
return false;
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=static+classtype[@name=impl]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=static+classtype[@name=impl]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/Player.java | 461 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/Vehicle.java | 349 |
)
+ ", " +
(getRotation()
== null ? "null" :
"[" + getRotation()
.getPitch() + ", " + getRotation()
.getYaw() + ", " + getRotation()
.getRoll() + "]"
)
+ ", " +
(getLocation()
== null ? "null" :
"[" + getLocation()
.getX() + ", " + getLocation()
.getY() + ", " + getLocation()
.getZ() + "]"
)
+ ", " +
(getVelocity()
== null ? "null" :
"[" + getVelocity()
.getX() + ", " + getVelocity()
.getY() + ", " + getVelocity()
.getZ() + "]"
)
+ ", " +
String.valueOf(isVisible() |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/NavPointMessage.java | 1367 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/VehicleMessage.java | 578 |
public VehicleLocalMessage getLocal() {
return this;
}
public ISharedWorldObject getShared() {
throw new UnsupportedOperationException("Could not return LOCAL as SHARED");
}
public IStaticWorldObject getStatic() {
throw new UnsupportedOperationException("Could not return LOCAL as STATIC");
}
/**
* Unique Id of the vehicle or vehicle part.
*/
public UnrealId getId()
{
return Id;
}
/**
*
If the vehicle is in the field of view of the bot.
*/
public boolean isVisible()
{
return Visible;
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"Visible = " + String.valueOf(isVisible()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>Visible</b> = " + String.valueOf(isVisible()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=local+classtype[@name=message]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=local+classtype[@name=message]) ---
}
/**
*
Implementation of the static part of the GameBots2004 message VEH, used
to facade VEHMessage.
*
* <p></p><p></p>
* Complete message documentation:
*
Synchronous message. Holds vehicles we see. Id for vehicles doesn't work, so
this message is without Id. We can join vehicles by ENTER command if we are
close enough - ussually 100 ut units or less. Note: Vehicle support is
in aplha testing right now.
*/
public class VehicleStaticMessage |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/MyInventoryLocal.java | 117 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/MyInventoryMessage.java | 428 |
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"CurrentAmmo = " + String.valueOf(getCurrentAmmo()
) + " | " +
"CurrentAltAmmo = " + String.valueOf(getCurrentAltAmmo()
) + " | " +
"Amount = " + String.valueOf(getAmount()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>CurrentAmmo</b> = " + String.valueOf(getCurrentAmmo()
) + " <br/> " +
"<b>CurrentAltAmmo</b> = " + String.valueOf(getCurrentAltAmmo()
) + " <br/> " +
"<b>Amount</b> = " + String.valueOf(getAmount()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=local+classtype[@name=message]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=local+classtype[@name=message]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/MoverMessage.java | 1154 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/MoverSharedImpl.java | 257 |
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"Location = " + String.valueOf(getLocation()
) + " | " +
"Velocity = " + String.valueOf(getVelocity()
) + " | " +
"State = " + String.valueOf(getState()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>Location</b> = " + String.valueOf(getLocation()
) + " <br/> " +
"<b>Velocity</b> = " + String.valueOf(getVelocity()
) + " <br/> " +
"<b>State</b> = " + String.valueOf(getState()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=shared+classtype[@name=impl]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=shared+classtype[@name=impl]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/MoverMessage.java | 635 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/VehicleMessage.java | 578 |
public NavPointLocalMessage getLocal() {
return this;
}
public ISharedWorldObject getShared() {
throw new UnsupportedOperationException("Could not return LOCAL as SHARED");
}
public IStaticWorldObject getStatic() {
throw new UnsupportedOperationException("Could not return LOCAL as STATIC");
}
/**
*
A unique Id of this navigation point assigned by the game.
*/
public UnrealId getId()
{
return Id;
}
/**
*
If the point is in the field of view of the bot.
*/
public boolean isVisible()
{
return Visible;
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"Visible = " + String.valueOf(isVisible()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>Visible</b> = " + String.valueOf(isVisible()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=local+classtype[@name=message]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=local+classtype[@name=message]) ---
}
/**
*
Implementation of the static part of the GameBots2004 message NAV, used
to facade NAVMessage.
*
* <p></p><p></p>
* Complete message documentation:
*
Synchronous message - however only NavPoints marking item pickup locations are exported synchronously. Other NavPoints are not exported synchronously at all, even if the bot can actually see them (but note that ALL NavPoints are exported in the handshake between bot and the server). Exporting NavPoints synchronously took a lot of UT server resources with limited information gain (in Pogamut there is now available visibility matrix holding static information which points can be seen from other points). NavPoint carries information about UT navigation point - location, paths and some additional information are stored there (if it is an ambush point, or sniper point, etc.).
*/
public class NavPointStaticMessage |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/LocationUpdateMessage.java | 427 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/LocationUpdateStaticImpl.java | 194 |
}
@Override
public boolean isDifferentFrom(IStaticWorldObject other)
{
if (other == null) //early fail
{
return true;
}
else if (other == this) //early out
{
return false;
}
else
{
LocationUpdateStatic obj = (LocationUpdateStatic) other;
if ( !(
AdvancedEquals.equalsOrNull(this.getId()
, obj.getId()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Id on object class LocationUpdateStatic");
return true;
}
}
return false;
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=static+classtype[@name=impl]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=static+classtype[@name=impl]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/LocationUpdateLocal.java | 116 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/LocationUpdateMessage.java | 346 |
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"Loc = " + String.valueOf(getLoc()
) + " | " +
"Vel = " + String.valueOf(getVel()
) + " | " +
"Rot = " + String.valueOf(getRot()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>Loc</b> = " + String.valueOf(getLoc()
) + " <br/> " +
"<b>Vel</b> = " + String.valueOf(getVel()
) + " <br/> " +
"<b>Rot</b> = " + String.valueOf(getRot()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=local+classtype[@name=message]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=local+classtype[@name=message]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/ItemMessage.java | 506 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/MoverMessage.java | 635 |
public MoverLocalMessage getLocal() {
return this;
}
public ISharedWorldObject getShared() {
throw new UnsupportedOperationException("Could not return LOCAL as SHARED");
}
public IStaticWorldObject getStatic() {
throw new UnsupportedOperationException("Could not return LOCAL as STATIC");
}
/**
*
A unique Id of this mover assigned by the game.
*/
public UnrealId getId()
{
return Id;
}
/**
* If the mover is in the field of view of the bot.
*/
public boolean isVisible()
{
return Visible;
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"Visible = " + String.valueOf(isVisible()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>Visible</b> = " + String.valueOf(isVisible()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=local+classtype[@name=message]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=local+classtype[@name=message]) ---
}
/**
*
Implementation of the static part of the GameBots2004 message MOV, used
to facade MOVMessage.
*
* <p></p><p></p>
* Complete message documentation:
*
Synchronous message. Movers can be doors, elevators, or any
other chunk of architecture that can move. They generally need
to be either run into, or activated by shooting or pressing a
button. We are working on ways to provide bots with more of the
information they need to deal with movers appropriately.
*/
public class MoverStaticMessage |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/IncomingProjectileMessage.java | 649 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/IncomingProjectileStaticImpl.java | 206 |
}
@Override
public boolean isDifferentFrom(IStaticWorldObject other)
{
if (other == null) //early fail
{
return true;
}
else if (other == this) //early out
{
return false;
}
else
{
IncomingProjectileStatic obj = (IncomingProjectileStatic) other;
if ( !(
AdvancedEquals.equalsOrNull(this.getId()
, obj.getId()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Id on object class IncomingProjectileStatic");
return true;
}
}
return false;
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=static+classtype[@name=impl]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=static+classtype[@name=impl]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/FlagInfoMessage.java | 481 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/FlagInfoStaticImpl.java | 206 |
}
@Override
public boolean isDifferentFrom(IStaticWorldObject other)
{
if (other == null) //early fail
{
return true;
}
else if (other == this) //early out
{
return false;
}
else
{
FlagInfoStatic obj = (FlagInfoStatic) other;
if ( !(
AdvancedEquals.equalsOrNull(this.getId()
, obj.getId()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Id on object class FlagInfoStatic");
return true;
}
}
return false;
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=static+classtype[@name=impl]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=static+classtype[@name=impl]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/FlagInfoMessage.java | 383 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/MoverMessage.java | 635 |
public ItemLocalMessage getLocal() {
return this;
}
public ISharedWorldObject getShared() {
throw new UnsupportedOperationException("Could not return LOCAL as SHARED");
}
public IStaticWorldObject getStatic() {
throw new UnsupportedOperationException("Could not return LOCAL as STATIC");
}
/**
*
Unique Id of the item. This Id represents just item on the
map, not in our inventory.
*/
public UnrealId getId()
{
return Id;
}
/**
*
If the item is in the field of view of the bot.
*/
public boolean isVisible()
{
return Visible;
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"Visible = " + String.valueOf(isVisible()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>Visible</b> = " + String.valueOf(isVisible()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=local+classtype[@name=message]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=local+classtype[@name=message]) ---
}
/**
*
Implementation of the static part of the GameBots2004 message INV, used
to facade INVMessage.
*
* <p></p><p></p>
* Complete message documentation:
*
Synchronous/asynchronous message. An object on the ground that
can be picked up.
*/
public class ItemStaticMessage |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/EntityMessage.java | 736 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/EntitySharedImpl.java | 253 |
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"Location = " + String.valueOf(getLocation()
) + " | " +
"Rotation = " + String.valueOf(getRotation()
) + " | " +
"Velocity = " + String.valueOf(getVelocity()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>Location</b> = " + String.valueOf(getLocation()
) + " <br/> " +
"<b>Rotation</b> = " + String.valueOf(getRotation()
) + " <br/> " +
"<b>Velocity</b> = " + String.valueOf(getVelocity()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=shared+classtype[@name=impl]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=shared+classtype[@name=impl]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/EntityMessage.java | 389 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/ItemMessage.java | 506 |
public FlagInfoLocalMessage getLocal() {
return this;
}
public ISharedWorldObject getShared() {
throw new UnsupportedOperationException("Could not return LOCAL as SHARED");
}
public IStaticWorldObject getStatic() {
throw new UnsupportedOperationException("Could not return LOCAL as STATIC");
}
/**
*
An unique Id for this flag, assigned by the game.
*/
public UnrealId getId()
{
return Id;
}
/**
* True if the bot can see the flag.
*/
public boolean isVisible()
{
return Visible;
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"Visible = " + String.valueOf(isVisible()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>Visible</b> = " + String.valueOf(isVisible()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=local+classtype[@name=message]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=local+classtype[@name=message]) ---
}
/**
*
Implementation of the static part of the GameBots2004 message FLG, used
to facade FLGMessage.
*
* <p></p><p></p>
* Complete message documentation:
*
Synchronous message. FlagInfo contains all info about the flag
in the CTF game mode. Is not sent in other game types.
*/
public class FlagInfoStaticMessage |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/ConfigChangeMessage.java | 1174 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/ConfigChangeStaticImpl.java | 224 |
}
@Override
public boolean isDifferentFrom(IStaticWorldObject other)
{
if (other == null) //early fail
{
return true;
}
else if (other == this) //early out
{
return false;
}
else
{
ConfigChangeStatic obj = (ConfigChangeStatic) other;
if ( !(
AdvancedEquals.equalsOrNull(this.getId()
, obj.getId()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Id on object class ConfigChangeStatic");
return true;
}
}
return false;
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=static+classtype[@name=impl]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=static+classtype[@name=impl]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/ConfigChangeLocalImpl.java | 167 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/ConfigChangeMessage.java | 169 |
public ConfigChangeMessage(
UnrealId Id, UnrealId BotId, boolean ManualSpawn, boolean AutoTrace, String Name, double SpeedMultiplier, Rotation RotationRate, boolean Invulnerable, double SelfUpdateTime, double VisionTime, int LocUpdateMultiplier, boolean ShowDebug, boolean ShowFocalPoint, boolean DrawTraceLines, boolean SynchronousOff, boolean AutoPickupOff, String Action
) {
this.Id = Id;
this.BotId = BotId;
this.ManualSpawn = ManualSpawn;
this.AutoTrace = AutoTrace;
this.Name = Name;
this.SpeedMultiplier = SpeedMultiplier;
this.RotationRate = RotationRate;
this.Invulnerable = Invulnerable;
this.SelfUpdateTime = SelfUpdateTime;
this.VisionTime = VisionTime;
this.LocUpdateMultiplier = LocUpdateMultiplier;
this.ShowDebug = ShowDebug;
this.ShowFocalPoint = ShowFocalPoint;
this.DrawTraceLines = DrawTraceLines;
this.SynchronousOff = SynchronousOff;
this.AutoPickupOff = AutoPickupOff;
this.Action = Action;
}
/**
* Cloning constructor from the full message.
*
* @param original
*/
public ConfigChangeMessage(ConfigChangeMessage original) { |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/BombInfoMessage.java | 526 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/BombInfoStaticImpl.java | 208 |
}
@Override
public boolean isDifferentFrom(IStaticWorldObject other)
{
if (other == null) //early fail
{
return true;
}
else if (other == this) //early out
{
return false;
}
else
{
BombInfoStatic obj = (BombInfoStatic) other;
if ( !(
AdvancedEquals.equalsOrNull(this.getId()
, obj.getId()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Id on object class BombInfoStatic");
return true;
}
}
return false;
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=static+classtype[@name=impl]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=static+classtype[@name=impl]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/BombInfoMessage.java | 428 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/EntityMessage.java | 389 |
public EntityLocalMessage getLocal() {
return this;
}
public ISharedWorldObject getShared() {
throw new UnsupportedOperationException("Could not return LOCAL as SHARED");
}
public IStaticWorldObject getStatic() {
throw new UnsupportedOperationException("Could not return LOCAL as STATIC");
}
/**
*
Unique Id of the item. This Id represents some entity in the world.
*/
public UnrealId getId()
{
return Id;
}
/**
*
If the item is in the field of view of the bot.
*/
public boolean isVisible()
{
return Visible;
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"Visible = " + String.valueOf(isVisible()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>Visible</b> = " + String.valueOf(isVisible()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=local+classtype[@name=message]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=local+classtype[@name=message]) ---
}
/**
*
Implementation of the static part of the GameBots2004 message ENT, used
to facade ENTMessage.
*
* <p></p><p></p>
* Complete message documentation:
*
Generic physical entity that may be present in the world. Works as a hook for custom objects, such as new items from EmohawkRPG extension.
*/
public class EntityStaticMessage |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/AutoTraceRayMessage.java | 812 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/AutoTraceRayStaticImpl.java | 221 |
}
@Override
public boolean isDifferentFrom(IStaticWorldObject other)
{
if (other == null) //early fail
{
return true;
}
else if (other == this) //early out
{
return false;
}
else
{
AutoTraceRayStatic obj = (AutoTraceRayStatic) other;
if ( !(
AdvancedEquals.equalsOrNull(this.getId()
, obj.getId()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Id on object class AutoTraceRayStatic");
return true;
}
}
return false;
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=static+classtype[@name=impl]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=static+classtype[@name=impl]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/TeamScoreMessage.java | 339 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/TeamScoreStatic.java | 81 |
@Override
public boolean isDifferentFrom(IStaticWorldObject other)
{
if (other == null) //early fail
{
return true;
}
else if (other == this) //early out
{
return false;
}
else
{
TeamScoreStatic obj = (TeamScoreStatic) other;
if ( !(
AdvancedEquals.equalsOrNull(this.getId()
, obj.getId()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Id on object class TeamScoreStatic");
return true;
}
}
return false;
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=static+classtype[@name=abstract]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=static+classtype[@name=abstract]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/SelfMessage.java | 1841 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/SelfStatic.java | 81 |
@Override
public boolean isDifferentFrom(IStaticWorldObject other)
{
if (other == null) //early fail
{
return true;
}
else if (other == this) //early out
{
return false;
}
else
{
SelfStatic obj = (SelfStatic) other;
if ( !(
AdvancedEquals.equalsOrNull(this.getId()
, obj.getId()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Id on object class SelfStatic");
return true;
}
}
return false;
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=static+classtype[@name=abstract]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=static+classtype[@name=abstract]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/PlayerMessage.java | 954 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/PlayerStatic.java | 84 |
@Override
public boolean isDifferentFrom(IStaticWorldObject other)
{
if (other == null) //early fail
{
return true;
}
else if (other == this) //early out
{
return false;
}
else
{
PlayerStatic obj = (PlayerStatic) other;
if ( !(
AdvancedEquals.equalsOrNull(this.getId()
, obj.getId()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Id on object class PlayerStatic");
return true;
}
}
return false;
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=static+classtype[@name=abstract]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=static+classtype[@name=abstract]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/NavPointMessage.java | 366 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/NavPointStaticImpl.java | 313 |
this.DomPoint = original.isDomPoint()
;
this.Door = original.isDoor()
;
this.LiftCenter = original.isLiftCenter()
;
this.LiftExit = original.isLiftExit()
;
this.AIMarker = original.isAIMarker()
;
this.JumpSpot = original.isJumpSpot()
;
this.JumpPad = original.isJumpPad()
;
this.JumpDest = original.isJumpDest()
;
this.Teleporter = original.isTeleporter()
;
this.Rotation = original.getRotation()
;
this.RoamingSpot = original.isRoamingSpot()
;
this.SnipingSpot = original.isSnipingSpot()
;
this.ItemInstance = original.getItemInstance()
;
this.OutgoingEdges = original.getOutgoingEdges()
;
this.IncomingEdges = original.getIncomingEdges()
;
this.PreferedWeapon = original.getPreferedWeapon()
;
this.SimTime = original.getSimTime(); |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/MoverMessage.java | 1157 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/MoverShared.java | 128 |
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"Location = " + String.valueOf(getLocation()
) + " | " +
"Velocity = " + String.valueOf(getVelocity()
) + " | " +
"State = " + String.valueOf(getState()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>Location</b> = " + String.valueOf(getLocation()
) + " <br/> " +
"<b>Velocity</b> = " + String.valueOf(getVelocity()
) + " <br/> " +
"<b>State</b> = " + String.valueOf(getState()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=shared+classtype[@name=abstract]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=shared+classtype[@name=abstract]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/LocationUpdateMessage.java | 430 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/LocationUpdateStatic.java | 81 |
@Override
public boolean isDifferentFrom(IStaticWorldObject other)
{
if (other == null) //early fail
{
return true;
}
else if (other == this) //early out
{
return false;
}
else
{
LocationUpdateStatic obj = (LocationUpdateStatic) other;
if ( !(
AdvancedEquals.equalsOrNull(this.getId()
, obj.getId()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Id on object class LocationUpdateStatic");
return true;
}
}
return false;
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=static+classtype[@name=abstract]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=static+classtype[@name=abstract]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/LocationUpdate.java | 148 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/LocationUpdateLocal.java | 116 |
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"Loc = " + String.valueOf(getLoc()
) + " | " +
"Vel = " + String.valueOf(getVel()
) + " | " +
"Rot = " + String.valueOf(getRot()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>Loc</b> = " + String.valueOf(getLoc()
) + " <br/> " +
"<b>Vel</b> = " + String.valueOf(getVel()
) + " <br/> " +
"<b>Rot</b> = " + String.valueOf(getRot()
) + " <br/> " +
"<br/>]";
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/IncomingProjectileMessage.java | 652 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/IncomingProjectileStatic.java | 81 |
@Override
public boolean isDifferentFrom(IStaticWorldObject other)
{
if (other == null) //early fail
{
return true;
}
else if (other == this) //early out
{
return false;
}
else
{
IncomingProjectileStatic obj = (IncomingProjectileStatic) other;
if ( !(
AdvancedEquals.equalsOrNull(this.getId()
, obj.getId()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Id on object class IncomingProjectileStatic");
return true;
}
}
return false;
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=static+classtype[@name=abstract]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=static+classtype[@name=abstract]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/FlagInfoMessage.java | 484 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/FlagInfoStatic.java | 84 |
@Override
public boolean isDifferentFrom(IStaticWorldObject other)
{
if (other == null) //early fail
{
return true;
}
else if (other == this) //early out
{
return false;
}
else
{
FlagInfoStatic obj = (FlagInfoStatic) other;
if ( !(
AdvancedEquals.equalsOrNull(this.getId()
, obj.getId()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Id on object class FlagInfoStatic");
return true;
}
}
return false;
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=static+classtype[@name=abstract]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=static+classtype[@name=abstract]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/EntityMessage.java | 739 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/EntityShared.java | 123 |
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"Location = " + String.valueOf(getLocation()
) + " | " +
"Rotation = " + String.valueOf(getRotation()
) + " | " +
"Velocity = " + String.valueOf(getVelocity()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>Location</b> = " + String.valueOf(getLocation()
) + " <br/> " +
"<b>Rotation</b> = " + String.valueOf(getRotation()
) + " <br/> " +
"<b>Velocity</b> = " + String.valueOf(getVelocity()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=shared+classtype[@name=abstract]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=shared+classtype[@name=abstract]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/ConfigChangeMessage.java | 1177 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/ConfigChangeStatic.java | 83 |
@Override
public boolean isDifferentFrom(IStaticWorldObject other)
{
if (other == null) //early fail
{
return true;
}
else if (other == this) //early out
{
return false;
}
else
{
ConfigChangeStatic obj = (ConfigChangeStatic) other;
if ( !(
AdvancedEquals.equalsOrNull(this.getId()
, obj.getId()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Id on object class ConfigChangeStatic");
return true;
}
}
return false;
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=static+classtype[@name=abstract]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=static+classtype[@name=abstract]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/BombInfoMessage.java | 529 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/BombInfoStatic.java | 84 |
@Override
public boolean isDifferentFrom(IStaticWorldObject other)
{
if (other == null) //early fail
{
return true;
}
else if (other == this) //early out
{
return false;
}
else
{
BombInfoStatic obj = (BombInfoStatic) other;
if ( !(
AdvancedEquals.equalsOrNull(this.getId()
, obj.getId()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Id on object class BombInfoStatic");
return true;
}
}
return false;
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=static+classtype[@name=abstract]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=static+classtype[@name=abstract]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/AutoTraceRayMessage.java | 815 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/AutoTraceRayStatic.java | 87 |
@Override
public boolean isDifferentFrom(IStaticWorldObject other)
{
if (other == null) //early fail
{
return true;
}
else if (other == this) //early out
{
return false;
}
else
{
AutoTraceRayStatic obj = (AutoTraceRayStatic) other;
if ( !(
AdvancedEquals.equalsOrNull(this.getId()
, obj.getId()
)
) )
{
System.out.println("!!!!!PROPERTY UPDATE ERROR!!!! on property Id on object class AutoTraceRayStatic");
return true;
}
}
return false;
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=static+classtype[@name=abstract]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=static+classtype[@name=abstract]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/NavPointMessage.java | 366 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/NavPointStaticImpl.java | 489 |
this.DomPoint = original.isDomPoint()
;
this.Door = original.isDoor()
;
this.LiftCenter = original.isLiftCenter()
;
this.LiftExit = original.isLiftExit()
;
this.AIMarker = original.isAIMarker()
;
this.JumpSpot = original.isJumpSpot()
;
this.JumpPad = original.isJumpPad()
;
this.JumpDest = original.isJumpDest()
;
this.Teleporter = original.isTeleporter()
;
this.Rotation = original.getRotation()
;
this.RoamingSpot = original.isRoamingSpot()
;
this.SnipingSpot = original.isSnipingSpot()
;
this.ItemInstance = original.getItemInstance()
;
this.OutgoingEdges = original.getOutgoingEdges()
;
this.IncomingEdges = original.getIncomingEdges()
;
this.PreferedWeapon = original.getPreferedWeapon() |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/bot/command/AdvancedLocomotion.java | 462 |
cz/cuni/amis/pogamut/ut2004/bot/command/AdvancedLocomotion.java | 486 |
Location direction = new Location(inFrontOfTheBot.getLocation().x - bot.getLocation().x, inFrontOfTheBot.getLocation().y - bot.getLocation().y, 0);
direction = direction.getNormalized();
double alpha = Math.acos(self.getRotation().toLocation().getNormalized().dot(direction.getNormalized()));
double orientation = self.getRotation().toLocation().cross(new Location(0, 0, 1)).dot(direction);
if (orientation > 0) {
alpha = -alpha;
}
Matrix3d rot = Rotation.constructXYRot(alpha);
direction = new Location(1, 0, 0).mul(rot);
this.act.act(new Dodge().setDirection(direction).setDouble(bDouble));
}
/**
* Makes the bot to dodge in the selected direction (this is in fact single
* jump that is executed to selected direction). Direction is relative to
* bot actual rotation! (issues GB DODGE command)
*
* @param direction Relative vector (that will be normalized) that specifies
* direction of the jump. Relative means that the bot current rotation will
* be added to the this vector. So to dodge ahead issue direction (1,0,0).
*
* @param bDouble Wheter we want to perform double dodge.
* @see jump()
* @see doubleJump()
*/
public void dodgeRelative(Location direction, boolean bDouble) { |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/AliveMessageMessage.java | 368 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/InitedMessageMessage.java | 1463 |
InitedMessageSharedMessage clone() {
return this;
}
protected HashMap<PropertyId, ISharedProperty> propertyMap = new HashMap<PropertyId, ISharedProperty>(
0
);
@Override
public ISharedProperty getProperty(PropertyId id) {
return propertyMap.get(id);
}
@Override
public Map<PropertyId, ISharedProperty> getProperties() {
return propertyMap;
}
public String toString() {
return
super.toString() + "[" +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=shared+classtype[@name=message]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=shared+classtype[@name=message]) ---
}
@Override
public IWorldObjectUpdateResult<IWorldObject> update(IWorldObject object) {
if (object == null)
{
return new IWorldObjectUpdateResult.WorldObjectUpdateResult(IWorldObjectUpdateResult.Result.CREATED, this);
}
if (!( object instanceof InitedMessageMessage) ) { |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/BombInfoLocal.java | 142 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/FlagInfoLocal.java | 142 |
VehicleLocalImpl toUpdate = (VehicleLocalImpl)obj;
if (toUpdate.Visible) {
toUpdate.Visible = false;
return new IWorldObjectUpdateResult.WorldObjectUpdateResult(IWorldObjectUpdateResult.Result.UPDATED, obj);
} else {
return new IWorldObjectUpdateResult.WorldObjectUpdateResult(IWorldObjectUpdateResult.Result.SAME, obj);
}
}
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"Visible = " + String.valueOf(isVisible()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>Visible</b> = " + String.valueOf(isVisible()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=local+classtype[@name=abstract]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=local+classtype[@name=abstract]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/factory/direct/remoteagent/UT2004ObserverFactory.java | 51 |
cz/cuni/amis/pogamut/ut2004/factory/direct/remoteagent/UT2004ServerFactory.java | 51 |
public UT2004Server newAgent(PARAMS agentParameters) throws PogamutException {
// setup logger
AgentLogger logger = new AgentLogger(agentParameters.getAgentId());
// Since default agent logger doesn't write anything, platform can be exposed to silent fail
// i.e. RuntimeException that is thrown, something happens and whole thing stops working
// without user knowing what the error message was.
logger.setLevel(Level.SEVERE);
logger.addDefaultConsoleHandler();
IComponentBus eventBus = new ComponentBus(logger);
///////////////////////////////
/// WORLD -> AGENT ///
///////////////////////////////
// create connection to the world
SocketConnection socketConnection = new SocketConnection((ISocketConnectionAddress)agentParameters.getWorldAddress(), new ComponentDependencies(ComponentDependencyType.STARTS_WITH).add(agentParameters.getAgentId()), eventBus, logger);
UnrealIdTranslator unrealIdTranslator = new UnrealIdTranslator();
ItemTypeTranslator itemTypeTranslator = new UT2004ItemTypeTranslator();
ItemTranslator itemTranslator = new ItemTranslator(itemTypeTranslator);
// parser for translating text messages into Java objects
IWorldMessageParser parser = new UT2004Parser(unrealIdTranslator, itemTranslator,itemTypeTranslator, socketConnection, new Yylex(), new IYylexObserver.LogObserver(logger), eventBus, logger);
// translates sets of messages wrapped in Java objects into agregared messages
IWorldMessageTranslator messageTranslator = new ServerFSM(itemTranslator, logger); |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/translator/bot/support/BotListState.java | 44 |
cz/cuni/amis/pogamut/ut2004/communication/translator/server/support/ServerListState.java | 44 |
public ObserverListState(Class beginMessage, Class<MESSAGE> message, Class endMessage) {
this.beginMessage = beginMessage;
this.message = message;
this.endMessage = endMessage;
}
protected List<MESSAGE> getList() {
return messages;
}
protected void newList() {
messages = new ArrayList<MESSAGE>();
}
@Override
public void init(CONTEXT context) {
messages = new ArrayList<MESSAGE>();
}
@Override
public void restart(CONTEXT context) {
messages = new ArrayList<MESSAGE>();
}
@Override
public void stateEntering(CONTEXT context, IFSMState<InfoMessage, CONTEXT> fromState, InfoMessage symbol) {
if (!symbol.getClass().equals(beginMessage)) throw new UnexpectedMessageException(TranslatorMessages.unexpectedMessage(this, symbol, beginMessage), context.getLogger(), this); |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/GameInfoStaticImpl.java | 48 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/GameInfoStaticImpl.java | 97 |
public GameInfoStaticImpl(GameInfoStaticImpl original) {
this.Gametype = original.getGametype()
;
this.Level = original.getLevel()
;
this.MaxTeams = original.getMaxTeams()
;
this.RedBaseLocation = original.getRedBaseLocation()
;
this.BlueBaseLocation = original.getBlueBaseLocation()
;
this.FirstDomPointLocation = original.getFirstDomPointLocation()
;
this.SecondDomPointLocation = original.getSecondDomPointLocation()
;
this.FactoryLocation = original.getFactoryLocation()
;
this.FactoryRadius = original.getFactoryRadius()
;
this.DisperserLocation = original.getDisperserLocation()
;
this.DisperserRadius = original.getDisperserRadius()
;
this.FactoryAdrenalineCount = original.getFactoryAdrenalineCount()
;
this.FactorySpawnType = original.getFactorySpawnType()
;
this.SimTime = original.getSimTime();
}
/**
* Cloning constructor from the message part.
*
* @param original
*/
public GameInfoStaticImpl(GameInfoStatic original) { |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/ShootingStarted.java | 80 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/ShootingStopped.java | 80 |
public ShootingStopped(ShootingStopped original) {
this.Alt = original.isAlt()
;
this.SimTime = original.getSimTime();
}
protected long SimTime;
/**
* Simulation time in MILLI SECONDS !!!
*/
@Override
public long getSimTime() {
return SimTime;
}
/**
* Used by Yylex to slip correct time of the object or programmatically.
*/
protected void setSimTime(long SimTime) {
this.SimTime = SimTime;
}
/**
*
Whether using the alternate firing mode.
*/
protected
boolean Alt =
false;
/**
*
Whether using the alternate firing mode.
*/
public boolean isAlt()
{
return Alt;
}
public String toString() {
return
super.toString() + "[" +
"Alt = " + String.valueOf(isAlt()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Alt</b> = " + String.valueOf(isAlt()
) + " <br/> " +
"<br/>]";
}
public String toJsonLiteral() {
return "shootingstopped( " |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/DialogFailed.java | 81 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/ZoneChangedBot.java | 80 |
public ZoneChangedBot(ZoneChangedBot original) {
this.Id = original.getId()
;
this.SimTime = original.getSimTime();
}
protected long SimTime;
/**
* Simulation time in MILLI SECONDS !!!
*/
@Override
public long getSimTime() {
return SimTime;
}
/**
* Used by Yylex to slip correct time of the object or programmatically.
*/
protected void setSimTime(long SimTime) {
this.SimTime = SimTime;
}
/**
* Id of a zone entered.
*/
protected
String Id =
null;
/**
* Id of a zone entered.
*/
public String getId()
{
return Id;
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<br/>]";
}
public String toJsonLiteral() {
return "zonechangedbot( " |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/translator/bot/support/BotMessageExpectedState.java | 26 |
cz/cuni/amis/pogamut/ut2004/communication/translator/server/support/ServerMessageExpectedState.java | 26 |
public ObserverMessageExpectedState(Class expectedMessage) {
message = expectedMessage;
}
@Override
public void init(CONTEXT context) {
}
@Override
public void restart(CONTEXT context) {
}
@Override
public void stateEntering(CONTEXT context,
IFSMState<InfoMessage, CONTEXT> fromState, InfoMessage symbol) {
}
@Override
public void stateLeaving(CONTEXT context, IFSMState<InfoMessage, CONTEXT> toState, InfoMessage symbol) {
if (!symbol.getClass().equals(message)) {
if (!message.isAssignableFrom(symbol.getClass())) {
throw new UnexpectedMessageException(TranslatorMessages.unexpectedMessage(this, symbol), context.getLogger(), this);
}
}
}
@Override |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/translator/itemdescriptor/AmmoDescriptor.java | 11 |
cz/cuni/amis/pogamut/ut2004/communication/translator/itemdescriptor/WeaponDescriptor.java | 71 |
@ItemDescriptorField
private String priAmmoType;
@ItemDescriptorField
private int priInitialAmount = 0;
@ItemDescriptorField
private int priMaxAmount = 0;
@ItemDescriptorField
private double priMaxRange = 0;
// Primary firing mode ammo damage type
@ItemDescriptorField
private String priDamageType;
@ItemDescriptorField
private boolean priArmorStops = true;
@ItemDescriptorField
private boolean priAlwaysGibs = false;
@ItemDescriptorField
private boolean priSpecial = false;
@ItemDescriptorField
private boolean priDetonatesGoop = false;
@ItemDescriptorField
private boolean priSuperWeapon = false;
@ItemDescriptorField
private boolean priExtraMomZ = false;
// Primary firing mode projectile
@ItemDescriptorField
private String priProjType;
@ItemDescriptorField
private double priDamage = 0;
@ItemDescriptorField
private double priSpeed = 0;
@ItemDescriptorField
private double priMaxSpeed = 0;
@ItemDescriptorField
private double priLifeSpan = 0;
@ItemDescriptorField
private double priDamageRadius = 0;
@ItemDescriptorField
private double priTossZ = 0;
@ItemDescriptorField
private double priMaxEffectDistance = 0;
// Secondary firing mode
@ItemDescriptorField |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/InitedMessage.java | 75 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/InitedMessageLocal.java | 80 |
}
/**
*
A unique unreal Id of the new bot.
*/
public abstract UnrealId getBotId()
;
/**
*
Bot will always start with this health amount (usually 100).
*/
public abstract int getHealthStart()
;
/**
*
Full health of the bot (usually 100).
*/
public abstract int getHealthFull()
;
/**
*
Maximum health of the bot (default 199).
*/
public abstract int getHealthMax()
;
/**
*
Amount of adrenaline at the start. Usually 0.
*/
public abstract double getAdrenalineStart()
;
/**
*
Maxium amount of the adrenaline. Usually 100 (this can trigger the combos).
*/
public abstract double getAdrenalineMax()
;
/**
*
Starting strength of the bot armor (usually 0).
*/
public abstract int getShieldStrengthStart()
;
/**
*
Maximum strength of the bot armor (usually 150).
*/
public abstract int getShieldStrengthMax()
;
/**
*
Maximum amount of succesing jumps. Currently limited to double jump in GB.
*/
public abstract int getMaxMultiJump()
;
/**
*
Damage scaling for this bot. (he will deal reduced damage depending on the setting).
*/
public abstract double getDamageScaling()
;
/**
*
Groundspeed of the bot (on the ground). Default 440.
*/
public abstract double getGroundSpeed()
;
/**
*
Waterspeed of the bot (in the water).
*/
public abstract double getWaterSpeed()
;
/**
*
AirSpeed of the bot (in the air).
*/
public abstract double getAirSpeed()
;
/**
*
Ladderspeed of the bot (on the ladder).
*/
public abstract double getLadderSpeed()
;
/**
*
Accelartion rate of this bot. How fast he accelerates.
*/
public abstract double getAccelRate()
;
/**
*
Bot Jump's Z boost.
*/
public abstract double getJumpZ()
;
/**
*
Not used in GB.
*/
public abstract double getMultiJumpBoost()
;
/**
*
Max fall speed of the bot.
*/
public abstract double getMaxFallSpeed()
;
/**
*
Dodge speed factor.
*/
public abstract double getDodgeSpeedFactor()
;
/**
*
Dodge jump Z boost of the bot.
*/
public abstract double getDodgeSpeedZ()
;
/**
*
How well can be the bot controlled in the air (ranges from 0 to 1).
*/
public abstract double getAirControl()
;
public InitedMessageLocal getLocal() { |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/BotKilled.java | 215 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/PlayerKilled.java | 276 |
}
/**
*
A string describing what kind of damage killed the victim.
*/
protected
String DamageType =
null;
/**
*
A string describing what kind of damage killed the victim.
*/
public String getDamageType()
{
return DamageType;
}
/**
*
String describing this type of death.
*/
protected
String DeathString =
null;
/**
*
String describing this type of death.
*/
public String getDeathString()
{
return DeathString;
}
/**
*
Name of the weapon that caused this damage.
*/
protected
String WeaponName =
null;
/**
*
Name of the weapon that caused this damage.
*/
public String getWeaponName()
{
return WeaponName;
}
/**
*
If this damage is causing the player to burn. TODO
*/
protected
boolean Flaming =
false;
/**
*
If this damage is causing the player to burn. TODO
*/
public boolean isFlaming()
{
return Flaming;
}
/**
*
If this damage was caused by world - falling into lava, or falling down.
*/
protected
boolean CausedByWorld =
false;
/**
*
If this damage was caused by world - falling into lava, or falling down.
*/
public boolean isCausedByWorld()
{
return CausedByWorld;
}
/**
*
If the damage is direct. TODO
*/
protected
boolean DirectDamage =
false;
/**
*
If the damage is direct. TODO
*/
public boolean isDirectDamage()
{
return DirectDamage;
}
/**
*
If this damage was caused by bullet.
*/
protected
boolean BulletHit =
false;
/**
*
If this damage was caused by bullet.
*/
public boolean isBulletHit()
{
return BulletHit;
}
/**
*
If this damage was caused by vehicle running over us.
*/
protected
boolean VehicleHit =
false;
/**
*
If this damage was caused by vehicle running over us.
*/
public boolean isVehicleHit()
{
return VehicleHit;
}
public String toString() {
return
super.toString() + "[" + |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/GameInfo.java | 338 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/GameInfoMessage.java | 1324 |
"SecondDomPointLocation = " + String.valueOf(getSecondDomPointLocation()
) + " | " +
"FactoryLocation = " + String.valueOf(getFactoryLocation()
) + " | " +
"FactoryRadius = " + String.valueOf(getFactoryRadius()
) + " | " +
"DisperserLocation = " + String.valueOf(getDisperserLocation()
) + " | " +
"DisperserRadius = " + String.valueOf(getDisperserRadius()
) + " | " +
"FactoryAdrenalineCount = " + String.valueOf(getFactoryAdrenalineCount()
) + " | " +
"FactorySpawnType = " + String.valueOf(getFactorySpawnType()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Gametype</b> = " + String.valueOf(getGametype()
) + " <br/> " +
"<b>Level</b> = " + String.valueOf(getLevel()
) + " <br/> " + |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/BotKilled.java | 382 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/PlayerKilled.java | 449 |
"KilledPawn = " + String.valueOf(getKilledPawn()
) + " | " +
"DamageType = " + String.valueOf(getDamageType()
) + " | " +
"DeathString = " + String.valueOf(getDeathString()
) + " | " +
"WeaponName = " + String.valueOf(getWeaponName()
) + " | " +
"Flaming = " + String.valueOf(isFlaming()
) + " | " +
"CausedByWorld = " + String.valueOf(isCausedByWorld()
) + " | " +
"DirectDamage = " + String.valueOf(isDirectDamage()
) + " | " +
"BulletHit = " + String.valueOf(isBulletHit()
) + " | " +
"VehicleHit = " + String.valueOf(isVehicleHit()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" + |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/BombInfoCompositeImpl.java | 185 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/FlagInfoCompositeImpl.java | 167 |
getTeam()
;
}
@Override
/**
* True if the bot can see the flag.
*/
public boolean isVisible()
{
return
partLocal.
isVisible()
;
}
@Override
/**
*
Represents the state the flag is in. Can be "Held",
"Dropped" or "Home" (note that the first letter does not have to be in upper case!).
*/
public String getState()
{
return
partShared.
getState()
;
}
public String toString() {
return
super.toString() + "[" +
"Static = " + String.valueOf(partStatic) + " | Local = " + String.valueOf(partLocal) + " | Shared = " + String.valueOf(partShared) + " ]" +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"Static = " + String.valueOf(partStatic) + " <br/> Local = " + String.valueOf(partLocal) + " <br/> Shared = " + String.valueOf(partShared) + " ]" +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=composite+classtype[@name=impl]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=composite+classtype[@name=impl]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/agent/navigation/navmesh/NavMesh.java | 709 |
cz/cuni/amis/pogamut/ut2004/agent/navigation/navmesh/NavMesh.java | 724 |
v3 = getVertex(polygon[4]);
p1 = new Point3D(v1[0], v1[1], v1[2]);
vector1 = new Vector3D(v2[0]-v1[0], v2[1]-v1[1], v2[2]-v1[2]);
vector2 = new Vector3D(v3[0]-v1[0], v3[1]-v1[1], v3[2]-v1[2]);
plane = new Plane3D(p1, vector1, vector2);
dist = plane.getDistance(point3D);
if(dist < minDist) {
retPId = pId;
minDist = dist;
}
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/translator/observer/state/MapListState.java | 30 |
cz/cuni/amis/pogamut/ut2004/communication/translator/server/state/MapListState.java | 29 |
public class MapListState extends ServerListState<MapList, TranslatorContext> {
public MapListState() {
super(MapListStart.class, MapList.class, MapListEnd.class);
}
@Override
public void stateLeaving(TranslatorContext context,
IFSMState<InfoMessage, TranslatorContext> toState, InfoMessage symbol) {
super.stateLeaving(context, toState, symbol);
long simTime =
(symbol instanceof IWorldChangeEvent ? ((IWorldChangeEvent)symbol).getSimTime() : 0);
context.getEventQueue().pushEvent(new MapListObtained(getList(), simTime));
newList();
}
@Override
protected void innerStateSymbol(TranslatorContext context,
InfoMessage symbol) {
super.innerStateSymbol(context, symbol);
if (symbol instanceof MapList) { |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/BotKilled.java | 452 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/PlayerKilled.java | 536 |
"\"" + getKilledPawn()
+ "\""
)
+ ", " +
(getDamageType()
== null ? "null" :
"\"" + getDamageType()
+ "\""
)
+ ", " +
(getDeathString()
== null ? "null" :
"\"" + getDeathString()
+ "\""
)
+ ", " +
(getWeaponName()
== null ? "null" :
"\"" + getWeaponName()
+ "\""
)
+ ", " +
String.valueOf(isFlaming()
)
+ ", " +
String.valueOf(isCausedByWorld()
)
+ ", " +
String.valueOf(isDirectDamage()
)
+ ", " +
String.valueOf(isBulletHit()
)
+ ", " +
String.valueOf(isVehicleHit()
)
+ ")";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=event+classtype[@name=impl]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=event+classtype[@name=impl]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/bot/command/AdvancedLocomotion.java | 439 |
cz/cuni/amis/pogamut/ut2004/bot/command/AdvancedLocomotion.java | 487 |
direction = direction.getNormalized();
double alpha = Math.acos(self.getRotation().toLocation().getNormalized().dot(direction.getNormalized()));
double orientation = self.getRotation().toLocation().cross(new Location(0, 0, 1)).dot(direction);
if (orientation > 0) {
alpha = -alpha;
}
Matrix3d rot = Rotation.constructXYRot(alpha);
direction = new Location(1, 0, 0).mul(rot);
this.act.act(new Dodge().setDirection(direction).setDouble(bDouble));
}
/**
* Dodges towards the specified location.
*
* @param inFrontOfTheBot Location to dodge to.
* @param bDouble Whether to perform double dodge.
*/
public void dodgeTo(ILocated inFrontOfTheBot, boolean bDouble) { |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/GameInfoStaticImpl.java | 48 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/GameInfoStaticImpl.java | 146 |
public GameInfoStaticImpl(GameInfoStatic original) {
this.Gametype = original.getGametype()
;
this.Level = original.getLevel()
;
this.MaxTeams = original.getMaxTeams()
;
this.RedBaseLocation = original.getRedBaseLocation()
;
this.BlueBaseLocation = original.getBlueBaseLocation()
;
this.FirstDomPointLocation = original.getFirstDomPointLocation()
;
this.SecondDomPointLocation = original.getSecondDomPointLocation()
;
this.FactoryLocation = original.getFactoryLocation()
;
this.FactoryRadius = original.getFactoryRadius()
;
this.DisperserLocation = original.getDisperserLocation()
;
this.DisperserRadius = original.getDisperserRadius()
;
this.FactoryAdrenalineCount = original.getFactoryAdrenalineCount()
;
this.FactorySpawnType = original.getFactorySpawnType() |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/BotKilled.java | 416 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/PlayerKilled.java | 489 |
"<b>KilledPawn</b> = " + String.valueOf(getKilledPawn()
) + " <br/> " +
"<b>DamageType</b> = " + String.valueOf(getDamageType()
) + " <br/> " +
"<b>DeathString</b> = " + String.valueOf(getDeathString()
) + " <br/> " +
"<b>WeaponName</b> = " + String.valueOf(getWeaponName()
) + " <br/> " +
"<b>Flaming</b> = " + String.valueOf(isFlaming()
) + " <br/> " +
"<b>CausedByWorld</b> = " + String.valueOf(isCausedByWorld()
) + " <br/> " +
"<b>DirectDamage</b> = " + String.valueOf(isDirectDamage()
) + " <br/> " +
"<b>BulletHit</b> = " + String.valueOf(isBulletHit()
) + " <br/> " +
"<b>VehicleHit</b> = " + String.valueOf(isVehicleHit()
) + " <br/> " +
"<br/>]";
}
public String toJsonLiteral() {
return "playerkilled( " |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/FastTraceResponse.java | 265 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/TraceResponse.java | 411 |
+
(getId()
== null ? "null" :
"\"" + getId()
+ "\""
)
+ ", " +
(getFrom()
== null ? "null" :
"[" + getFrom()
.getX() + ", " + getFrom()
.getY() + ", " + getFrom()
.getZ() + "]"
)
+ ", " +
(getTo()
== null ? "null" :
"[" + getTo()
.getX() + ", " + getTo()
.getY() + ", " + getTo()
.getZ() + "]"
)
+ ", " +
String.valueOf(isResult()
)
+ ", " + |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/agent/module/sensor/WeaponPrefs.java | 191 |
cz/cuni/amis/pogamut/ut2004/agent/module/sensor/WeaponPrefs.java | 252 |
public WeaponPref getWeaponPreference(double distance, WeaponPref... forbiddenWeapons) {
WeaponPref pref = null;
if (distance >= 0 && prefs.size() != 0) {
WeaponPrefsRange range = getWeaponPreferences(distance);
pref = range.getWeaponPreference(forbiddenWeapons);
if (pref != null) {
return pref;
}
}
pref = generalPrefs.getWeaponPreference(forbiddenWeapons);
if (pref != null) return pref;
pref = generalPrefs.getWeaponPreference();
if (pref != null) return pref;
if (weaponry.getCurrentWeapon() != null) {
return new WeaponPref(weaponry.getCurrentWeapon().getType(), true);
}
return null;
}
/**
* Return the best weapon the bot has to shoot at given location (choosing right weapon preferances for a given distance).
* <p><p>
* May return null if "general preferences are not defined" or the bot does not have ammo to any of defined weapons.
* <p><p>
* If target is null, only general preferences will be used.
*
* @param target
* @param forbiddenWeapons optionally, you may define weapons which bot should not choose.
* @return
*/
public WeaponPref getWeaponPreference(ILocated target, WeaponPref... forbiddenWeapons) { |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/translator/observer/state/ReadyState.java | 37 |
cz/cuni/amis/pogamut/ut2004/communication/translator/server/state/ReadyState.java | 36 |
public class ReadyState extends AbstractServerFSMState<InfoMessage, TranslatorContext> {
@Override
public void init(TranslatorContext context) {
}
@Override
public void restart(TranslatorContext context) {
}
@Override
public void stateEntering(TranslatorContext context,
IFSMState<InfoMessage, TranslatorContext> fromState,
InfoMessage symbol) {
}
@Override
public void stateLeaving(TranslatorContext context,
IFSMState<InfoMessage, TranslatorContext> toState, InfoMessage symbol) {
}
@Override
protected void innerStateSymbol(TranslatorContext context, InfoMessage symbol) {
if (symbol instanceof HandShakeStart) return;
throw new UnexpectedMessageException(TranslatorMessages.unexpectedMessage(this, symbol), context.getLogger(), this);
}
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/TeamScoreMessage.java | 515 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/TeamScoreMessage.java | 623 |
(this.getStatic(), SimTime);
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"Team = " + String.valueOf(getTeam()
) + " | " +
"Score = " + String.valueOf(getScore()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>Team</b> = " + String.valueOf(getTeam()
) + " <br/> " +
"<b>Score</b> = " + String.valueOf(getScore()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=base+classtype[@name=message]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=base+classtype[@name=message]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/PlayerLocal.java | 160 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/PlayerLocalImpl.java | 336 |
}
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"Jmx = " + String.valueOf(getJmx()
) + " | " +
"Visible = " + String.valueOf(isVisible()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>Jmx</b> = " + String.valueOf(getJmx()
) + " <br/> " +
"<b>Visible</b> = " + String.valueOf(isVisible()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=local+classtype[@name=impl]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=local+classtype[@name=impl]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/IncomingProjectileLocal.java | 155 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/IncomingProjectileLocalImpl.java | 310 |
}
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"ImpactTime = " + String.valueOf(getImpactTime()
) + " | " +
"Visible = " + String.valueOf(isVisible()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>ImpactTime</b> = " + String.valueOf(getImpactTime()
) + " <br/> " +
"<b>Visible</b> = " + String.valueOf(isVisible()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=local+classtype[@name=impl]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=local+classtype[@name=impl]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/TeamScoreMessage.java | 516 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/TeamScoreSharedImpl.java | 232 |
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"Team = " + String.valueOf(getTeam()
) + " | " +
"Score = " + String.valueOf(getScore()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>Team</b> = " + String.valueOf(getTeam()
) + " <br/> " +
"<b>Score</b> = " + String.valueOf(getScore()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=shared+classtype[@name=impl]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=shared+classtype[@name=impl]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/TeamScore.java | 137 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/TeamScoreSharedImpl.java | 230 |
}
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"Team = " + String.valueOf(getTeam()
) + " | " +
"Score = " + String.valueOf(getScore()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>Team</b> = " + String.valueOf(getTeam()
) + " <br/> " +
"<b>Score</b> = " + String.valueOf(getScore()
) + " <br/> " +
"<br/>]";
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/PlayerMessage.java | 252 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/SelfMessage.java | 380 |
this.Action = original.getAction()
;
this.EmotLeft = original.getEmotLeft()
;
this.EmotCenter = original.getEmotCenter()
;
this.EmotRight = original.getEmotRight()
;
this.Bubble = original.getBubble()
;
this.Anim = original.getAnim()
;
this.TeamId = original.getTeamId();
this.SimTime = original.getSimTime();
}
protected ITeamId TeamId;
/**
* Used by Yylex to slip corretn TeamId.
*/
protected void setTeamId(ITeamId TeamId) {
this.TeamId = TeamId;
}
public ITeamId getTeamId() {
return TeamId;
}
/**
* Unique Id of this self message instance.
*/
protected
UnrealId Id =
null;
/**
* Whether property 'Id' was received from GB2004.
*/
protected boolean Id_Set = false;
@Override
/**
* Unique Id of this self message instance.
*/
public UnrealId getId()
{
return Id;
}
/**
* Unique Id of this bot.
*/
protected |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/PlayerLocal.java | 162 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/PlayerMessage.java | 873 |
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"Jmx = " + String.valueOf(getJmx()
) + " | " +
"Visible = " + String.valueOf(isVisible()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>Jmx</b> = " + String.valueOf(getJmx()
) + " <br/> " +
"<b>Visible</b> = " + String.valueOf(isVisible()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=local+classtype[@name=message]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=local+classtype[@name=message]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/ItemMessage.java | 909 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/ItemSharedImpl.java | 237 |
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"Location = " + String.valueOf(getLocation()
) + " | " +
"Dropped = " + String.valueOf(isDropped()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>Location</b> = " + String.valueOf(getLocation()
) + " <br/> " +
"<b>Dropped</b> = " + String.valueOf(isDropped()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=shared+classtype[@name=impl]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=shared+classtype[@name=impl]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/IncomingProjectileLocal.java | 157 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/IncomingProjectileMessage.java | 574 |
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"ImpactTime = " + String.valueOf(getImpactTime()
) + " | " +
"Visible = " + String.valueOf(isVisible()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>ImpactTime</b> = " + String.valueOf(getImpactTime()
) + " <br/> " +
"<b>Visible</b> = " + String.valueOf(isVisible()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=local+classtype[@name=message]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=local+classtype[@name=message]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/BotKilled.java | 147 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/PlayerKilled.java | 170 |
this.KilledPawn = original.getKilledPawn()
;
this.DamageType = original.getDamageType()
;
this.DeathString = original.getDeathString()
;
this.WeaponName = original.getWeaponName()
;
this.Flaming = original.isFlaming()
;
this.CausedByWorld = original.isCausedByWorld()
;
this.DirectDamage = original.isDirectDamage()
;
this.BulletHit = original.isBulletHit()
;
this.VehicleHit = original.isVehicleHit()
;
this.SimTime = original.getSimTime();
}
protected long SimTime;
/**
* Simulation time in MILLI SECONDS !!!
*/
@Override
public long getSimTime() {
return SimTime;
}
/**
* Used by Yylex to slip correct time of the object or programmatically.
*/
protected void setSimTime(long SimTime) {
this.SimTime = SimTime;
}
/**
* Unique Id of the dead player.
*/
protected
UnrealId Id = |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/translator/observer/support/AbstractObserverFSMState.java | 17 |
cz/cuni/amis/pogamut/ut2004/communication/translator/server/support/AbstractServerFSMState.java | 17 |
public abstract class AbstractServerFSMState<SYMBOL, CONTEXT extends TranslatorContext> implements IFSMState<SYMBOL, CONTEXT> {
protected abstract void innerStateSymbol(CONTEXT context, SYMBOL symbol);
@Override
public final void stateSymbol(CONTEXT context, SYMBOL symbol) {
if (symbol instanceof AliveMessage) {
if (!(symbol instanceof IWorldChangeEvent)) throw new UnexpectedMessageException(TranslatorMessages.messageNotWorldEvent(this, symbol), this);
context.getEventQueue().pushEvent((IWorldChangeEvent) symbol);
} else {
innerStateSymbol(context, symbol);
}
}
@Override
public String toString() {
return getClass().getSimpleName();
}
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/TeamScoreMessage.java | 519 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/TeamScoreShared.java | 114 |
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"Team = " + String.valueOf(getTeam()
) + " | " +
"Score = " + String.valueOf(getScore()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>Team</b> = " + String.valueOf(getTeam()
) + " <br/> " +
"<b>Score</b> = " + String.valueOf(getScore()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=shared+classtype[@name=abstract]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=shared+classtype[@name=abstract]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/TeamScore.java | 139 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/TeamScoreMessage.java | 516 |
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"Team = " + String.valueOf(getTeam()
) + " | " +
"Score = " + String.valueOf(getScore()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>Team</b> = " + String.valueOf(getTeam()
) + " <br/> " +
"<b>Score</b> = " + String.valueOf(getScore()
) + " <br/> " +
"<br/>]";
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/ItemMessage.java | 912 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/ItemShared.java | 118 |
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"Location = " + String.valueOf(getLocation()
) + " | " +
"Dropped = " + String.valueOf(isDropped()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>Location</b> = " + String.valueOf(getLocation()
) + " <br/> " +
"<b>Dropped</b> = " + String.valueOf(isDropped()
) + " <br/> " +
"<br/>]";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=shared+classtype[@name=abstract]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=shared+classtype[@name=abstract]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/TeamScore.java | 142 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/TeamScoreShared.java | 114 |
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"Team = " + String.valueOf(getTeam()
) + " | " +
"Score = " + String.valueOf(getScore()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>Team</b> = " + String.valueOf(getTeam()
) + " <br/> " +
"<b>Score</b> = " + String.valueOf(getScore()
) + " <br/> " +
"<br/>]";
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/agent/module/sensor/AgentInfo.java | 231 |
cz/cuni/amis/pogamut/ut2004/agent/module/sensor/AgentInfo.java | 250 |
public boolean atLocation(String objectId, double epsilon) {
Object obj = agent.getWorldView().get(UnrealId.get(objectId));
if (obj == null) {
if (log != null && log.isLoggable(Level.WARNING)) log.warning("atLocation(): Object with id '" + objectId + "' does not exist in the worldview!");
return false;
}
if (!(obj instanceof ILocated)) {
if (log != null && log.isLoggable(Level.WARNING)) log.warning("atLocation(): Object with id '" + objectId + "' is not implementing ILocated, it is " + obj.getClass().getSimpleName() + ".");
return false;
}
return atLocation((ILocated)obj, epsilon); |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/translator/server/state/CommunicationTerminatedState.java | 14 |
cz/cuni/amis/pogamut/ut2004/communication/translator/server/state/GameInfoExpectedState.java | 27 |
public class GameInfoExpectedState extends AbstractServerFSMState<InfoMessage, TranslatorContext> {
@Override
public void init(TranslatorContext context) {
}
@Override
public void restart(TranslatorContext context) {
}
@Override
public void stateEntering(TranslatorContext context,
IFSMState<InfoMessage, TranslatorContext> fromState,
InfoMessage symbol) {
}
@Override
public void stateLeaving(TranslatorContext context,
IFSMState<InfoMessage, TranslatorContext> toState, InfoMessage symbol) {
}
@Override
protected void innerStateSymbol(TranslatorContext context, InfoMessage symbol) {
throw new UnexpectedMessageException(TranslatorMessages.unexpectedMessage(this, symbol), context.getLogger(), this);
}
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/translator/bot/state/ReadyState.java | 34 |
cz/cuni/amis/pogamut/ut2004/communication/translator/observer/state/CommunicationTerminatedState.java | 14 |
public class GameInfoExpectedState extends AbstractObserverFSMState<InfoMessage, TranslatorContext> {
@Override
public void init(TranslatorContext context) {
}
@Override
public void restart(TranslatorContext context) {
}
@Override
public void stateEntering(TranslatorContext context,
IFSMState<InfoMessage, TranslatorContext> fromState,
InfoMessage symbol) {
}
@Override
public void stateLeaving(TranslatorContext context,
IFSMState<InfoMessage, TranslatorContext> toState, InfoMessage symbol) {
}
@Override
protected void innerStateSymbol(TranslatorContext context, InfoMessage symbol) {
throw new UnexpectedMessageException(TranslatorMessages.unexpectedMessage(this, symbol), context.getLogger(), this);
}
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/translator/bot/state/CommunicationTerminatedState.java | 14 |
cz/cuni/amis/pogamut/ut2004/communication/translator/bot/state/GameInfoExpectedState.java | 28 |
public class GameInfoExpectedState extends AbstractBotFSMState<InfoMessage, TranslatorContext> {
@Override
public void init(TranslatorContext context) {
}
@Override
public void restart(TranslatorContext context) {
}
@Override
public void stateEntering(TranslatorContext context,
IFSMState<InfoMessage, TranslatorContext> fromState,
InfoMessage symbol) {
}
@Override
public void stateLeaving(TranslatorContext context,
IFSMState<InfoMessage, TranslatorContext> toState, InfoMessage symbol) {
}
@Override
public void stateSymbol(TranslatorContext context, InfoMessage symbol) {
throw new UnexpectedMessageException(TranslatorMessages.unexpectedMessage(this, symbol), context.getLogger(), this);
}
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/NavPointMessage.java | 2048 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/NavPointMessage.java | 2607 |
"<b>DoorOpened</b> = " + String.valueOf(isDoorOpened()
) + " <br/> " +
"<b>Mover</b> = " + String.valueOf(getMover()
) + " <br/> " +
"<b>LiftOffset</b> = " + String.valueOf(getLiftOffset()
) + " <br/> " +
"<b>LiftJumpExit</b> = " + String.valueOf(isLiftJumpExit()
) + " <br/> " +
"<b>NoDoubleJump</b> = " + String.valueOf(isNoDoubleJump()
) + " <br/> " +
"<b>InvSpot</b> = " + String.valueOf(isInvSpot()
) + " <br/> " +
"<b>PlayerStart</b> = " + String.valueOf(isPlayerStart()
) + " <br/> " +
"<b>TeamNumber</b> = " + String.valueOf(getTeamNumber()
) + " <br/> " +
"<b>DomPoint</b> = " + String.valueOf(isDomPoint()
) + " <br/> " + |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/NavPointMessage.java | 1972 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/NavPointMessage.java | 2513 |
"DoorOpened = " + String.valueOf(isDoorOpened()
) + " | " +
"Mover = " + String.valueOf(getMover()
) + " | " +
"LiftOffset = " + String.valueOf(getLiftOffset()
) + " | " +
"LiftJumpExit = " + String.valueOf(isLiftJumpExit()
) + " | " +
"NoDoubleJump = " + String.valueOf(isNoDoubleJump()
) + " | " +
"InvSpot = " + String.valueOf(isInvSpot()
) + " | " +
"PlayerStart = " + String.valueOf(isPlayerStart()
) + " | " +
"TeamNumber = " + String.valueOf(getTeamNumber()
) + " | " +
"DomPoint = " + String.valueOf(isDomPoint()
) + " | " + |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/NavPoint.java | 538 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/NavPointStaticImpl.java | 1452 |
"<b>ItemClass</b> = " + String.valueOf(getItemClass()
) + " <br/> " +
"<b>Mover</b> = " + String.valueOf(getMover()
) + " <br/> " +
"<b>LiftOffset</b> = " + String.valueOf(getLiftOffset()
) + " <br/> " +
"<b>LiftJumpExit</b> = " + String.valueOf(isLiftJumpExit()
) + " <br/> " +
"<b>NoDoubleJump</b> = " + String.valueOf(isNoDoubleJump()
) + " <br/> " +
"<b>InvSpot</b> = " + String.valueOf(isInvSpot()
) + " <br/> " +
"<b>PlayerStart</b> = " + String.valueOf(isPlayerStart()
) + " <br/> " +
"<b>TeamNumber</b> = " + String.valueOf(getTeamNumber()
) + " <br/> " +
"<b>DomPoint</b> = " + String.valueOf(isDomPoint()
) + " <br/> " + |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/agent/navigation/navmesh/LevelGeometry.java | 316 |
cz/cuni/amis/pogamut/ut2004/agent/navigation/navmesh/NavMesh.java | 692 |
double[] v3 = getVertex(polygon[2]);
Point3D p1 = new Point3D(v1[0], v1[1], v1[2]);
Vector3D vector1 = new Vector3D(v2[0]-v1[0], v2[1]-v1[1], v2[2]-v1[2]);
Vector3D vector2 = new Vector3D(v3[0]-v1[0], v3[1]-v1[1], v3[2]-v1[2]);
Plane3D plane = new Plane3D(p1, vector1, vector2); |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/translator/bot/state/ReadyState.java | 34 |
cz/cuni/amis/pogamut/ut2004/communication/translator/server/state/GameInfoExpectedState.java | 27 |
public class CommunicationTerminatedState extends AbstractServerFSMState<InfoMessage, TranslatorContext>{
@Override
public void init(TranslatorContext context) {
}
@Override
public void restart(TranslatorContext context) {
}
@Override
public void stateEntering(TranslatorContext context,
IFSMState<InfoMessage, TranslatorContext> fromState,
InfoMessage symbol) {
}
@Override
public void stateLeaving(TranslatorContext context,
IFSMState<InfoMessage, TranslatorContext> toState, InfoMessage symbol) {
}
@Override
protected void innerStateSymbol(TranslatorContext context, InfoMessage symbol) {
throw new UnexpectedMessageException(TranslatorMessages.unexpectedMessage(this, symbol), context.getLogger(), this);
}
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/MoverSharedImpl.java | 70 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/NavPointSharedImpl.java | 70 |
throw new PogamutException("Trying to create a NavPointSharedImpl with invalid property (invalid property token): " +
this.Id.getStringId() + " / " + property.getPropertyId().getPropertyToken().getToken() , this);
}
propertyMap.put(property.getPropertyId(), property);
if (pId.getPropertyToken().getToken().equals("Location"))
{
this.myLocation = (LocationProperty)property;
}
if (pId.getPropertyToken().getToken().equals("Velocity"))
{
this.myVelocity = (VelocityProperty)property;
}
if (pId.getPropertyToken().getToken().equals("ItemSpawned")) |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/PlayerMessage.java | 637 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/SelfMessage.java | 1105 |
}
/**
*
For UE2. Holds left emoticon of the bot, "None" means none set.
*/
protected
String EmotLeft =
null;
/**
* Whether property 'EmotLeft' was received from GB2004.
*/
protected boolean EmotLeft_Set = false;
@Override
/**
*
For UE2. Holds left emoticon of the bot, "None" means none set.
*/
public String getEmotLeft()
{
return EmotLeft;
}
/**
*
For UE2. Holds center emoticon of the bot, "None" means none set.
*/
protected
String EmotCenter =
null;
/**
* Whether property 'EmotCenter' was received from GB2004.
*/
protected boolean EmotCenter_Set = false;
@Override
/**
*
For UE2. Holds center emoticon of the bot, "None" means none set.
*/
public String getEmotCenter()
{
return EmotCenter;
}
/**
*
For UE2. Holds right emoticon of the bot, "None" means none set.
*/
protected
String EmotRight =
null;
/**
* Whether property 'EmotRight' was received from GB2004.
*/
protected boolean EmotRight_Set = false;
@Override
/**
*
For UE2. Holds right emoticon of the bot, "None" means none set.
*/
public String getEmotRight()
{
return EmotRight;
}
/**
*
For UE2. Holds the bubble of the emoticon of the bot, "None" means none set.
*/
protected
String Bubble =
null;
/**
* Whether property 'Bubble' was received from GB2004.
*/
protected boolean Bubble_Set = false;
@Override
/**
*
For UE2. Holds the bubble of the emoticon of the bot, "None" means none set.
*/
public String getBubble()
{
return Bubble;
}
/**
*
For UE2. Current played animation of the bot.
*/
protected
String Anim =
null;
/**
* Whether property 'Anim' was received from GB2004.
*/
protected boolean Anim_Set = false;
@Override
/**
*
For UE2. Current played animation of the bot.
*/
public String getAnim()
{
return Anim;
}
private SelfLocal localPart = null; |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/analyzer/UT2004AnalyzerFullObserver.java | 114 |
cz/cuni/amis/pogamut/ut2004/analyzer/UT2004AnalyzerObserver.java | 81 |
path += getObservedBotId().toString();
path += ".csv";
}
return path;
}
/**
* Called whenever {@link GameRestart} message with {@link GameRestarted#isStarted()} is received.
* <p><p>
* You probably won't need to override this method, better override {@link UT2004AnalyzerObserver#gameRestartEnd()}, that
* is the place where you should reset data collection statistics / start them in case of {@link UT2004AnalyzerObserverParameters#isWaitForMatchRestart()}.
* <p><p>
* Current implementation is empty.
*/
protected void gameRestartStarted() {
}
/**
* Called whenever {@link GameRestart} message with {@link GameRestarted#isFinished()} is received.
* <p><p>
* Place where you should reset data collection statistics / start them
* in case of {@link UT2004AnalyzerObserverParameters#isWaitForMatchRestart()}.
* <p><p>
* Current implementation is empty.
*/
protected void gameRestartEnd() {
}
/**
* Initialize the observer to listen on the {@link UT2004AnalyzerObserverParameters#getObservedAgentId()} that is obtained from
* the {@link UT2004AnalyzerObserver#getParams()}.
*/
@Override
protected void startAgent() {
super.startAgent();
getAct().act(new InitializeObserver().setId(getParams().getObservedAgentId()));
configureObserver();
}
@Override
protected void startPausedAgent() {
super.startPausedAgent();
getAct().act(new InitializeObserver().setId(getParams().getObservedAgentId()));
configureObserver();
}
/**
* Called from the {@link UT2004AnalyzerObserver#startAgent()} after {@link InitializeObserver} command
* is sent to configure the observer instance.
* <p><p>
* Actually enables {@link Self}, {@link MyInventory} and async messages (i.e., {@link BotKilled}).
*/
protected void configureObserver() { |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/MoverStaticImpl.java | 148 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/MoverStaticImpl.java | 188 |
public MoverStaticImpl(MoverStaticImpl original) {
this.Id = original.getId()
;
this.DamageTrig = original.isDamageTrig()
;
this.Type = original.getType()
;
this.IsMoving = original.isIsMoving()
;
this.MoveTime = original.getMoveTime()
;
this.OpenTime = original.getOpenTime()
;
this.BasePos = original.getBasePos()
;
this.BaseRot = original.getBaseRot()
;
this.DelayTime = original.getDelayTime()
;
this.NavPointMarker = original.getNavPointMarker()
;
this.SimTime = original.getSimTime();
}
/**
* Cloning constructor from the message part.
*
* @param original
*/
public MoverStaticImpl(MoverStatic original) { |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/AutoTraceRayLocalImpl.java | 162 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/AutoTraceRayLocalImpl.java | 202 |
public AutoTraceRayLocalImpl(AutoTraceRayLocalImpl original) {
this.Id = original.getId()
;
this.From = original.getFrom()
;
this.To = original.getTo()
;
this.FastTrace = original.isFastTrace()
;
this.FloorCorrection = original.isFloorCorrection()
;
this.Result = original.isResult()
;
this.HitNormal = original.getHitNormal()
;
this.HitLocation = original.getHitLocation()
;
this.TraceActors = original.isTraceActors()
;
this.HitId = original.getHitId()
;
this.SimTime = original.getSimTime();
}
/**
* Cloning constructor from the message part.
*
* @param original
*/
public AutoTraceRayLocalImpl(AutoTraceRayLocal original) { |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/Player.java | 500 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/Self.java | 665 |
)
+ ", " +
(getEmotLeft()
== null ? "null" :
"\"" + getEmotLeft()
+ "\""
)
+ ", " +
(getEmotCenter()
== null ? "null" :
"\"" + getEmotCenter()
+ "\""
)
+ ", " +
(getEmotRight()
== null ? "null" :
"\"" + getEmotRight()
+ "\""
)
+ ", " +
(getBubble()
== null ? "null" :
"\"" + getBubble()
+ "\""
)
+ ", " +
(getAnim()
== null ? "null" :
"\"" + getAnim()
+ "\""
)
+ ")";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=base+classtype[@name=abstract]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=base+classtype[@name=abstract]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/NavPoint.java | 199 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/NavPointStatic.java | 158 |
public abstract boolean isDomPoint()
;
/**
*
If this point marks a door mover.
*/
public abstract boolean isDoor()
;
/**
*
If this point marks a lift center (used to mark center of a lift mover, note that this point will be always moved with the lift).
*/
public abstract boolean isLiftCenter()
;
/**
*
If this point marks a lift exit (used to mark exit point of a lift mover).
*/
public abstract boolean isLiftExit()
;
/**
*
If this point is an AI marker - marks an interesting spot in the environment. May be ambush point or sniping spot, etc.
*/
public abstract boolean isAIMarker()
;
/**
*
If this point marks a jump spot (a special device that causes the bot to jump high or far).
*/
public abstract boolean isJumpSpot()
;
/**
*
If this point marks a jump pad (a special device that causes the bot to jump high or far).
*/
public abstract boolean isJumpPad()
;
/**
*
If this point marks a jump destination - some place that can be reached by some special jump.
*/
public abstract boolean isJumpDest()
;
/**
*
If this point marks a teleport.
*/
public abstract boolean isTeleporter()
;
/**
*
If the type is AIMarker. The rotation the bot should be
facing, when doing the action specified by AIMarker. Sent only in HandShake.
*/
public abstract Rotation getRotation()
;
/**
*
Some ambush point, where is good chance to intercept
approaching opponents. Sent only in HandShake.
*/
public abstract boolean isRoamingSpot()
;
/**
* Point good for sniping. Sent only in HandShake.
*/
public abstract boolean isSnipingSpot()
;
/**
* If item should be present at this navpoint it's instance will be here.
*/
public abstract Item getItemInstance()
;
/**
* Maps edge-LEADING_TO-navpoint-UnrealId to neighbour link, those are outgoing edges (those edges that originates in this navpoint going to another one, those you may usually travel).
*/
public abstract Map<UnrealId, NavPointNeighbourLink> getOutgoingEdges()
;
/**
* Maps edge-ORIGINATES_FROM-navpoint-UnrealId to neighbour link, those are incoming edges (those edges that originates in different navpoint and ends here, do not use this to ask whether you can get to navpoint of specific unreal id, use OutgoingEdges instead).
*/
public abstract Map<UnrealId, NavPointNeighbourLink> getIncomingEdges()
;
/**
*
Class of the weapon that should be prefered when using this
point for AIMarker specified action. Sent only in HandShake.
*/
public abstract String getPreferedWeapon()
;
@Override
public boolean isDifferentFrom(IStaticWorldObject other) |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/ConfigChangeLocalImpl.java | 921 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/SelfLocalImpl.java | 1454 |
throw new PogamutException("Unsupported object type for update. Expected SelfLocalImpl for object " + object.getId() +", not object of class " + object.getClass().getSimpleName() + ".", this);
}
/**
* Simulation time in MILLI SECONDS !!!
*/
@Override
public long getSimTime() {
return this.time;
}
@Override
public IWorldObject getObject() {
return data;
}
@Override
public WorldObjectId getId() {
return data.getId();
}
}
public String toString() {
return
super.toString() + "[" +
"Id = " + String.valueOf(getId()
) + " | " +
"BotId = " + String.valueOf(getBotId()
) + " | " + |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/bot/command/ImprovedShooting.java | 364 |
cz/cuni/amis/pogamut/ut2004/bot/command/ImprovedShooting.java | 393 |
public boolean shoot(WeaponPref pref, ILocated target) {
if (pref == null) return false;
if (currentWeapon == pref.getWeapon()) {
if (pref.isPrimary()) shoot(target);
else shootSecondary(target);
return true;
}
if (!mayChangeWeapon()) {
if (lastShooting != null && currentWeapon == lastShooting.getWeapon()) {
if (lastShooting.isPrimary()) shoot(target);
else shootSecondary(target);
} else {
shoot(target);
}
return true;
}
return shootNow(pref, target);
}
/**
* Will start shooting with {@link Weapon#getType()} primary/secondary (as specified) at 'target'.
* <p><p>
* Obeys {@link ImprovedShooting#getChangeWeaponCooldown()}.
*
* @param weapon
* @param usePrimaryMode
* @param target
* @return whether the bot is shooting (i.e., has enough ammo to do so)
*/
public boolean shoot(Weapon weapon, boolean usePrimaryMode, UnrealId target) { |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/PlayerSharedImpl.java | 107 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/VehicleSharedImpl.java | 85 |
if (pId.getPropertyToken().getToken().equals("Rotation"))
{
this.myRotation = (RotationProperty)property;
}
if (pId.getPropertyToken().getToken().equals("Location"))
{
this.myLocation = (LocationProperty)property;
}
if (pId.getPropertyToken().getToken().equals("Velocity"))
{
this.myVelocity = (VelocityProperty)property;
}
if (pId.getPropertyToken().getToken().equals("Team"))
{
this.myTeam = (IntegerProperty)property; |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/ConfigChange.java | 67 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/ConfigChangeLocal.java | 72 |
}
/**
* Id of this config message. This Id is generated from BotId, string "_CONFCH" is added at the end.
*/
public abstract UnrealId getId()
;
/**
* Unique Id of the bot.
*/
public abstract UnrealId getBotId()
;
/**
*
True if we have to spawn the bot manually after each death
*/
public abstract boolean isManualSpawn()
;
/**
*
True if the bot is using auto ray tracing (is provided with
synchronous ATR messages). See ATR messages for more
details.
*/
public abstract boolean isAutoTrace()
;
/**
* The bot's name.
*/
public abstract String getName()
;
/**
*
Bots default speed will be multiplied by this number. Ranges from 0.1 to 2 (default, can be set in ini in [GameBots2004.RemoteBot] MaxSpeed).
*/
public abstract double getSpeedMultiplier()
;
/**
*
Bot rotation rate. Default rotation rate is: (Pitch=3072,Yaw=60000,Roll=2048) and may be configured in ini file in [GameBots2004.RemoteBot] DefaultRotationRate. (pitch - up/down, yaw - left/right, roll - equivalent of doing a cartwheel)
*/
public abstract Rotation getRotationRate()
;
/**
*
If bot is invulnerable (cannot die) or not.
*/
public abstract boolean isInvulnerable()
;
/**
*
The delay between two self message synchronous batches
(can range from 0.01 to 2 seconds). Will be used only if NewSelfBatchProtocol
attribute is set to true in INIT message.
*/
public abstract double getSelfUpdateTime()
;
/**
*
The delay between two synchronous batches containing vision updates
(can range from 0.1 to 2 seconds). If NewSelfBatchProtocol
attribute is set to true in INIT message, more batch messages containing only
SELF message will arrive between two vision update batches (containing PLR,PRJ,INV.. messages).
*/
public abstract double getVisionTime()
;
/**
*
Holds information how many times faster is exported location update message (UPD) compared to sync. batch, e.g. when this multiplier is set to 5 and vision time is 250 ms, UPD message will arrive every 50 ms.
*/
public abstract int getLocUpdateMultiplier()
;
/**
*
If some additional debug information will be shown in the
UT2004 server console window.
*/
public abstract boolean isShowDebug()
;
/**
*
If true an actor visualizing the location the bot is
actually looking at will appear in the game.
*/
public abstract boolean isShowFocalPoint()
;
/**
*
if the GB should draw lines representing the auto ray traces
of the bot (for more information see ATR message).
*/
public abstract boolean isDrawTraceLines()
;
/**
*
It informs if sending of all GB synchronous messages is
enabled or disabled.
*/
public abstract boolean isSynchronousOff()
;
/**
*
It enables/disables automatic pickup of the bot. If true the items can be picked up through PICK command.
*/
public abstract boolean isAutoPickupOff()
;
/**
*
Name of current BDI action.
*/
public abstract String getAction()
;
public ConfigChangeLocal getLocal() { |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/translator/bot/state/MoverListState.java | 32 |
cz/cuni/amis/pogamut/ut2004/communication/translator/observer/state/MutatorListState.java | 31 |
super(MutatorListStart.class, Mutator.class, MutatorListEnd.class);
}
@Override
public void stateEntering(TranslatorContext context, IFSMState<InfoMessage, TranslatorContext> fromState, InfoMessage symbol) {
super.restart(context);
super.stateEntering(context, fromState, symbol);
}
@Override
public void stateLeaving(TranslatorContext context, IFSMState<InfoMessage, TranslatorContext> toState, InfoMessage symbol) {
super.stateLeaving(context, toState, symbol);
long simTime =
(symbol instanceof IWorldChangeEvent ? ((IWorldChangeEvent)symbol).getSimTime() : 0);
context.getEventQueue().pushEvent(new MutatorListObtained(getList(), simTime)); |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/NavPoint.java | 614 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/Vehicle.java | 357 |
)
+ ", " +
(getLocation()
== null ? "null" :
"[" + getLocation()
.getX() + ", " + getLocation()
.getY() + ", " + getLocation()
.getZ() + "]"
)
+ ", " +
(getVelocity()
== null ? "null" :
"[" + getVelocity()
.getX() + ", " + getVelocity()
.getY() + ", " + getVelocity()
.getZ() + "]"
)
+ ", " +
String.valueOf(isVisible()
)
+ ", " + |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/AutoTraceRay.java | 315 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/TraceResponse.java | 432 |
)
+ ", " +
String.valueOf(isResult()
)
+ ", " +
(getHitNormal()
== null ? "null" :
"[" + getHitNormal()
.getX() + ", " + getHitNormal()
.getY() + ", " + getHitNormal()
.getZ() + "]"
)
+ ", " +
(getHitLocation()
== null ? "null" :
"[" + getHitLocation()
.getX() + ", " + getHitLocation()
.getY() + ", " + getHitLocation()
.getZ() + "]"
)
+ ", " + |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/bot/command/AdvancedLocomotion.java | 148 |
cz/cuni/amis/pogamut/ut2004/bot/command/AdvancedLocomotion.java | 173 |
public void strafeRight(double distance) {
if (self == null) {
self = agent.getWorldView().getSingle(Self.class);
}
if (self != null) {
Location startLoc = self.getLocation();
Location directionVector = self.getRotation().toLocation();
Location targetVec = directionVector.cross(new Location(0, 0, 1)).getNormalized().scale(-distance);
agent.getAct().act(
new Move().setFirstLocation(startLoc.add(targetVec)).setFocusLocation( |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/analyzer/UT2004Analyzer.java | 201 |
cz/cuni/amis/pogamut/ut2004/analyzer/UT2004Analyzer.java | 216 |
super.startPausedAgent();
if (getParams().getHumanLikeObserving() != null && getParams().getHumanLikeObserving()) {
File humanLike_outputFileDir = new File(getParams().getOutputPath());
humanLike_outputFileDir.mkdirs();
humanLike_outputFile = new File(getParams().getOutputPath() + System.getProperty("file.separator") + "humanLikeData.log");
try {
humanLike_writer = new PrintWriter(new FileOutputStream(humanLike_outputFile));
} catch (FileNotFoundException e) {
throw new RuntimeException("Could not create writer for human-like log at: " + humanLike_outputFile.getAbsolutePath());
}
}
}
@Override
protected void stopAgent() { |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/bot/command/AdvancedLocomotion.java | 223 |
cz/cuni/amis/pogamut/ut2004/bot/command/AdvancedLocomotion.java | 248 |
public void strafeLeft(double distance) {
if (self == null) {
self = agent.getWorldView().getSingle(Self.class);
}
if (self != null) {
Location startLoc = self.getLocation();
Location directionVector = self.getRotation().toLocation();
Location targetVec = directionVector.cross(new Location(0, 0, 1)).getNormalized().scale(distance);
agent.getAct().act(
new Move().setFirstLocation(startLoc.add(targetVec)).setFocusLocation( |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/factory/guice/remoteagent/UT2004ObserverModule.java | 58 |
cz/cuni/amis/pogamut/ut2004/factory/guice/remoteagent/UT2004ServerModule.java | 61 |
public class UT2004ServerModule<PARAMS extends UT2004AgentParameters> extends UT2004CommunicationModule<PARAMS> {
/**
* Dependency provider for the world view, so the world view know when to start.
*/
protected AdaptableProvider<ComponentDependencies> worldViewDependenciesProvider = new AdaptableProvider<ComponentDependencies>(null);
@Override
public void prepareNewAgent(PARAMS agentParameters) {
super.prepareNewAgent(agentParameters);
worldViewDependenciesProvider.set(new ComponentDependencies(ComponentDependencyType.STARTS_WITH).add(agentParameters.getAgentId()));
}
@Override
protected void configureModules() {
super.configureModules();
addModule(new AbstractModule() {
@Override
public void configure() {
bind(IWorldMessageTranslator.class).to(ServerFSM.class); |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/Player.java | 354 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/SelfMessage.java | 2312 |
"Action = " + String.valueOf(getAction()
) + " | " +
"EmotLeft = " + String.valueOf(getEmotLeft()
) + " | " +
"EmotCenter = " + String.valueOf(getEmotCenter()
) + " | " +
"EmotRight = " + String.valueOf(getEmotRight()
) + " | " +
"Bubble = " + String.valueOf(getBubble()
) + " | " +
"Anim = " + String.valueOf(getAnim()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " + |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/HearNoise.java | 274 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/HearPickup.java | 257 |
+
(getSource()
== null ? "null" :
"\"" + getSource()
.getStringId() + "\""
)
+ ", " +
(getType()
== null ? "null" :
"\"" + getType()
+ "\""
)
+ ", " +
(getRotation()
== null ? "null" :
"[" + getRotation()
.getPitch() + ", " + getRotation()
.getYaw() + ", " + getRotation()
.getRoll() + "]"
)
+ ", " +
String.valueOf(getDistance()
)
+ ")";
}
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=all]) ---
// --- Extra Java from XML BEGIN (extra/code/java/javapart/classcategory[@name=event+classtype[@name=impl]) ---
// --- Extra Java from XML END (extra/code/java/javapart/classcategory[@name=event+classtype[@name=impl]) ---
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/BombInfo.java | 248 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/BombInfoShared.java | 173 |
"HolderTeam = " + String.valueOf(getHolderTeam()
) + " | " +
"State = " + String.valueOf(getState()
) + " | " +
"]";
}
public String toHtmlString() {
return super.toString() + "[<br/>" +
"<b>Id</b> = " + String.valueOf(getId()
) + " <br/> " +
"<b>Velocity</b> = " + String.valueOf(getVelocity()
) + " <br/> " +
"<b>Location</b> = " + String.valueOf(getLocation()
) + " <br/> " +
"<b>Holder</b> = " + String.valueOf(getHolder()
) + " <br/> " +
"<b>HolderTeam</b> = " + String.valueOf(getHolderTeam()
) + " <br/> " + |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/bot/command/AdvancedLocomotion.java | 124 |
cz/cuni/amis/pogamut/ut2004/bot/command/AdvancedLocomotion.java | 173 |
public void strafeRight(double distance, ILocated focusLocation) {
if (self == null) {
self = agent.getWorldView().getSingle(Self.class);
}
if (self != null) {
Location startLoc = self.getLocation();
Location directionVector = self.getRotation().toLocation();
Location targetVec = directionVector.cross(new Location(0, 0, 1)).getNormalized().scale(-distance);
agent.getAct().act(
new Move().setFirstLocation(startLoc.add(targetVec)).setFocusLocation(focusLocation.getLocation())); |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/Yylex.java | 5926 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/Yylex.java | 5952 |
protected UnrealId worldObjectIdValue(String txt) {
if (txt == null || txt.toLowerCase().equals("none")) return UnrealId.NONE;
try {
String token = getToken(txt, 1);
if (token == null) {
warning("Can't get UnrealId token from text '"+txt+"'.");
return null;
}
return translator.getId(token);
} catch (NullPointerException e) {
warning("Can't get UnrealId token from text '"+txt+"' (translator not set?).");
return null;
} catch (Exception e) {
exceptionOccured(e, "Can't get UnrealId token from text '"+txt+"'.");
return null;
}
} |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/IncomingProjectile.java | 343 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/Vehicle.java | 356 |
.getRoll() + "]"
)
+ ", " +
(getLocation()
== null ? "null" :
"[" + getLocation()
.getX() + ", " + getLocation()
.getY() + ", " + getLocation()
.getZ() + "]"
)
+ ", " +
(getVelocity()
== null ? "null" :
"[" + getVelocity()
.getX() + ", " + getVelocity()
.getY() + ", " + getVelocity()
.getZ() + "]"
)
+ ", " +
String.valueOf(getTeam() |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/AutoTraceRay.java | 292 |
cz/cuni/amis/pogamut/ut2004/communication/messages/gbinfomessages/FastTraceResponse.java | 268 |
"\"" + getId()
+ "\""
)
+ ", " +
(getFrom()
== null ? "null" :
"[" + getFrom()
.getX() + ", " + getFrom()
.getY() + ", " + getFrom()
.getZ() + "]"
)
+ ", " +
(getTo()
== null ? "null" :
"[" + getTo()
.getX() + ", " + getTo()
.getY() + ", " + getTo()
.getZ() + "]"
)
+ ", " +
String.valueOf(isResult() |
File | Line |
---|
cz/cuni/amis/pogamut/ut2004/bot/command/AdvancedLocomotion.java | 199 |
cz/cuni/amis/pogamut/ut2004/bot/command/AdvancedLocomotion.java | 248 |
public void strafeLeft(double distance, ILocated focusLocation) {
if (self == null) {
self = agent.getWorldView().getSingle(Self.class);
}
if (self != null) {
Location startLoc = self.getLocation();
Location directionVector = self.getRotation().toLocation();
Location targetVec = directionVector.cross(new Location(0, 0, 1)).getNormalized().scale(distance);
agent.getAct().act(
new Move().setFirstLocation(startLoc.add(targetVec)).setFocusLocation(focusLocation.getLocation())); |