public void serialize(RbSerializerN serializer, ByteBuffer buffer, Object obje) { var obj = (DebugProperty) obje; serializer.serialize(buffer, obj.key); serializer.serialize(buffer, obj.value); }
public void serialize(RbSerializerN serializer, ByteBuffer buffer, object objec) { var obj = (BattleEndedEvent)objec; serializer.serialize(buffer, obj.aborted); serializer.serialize(buffer, RbSerializerN.BattleResults_TYPE, obj.results); }
public void serialize(RbSerializerN serializer, ByteBuffer buffer, object objec) { var obj = (HitByBulletEvent)objec; serializer.serialize(buffer, RbSerializerN.Bullet_TYPE, obj.bullet); serializer.serialize(buffer, obj.bearing); }
public void serialize(RbSerializerN serializer, ByteBuffer buffer, Object obje) { var obj = (TeamMessage)obje; serializer.serialize(buffer, obj.sender); serializer.serialize(buffer, obj.recipient); serializer.serialize(buffer, obj.message); }
public void serialize(RbSerializerN serializer, ByteBuffer buffer, Object obje) { var obj = (TeamMessage) obje; serializer.serialize(buffer, obj.sender); serializer.serialize(buffer, obj.recipient); serializer.serialize(buffer, obj.message); }
public void serialize(RbSerializerN serializer, ByteBuffer buffer, object objec) { var obj = (BulletHitEvent)objec; serializer.serialize(buffer, obj.bullet.getBulletId()); serializer.serialize(buffer, obj.name); serializer.serialize(buffer, obj.energy); }
public void serialize(RbSerializerN serializer, ByteBuffer buffer, object objec) { var obj = (BulletHitBulletEvent)objec; // no need to transmit whole bullet, rest of it is already known to proxy side serializer.serialize(buffer, obj.bullet.getBulletId()); serializer.serialize(buffer, RbSerializerN.Bullet_TYPE, obj.hitBullet); }
public void serialize(RbSerializerN serializer, ByteBuffer buffer, Object obje) { RoundEndedEvent evnt = (RoundEndedEvent)obje; serializer.serialize(buffer, evnt.round); serializer.serialize(buffer, evnt.turns); serializer.serialize(buffer, evnt.totalTurns); }
public void serialize(RbSerializerN serializer, ByteBuffer buffer, Object obje) { var obj = (BulletCommand)obje; serializer.serialize(buffer, obj.power); serializer.serialize(buffer, obj.fireAssistValid); serializer.serialize(buffer, obj.fireAssistAngle); serializer.serialize(buffer, obj.bulletId); }
public void serialize(RbSerializerN serializer, ByteBuffer buffer, object objec) { var obj = (HitRobotEvent)objec; serializer.serialize(buffer, obj.name); serializer.serialize(buffer, obj.bearing); serializer.serialize(buffer, obj.energy); serializer.serialize(buffer, obj.atFault); }
public void serialize(RbSerializerN serializer, ByteBuffer buffer, Object obje) { var obj = (BulletCommand) obje; serializer.serialize(buffer, obj.power); serializer.serialize(buffer, obj.fireAssistValid); serializer.serialize(buffer, obj.fireAssistAngle); serializer.serialize(buffer, obj.bulletId); }
public void serialize(RbSerializerN serializer, ByteBuffer buffer, Object obje) { var obj = (BulletStatus)obje; serializer.serialize(buffer, obj.bulletId); serializer.serialize(buffer, obj.victimName); serializer.serialize(buffer, obj.isActive); serializer.serialize(buffer, obj.x); serializer.serialize(buffer, obj.y); }
public void serialize(RbSerializerN serializer, ByteBuffer buffer, Object obje) { var obj = (BulletStatus) obje; serializer.serialize(buffer, obj.bulletId); serializer.serialize(buffer, obj.victimName); serializer.serialize(buffer, obj.isActive); serializer.serialize(buffer, obj.x); serializer.serialize(buffer, obj.y); }
public void serialize(RbSerializerN serializer, ByteBuffer buffer, object objec) { var obj = (KeyReleasedEvent) objec; serializer.serialize(buffer, obj.KeyChar); serializer.serialize(buffer, obj.KeyCode); serializer.serialize(buffer, obj.KeyLocation); serializer.serialize(buffer, obj.ID); serializer.serialize(buffer, obj.ModifiersEx); serializer.serialize(buffer, obj.When); }
public void serialize(RbSerializerN serializer, ByteBuffer buffer, object objec) { var obj = (MouseClickedEvent) objec; serializer.serialize(buffer, obj.Button); serializer.serialize(buffer, obj.ClickCount); serializer.serialize(buffer, obj.X); serializer.serialize(buffer, obj.Y); serializer.serialize(buffer, obj.ID); serializer.serialize(buffer, obj.ModifiersEx); serializer.serialize(buffer, obj.When); }
public void serialize(RbSerializerN serializer, ByteBuffer buffer, Object obje) { var obj = (ExecResults)obje; serializer.serialize(buffer, obj.halt); serializer.serialize(buffer, obj.shouldWait); serializer.serialize(buffer, obj.paintEnabled); serializer.serialize(buffer, RbSerializerN.ExecCommands_TYPE, obj.commands); serializer.serialize(buffer, RbSerializerN.RobotStatus_TYPE, obj.status); foreach (Event evnt in obj.events) { serializer.serialize(buffer, evnt); } buffer.put(RbSerializerN.TERMINATOR_TYPE); foreach (TeamMessage message in obj.teamMessages) { serializer.serialize(buffer, RbSerializerN.TeamMessage_TYPE, message); } buffer.put(RbSerializerN.TERMINATOR_TYPE); foreach (BulletStatus bulletStatus in obj.bulletUpdates) { serializer.serialize(buffer, RbSerializerN.BulletStatus_TYPE, bulletStatus); } buffer.put(RbSerializerN.TERMINATOR_TYPE); }
public void serialize(RbSerializerN serializer, ByteBuffer buffer, object objec) { var obj = (MouseWheelMovedEvent)objec; serializer.serialize(buffer, obj.ClickCount); serializer.serialize(buffer, obj.X); serializer.serialize(buffer, obj.Y); serializer.serialize(buffer, obj.ScrollType); serializer.serialize(buffer, obj.ScrollAmount); serializer.serialize(buffer, obj.WheelRotation); serializer.serialize(buffer, obj.ID); serializer.serialize(buffer, obj.ModifiersEx); serializer.serialize(buffer, obj.When); }
public void serialize(RbSerializerN serializer, ByteBuffer buffer, object objec) { var obj = (Bullet)objec; serializer.serialize(buffer, obj.headingRadians); serializer.serialize(buffer, obj.x); serializer.serialize(buffer, obj.y); serializer.serialize(buffer, obj.power); serializer.serialize(buffer, obj.ownerName); serializer.serialize(buffer, obj.victimName); serializer.serialize(buffer, obj._isActive); serializer.serialize(buffer, obj.bulletId); }
public void serialize(RbSerializerN serializer, ByteBuffer buffer, object objec) { var obj = (MouseEnteredEvent)objec; serializer.serialize(buffer, obj.Button); serializer.serialize(buffer, obj.ClickCount); serializer.serialize(buffer, obj.X); serializer.serialize(buffer, obj.Y); serializer.serialize(buffer, obj.ID); serializer.serialize(buffer, obj.ModifiersEx); serializer.serialize(buffer, obj.When); }
public void serialize(RbSerializerN serializer, ByteBuffer buffer, object objec) { var obj = (ScannedRobotEvent)objec; serializer.serialize(buffer, obj.name); serializer.serialize(buffer, obj.energy); serializer.serialize(buffer, obj.heading); serializer.serialize(buffer, obj.bearing); serializer.serialize(buffer, obj.distance); serializer.serialize(buffer, obj.velocity); serializer.serialize(buffer, obj.isSentryRobot); }
public void serialize(RbSerializerN serializer, ByteBuffer buffer, object objec) { var obj = (KeyTypedEvent)objec; serializer.serialize(buffer, obj.KeyChar); serializer.serialize(buffer, obj.KeyCode); serializer.serialize(buffer, obj.KeyLocation); serializer.serialize(buffer, obj.ID); serializer.serialize(buffer, obj.ModifiersEx); serializer.serialize(buffer, obj.When); }
public void serialize(RbSerializerN serializer, ByteBuffer buffer, object obje) { var obj = (RobotStatics) obje; serializer.serialize(buffer, obj.robocodeVersion); serializer.serialize(buffer, obj.isJuniorRobot); serializer.serialize(buffer, obj.isInteractiveRobot); serializer.serialize(buffer, obj.isPaintRobot); serializer.serialize(buffer, obj.isAdvancedRobot); serializer.serialize(buffer, obj.isTeamRobot); serializer.serialize(buffer, obj.isTeamLeader); serializer.serialize(buffer, obj.isDroid); serializer.serialize(buffer, obj.isSentryRobot); serializer.serialize(buffer, obj.name); serializer.serialize(buffer, obj.shortName); serializer.serialize(buffer, obj.veryShortName); serializer.serialize(buffer, obj.fullClassName); serializer.serialize(buffer, obj.shortClassName); serializer.serialize(buffer, obj.battleRules.BattlefieldWidth); serializer.serialize(buffer, obj.battleRules.BattlefieldHeight); serializer.serialize(buffer, obj.battleRules.NumRounds); serializer.serialize(buffer, obj.battleRules.GunCoolingRate); serializer.serialize(buffer, obj.battleRules.InactivityTime); serializer.serialize(buffer, obj.battleRules.HideEnemyNames); serializer.serialize(buffer, obj.battleRules.SentryBorderSize); if (obj.teammates != null) { foreach (string mate in obj.teammates) { serializer.serialize(buffer, mate); } } buffer.putInt(-1); serializer.serialize(buffer, obj.teamName); serializer.serialize(buffer, obj.index); serializer.serialize(buffer, obj.contestantIndex); }
public void serialize(RbSerializerN serializer, ByteBuffer buffer, object objec) { var obj = (BulletHitBulletEvent) objec; // no need to transmit whole bullet, rest of it is already known to proxy side serializer.serialize(buffer, obj.bullet.getBulletId()); serializer.serialize(buffer, RbSerializerN.Bullet_TYPE, obj.hitBullet); }
public void serialize(RbSerializerN serializer, ByteBuffer buffer, Object obje) { var obj = (ExecCommands)obje; serializer.serialize(buffer, obj.bodyTurnRemaining); serializer.serialize(buffer, obj.radarTurnRemaining); serializer.serialize(buffer, obj.gunTurnRemaining); serializer.serialize(buffer, obj.distanceRemaining); serializer.serialize(buffer, obj.isAdjustGunForBodyTurn); serializer.serialize(buffer, obj.isAdjustRadarForGunTurn); serializer.serialize(buffer, obj.isAdjustRadarForBodyTurn); serializer.serialize(buffer, obj.isAdjustRadarForBodyTurnSet); serializer.serialize(buffer, obj.bodyColor); serializer.serialize(buffer, obj.gunColor); serializer.serialize(buffer, obj.radarColor); serializer.serialize(buffer, obj.scanColor); serializer.serialize(buffer, obj.bulletColor); serializer.serialize(buffer, obj.maxTurnRate); serializer.serialize(buffer, obj.maxVelocity); serializer.serialize(buffer, obj.moved); serializer.serialize(buffer, obj.scan); serializer.serialize(buffer, obj.isIORobot); serializer.serialize(buffer, obj.isTryingToPaint); serializer.serialize(buffer, obj.outputText); serializer.serialize(buffer, obj.graphicsCalls); foreach (BulletCommand bullet in obj.bullets) { serializer.serialize(buffer, RbSerializerN.BulletCommand_TYPE, bullet); } buffer.put(RbSerializerN.TERMINATOR_TYPE); foreach (TeamMessage message in obj.teamMessages) { serializer.serialize(buffer, RbSerializerN.TeamMessage_TYPE, message); } buffer.put(RbSerializerN.TERMINATOR_TYPE); foreach (DebugProperty prop in obj.debugProperties) { serializer.serialize(buffer, RbSerializerN.DebugProperty_TYPE, prop); } buffer.put(RbSerializerN.TERMINATOR_TYPE); }
public void serialize(RbSerializerN serializer, ByteBuffer buffer, object objec) { var obj = (RobotDeathEvent)objec; serializer.serialize(buffer, obj.robotName); }
public void serialize(RbSerializerN serializer, ByteBuffer buffer, object obje) { var obj = (RobotStatics)obje; serializer.serialize(buffer, obj.isJuniorRobot); serializer.serialize(buffer, obj.isInteractiveRobot); serializer.serialize(buffer, obj.isPaintRobot); serializer.serialize(buffer, obj.isAdvancedRobot); serializer.serialize(buffer, obj.isTeamRobot); serializer.serialize(buffer, obj.isTeamLeader); serializer.serialize(buffer, obj.isDroid); serializer.serialize(buffer, obj.name); serializer.serialize(buffer, obj.shortName); serializer.serialize(buffer, obj.veryShortName); serializer.serialize(buffer, obj.fullClassName); serializer.serialize(buffer, obj.shortClassName); serializer.serialize(buffer, obj.battleRules.BattlefieldWidth); serializer.serialize(buffer, obj.battleRules.BattlefieldHeight); serializer.serialize(buffer, obj.battleRules.NumRounds); serializer.serialize(buffer, obj.battleRules.GunCoolingRate); serializer.serialize(buffer, obj.battleRules.InactivityTime); if (obj.teammates != null) { foreach (string mate in obj.teammates) { serializer.serialize(buffer, mate); } } buffer.putInt(-1); serializer.serialize(buffer, obj.teamName); serializer.serialize(buffer, obj.index); serializer.serialize(buffer, obj.contestantIndex); }
public void serialize(RbSerializerN serializer, ByteBuffer buffer, object objec) { var obj = (HitByBulletEvent) objec; serializer.serialize(buffer, RbSerializerN.Bullet_TYPE, obj.bullet); serializer.serialize(buffer, obj.bearing); }
public void serialize(RbSerializerN serializer, ByteBuffer buffer, object objec) { var obj = (SkippedTurnEvent)objec; serializer.serialize(buffer, obj.skippedTurn); }
public void serialize(RbSerializerN serializer, ByteBuffer buffer, object objec) { var obj = (HitWallEvent)objec; serializer.serialize(buffer, obj.bearing); }
public void serialize(RbSerializerN serializer, ByteBuffer buffer, Object obje) { RoundEndedEvent evnt = (RoundEndedEvent) obje; serializer.serialize(buffer, evnt.round); serializer.serialize(buffer, evnt.turns); serializer.serialize(buffer, evnt.totalTurns); }
public void serialize(RbSerializerN serializer, ByteBuffer buffer, object objec) { var obj = (Bullet) objec; serializer.serialize(buffer, obj.headingRadians); serializer.serialize(buffer, obj.x); serializer.serialize(buffer, obj.y); serializer.serialize(buffer, obj.power); serializer.serialize(buffer, obj.ownerName); serializer.serialize(buffer, obj.victimName); serializer.serialize(buffer, obj._isActive); }
public void serialize(RbSerializerN serializer, ByteBuffer buffer, object objec) { var obj = (RobotDeathEvent) objec; serializer.serialize(buffer, obj.robotName); }
public void serialize(RbSerializerN serializer, ByteBuffer buffer, object objec) { var obj = (BattleEndedEvent) objec; serializer.serialize(buffer, obj.aborted); serializer.serialize(buffer, RbSerializerN.BattleResults_TYPE, obj.results); }
public void serialize(RbSerializerN serializer, ByteBuffer buffer, object objec) { var obj = (RobotStatus) objec; serializer.serialize(buffer, obj.energy); serializer.serialize(buffer, obj.x); serializer.serialize(buffer, obj.y); serializer.serialize(buffer, obj.bodyHeading); serializer.serialize(buffer, obj.gunHeading); serializer.serialize(buffer, obj.radarHeading); serializer.serialize(buffer, obj.velocity); serializer.serialize(buffer, obj.bodyTurnRemaining); serializer.serialize(buffer, obj.radarTurnRemaining); serializer.serialize(buffer, obj.gunTurnRemaining); serializer.serialize(buffer, obj.distanceRemaining); serializer.serialize(buffer, obj.gunHeat); serializer.serialize(buffer, obj.others); serializer.serialize(buffer, obj.numSentries); serializer.serialize(buffer, obj.roundNum); serializer.serialize(buffer, obj.numRounds); serializer.serialize(buffer, obj.time); }
public void serialize(RbSerializerN serializer, ByteBuffer buffer, object objec) { var obj = (BulletMissedEvent)objec; serializer.serialize(buffer, obj.bullet.getBulletId()); }
public void serialize(RbSerializerN serializer, ByteBuffer buffer, object objec) { var obj = (HitRobotEvent) objec; serializer.serialize(buffer, obj.name); serializer.serialize(buffer, obj.bearing); serializer.serialize(buffer, obj.energy); serializer.serialize(buffer, obj.atFault); }
public void serialize(RbSerializerN serializer, ByteBuffer buffer, object objec) { var obj = (BattleResults)objec; serializer.serialize(buffer, obj.teamLeaderName); serializer.serialize(buffer, obj.rank); serializer.serialize(buffer, obj.score); serializer.serialize(buffer, obj.survival); serializer.serialize(buffer, obj.lastSurvivorBonus); serializer.serialize(buffer, obj.bulletDamage); serializer.serialize(buffer, obj.bulletDamageBonus); serializer.serialize(buffer, obj.ramDamage); serializer.serialize(buffer, obj.ramDamageBonus); serializer.serialize(buffer, obj.firsts); serializer.serialize(buffer, obj.seconds); serializer.serialize(buffer, obj.thirds); }
private void put(String value) { serializer.serialize(calls, value); }
public void serialize(RbSerializerN serializer, ByteBuffer buffer, object objec) { var obj = (BulletMissedEvent) objec; serializer.serialize(buffer, obj.bullet.getBulletId()); }
public void serialize(RbSerializerN serializer, ByteBuffer buffer, object objec) { var obj = (MouseWheelMovedEvent) objec; serializer.serialize(buffer, obj.ClickCount); serializer.serialize(buffer, obj.X); serializer.serialize(buffer, obj.Y); serializer.serialize(buffer, obj.ScrollType); serializer.serialize(buffer, obj.ScrollAmount); serializer.serialize(buffer, obj.WheelRotation); serializer.serialize(buffer, obj.ID); serializer.serialize(buffer, obj.ModifiersEx); serializer.serialize(buffer, obj.When); }
public void serialize(RbSerializerN serializer, ByteBuffer buffer, Object obje) { var obj = (ExecCommands) obje; serializer.serialize(buffer, obj.bodyTurnRemaining); serializer.serialize(buffer, obj.radarTurnRemaining); serializer.serialize(buffer, obj.gunTurnRemaining); serializer.serialize(buffer, obj.distanceRemaining); serializer.serialize(buffer, obj.isAdjustGunForBodyTurn); serializer.serialize(buffer, obj.isAdjustRadarForGunTurn); serializer.serialize(buffer, obj.isAdjustRadarForBodyTurn); serializer.serialize(buffer, obj.isAdjustRadarForBodyTurnSet); serializer.serialize(buffer, obj.bodyColor); serializer.serialize(buffer, obj.gunColor); serializer.serialize(buffer, obj.radarColor); serializer.serialize(buffer, obj.scanColor); serializer.serialize(buffer, obj.bulletColor); serializer.serialize(buffer, obj.maxTurnRate); serializer.serialize(buffer, obj.maxVelocity); serializer.serialize(buffer, obj.moved); serializer.serialize(buffer, obj.scan); serializer.serialize(buffer, obj.isIORobot); serializer.serialize(buffer, obj.isTryingToPaint); serializer.serialize(buffer, obj.outputText); serializer.serialize(buffer, obj.graphicsCalls); foreach (BulletCommand bullet in obj.bullets) { serializer.serialize(buffer, RbSerializerN.BulletCommand_TYPE, bullet); } buffer.put(RbSerializerN.TERMINATOR_TYPE); foreach (TeamMessage message in obj.teamMessages) { serializer.serialize(buffer, RbSerializerN.TeamMessage_TYPE, message); } buffer.put(RbSerializerN.TERMINATOR_TYPE); foreach (DebugProperty prop in obj.debugProperties) { serializer.serialize(buffer, RbSerializerN.DebugProperty_TYPE, prop); } buffer.put(RbSerializerN.TERMINATOR_TYPE); }
public void serialize(RbSerializerN serializer, ByteBuffer buffer, object objec) { var obj = (ScannedRobotEvent) objec; serializer.serialize(buffer, obj.name); serializer.serialize(buffer, obj.energy); serializer.serialize(buffer, obj.heading); serializer.serialize(buffer, obj.bearing); serializer.serialize(buffer, obj.distance); serializer.serialize(buffer, obj.velocity); serializer.serialize(buffer, obj.isSentryRobot); }
public void serialize(RbSerializerN serializer, ByteBuffer buffer, object objec) { var obj = (HitWallEvent) objec; serializer.serialize(buffer, obj.bearing); }
public void serialize(RbSerializerN serializer, ByteBuffer buffer, object objec) { var obj = (BulletHitEvent) objec; serializer.serialize(buffer, obj.bullet.getBulletId()); serializer.serialize(buffer, obj.name); serializer.serialize(buffer, obj.energy); }
public void serialize(RbSerializerN serializer, ByteBuffer buffer, Object obje) { var obj = (ExecResults) obje; serializer.serialize(buffer, obj.halt); serializer.serialize(buffer, obj.shouldWait); serializer.serialize(buffer, obj.paintEnabled); serializer.serialize(buffer, RbSerializerN.ExecCommands_TYPE, obj.commands); serializer.serialize(buffer, RbSerializerN.RobotStatus_TYPE, obj.status); foreach (Event evnt in obj.events) { serializer.serialize(buffer, evnt); } buffer.put(RbSerializerN.TERMINATOR_TYPE); foreach (TeamMessage message in obj.teamMessages) { serializer.serialize(buffer, RbSerializerN.TeamMessage_TYPE, message); } buffer.put(RbSerializerN.TERMINATOR_TYPE); foreach (BulletStatus bulletStatus in obj.bulletUpdates) { serializer.serialize(buffer, RbSerializerN.BulletStatus_TYPE, bulletStatus); } buffer.put(RbSerializerN.TERMINATOR_TYPE); }
public void serialize(RbSerializerN serializer, ByteBuffer buffer, object objec) { var obj = (RobotStatus)objec; serializer.serialize(buffer, obj.energy); serializer.serialize(buffer, obj.x); serializer.serialize(buffer, obj.y); serializer.serialize(buffer, obj.bodyHeading); serializer.serialize(buffer, obj.gunHeading); serializer.serialize(buffer, obj.radarHeading); serializer.serialize(buffer, obj.velocity); serializer.serialize(buffer, obj.bodyTurnRemaining); serializer.serialize(buffer, obj.radarTurnRemaining); serializer.serialize(buffer, obj.gunTurnRemaining); serializer.serialize(buffer, obj.distanceRemaining); serializer.serialize(buffer, obj.gunHeat); serializer.serialize(buffer, obj.others); serializer.serialize(buffer, obj.roundNum); serializer.serialize(buffer, obj.numRounds); serializer.serialize(buffer, obj.time); }