@@ -357,9 +357,8 @@ public class MatchMaker {
357357
358358 // Round statistics
359359 private TIntArrayList teamIDs ;
360- private TIntArrayList teamEnemyDamage ;
361360 private TIntArrayList teamCatDamage ;
362- private TIntArrayList teamCheeseAmounts ;
361+ private TIntArrayList teamCheeseTransferred ;
363362 private TIntArrayList teamAliveRatKings ;
364363 private TIntArrayList teamAliveBabyRats ;
365364 private TIntArrayList teamRatTrapCount ;
@@ -389,9 +388,8 @@ public class MatchMaker {
389388
390389 public MatchMaker () {
391390 this .teamIDs = new TIntArrayList ();
392- this .teamEnemyDamage = new TIntArrayList ();
393391 this .teamCatDamage = new TIntArrayList ();
394- this .teamCheeseAmounts = new TIntArrayList ();
392+ this .teamCheeseTransferred = new TIntArrayList ();
395393 this .teamAliveRatKings = new TIntArrayList ();
396394 this .teamAliveBabyRats = new TIntArrayList ();
397395 this .teamDirtCount = new TIntArrayList ();
@@ -508,9 +506,8 @@ public void endRound() {
508506 createEvent ((builder ) -> {
509507 // Round statistics
510508 int teamIDsP = Round .createTeamIdsVector (builder , teamIDs .toNativeArray ());
511- int teamCheeseAmountsP = Round .createTeamCheeseAmountsVector (builder ,
512- teamCheeseAmounts .toNativeArray ());
513- int teamEnemyDamageP = Round .createTeamEnemyDamageVector (builder , teamEnemyDamage .toNativeArray ());
509+ int teamCheeseTransferredP = Round .createTeamCheeseTransferredVector (builder ,
510+ teamCheeseTransferred .toNativeArray ());
514511 int teamCatDamageP = Round .createTeamCatDamageVector (builder , teamCatDamage .toNativeArray ());
515512 int teamAliveRatKingsP = Round .createTeamAliveRatKingsVector (builder , teamAliveRatKings .toNativeArray ());
516513 int teamAliveBabyRatsP = Round .createTeamAliveBabyRatsVector (builder , teamAliveBabyRats .toNativeArray ());
@@ -524,8 +521,7 @@ public void endRound() {
524521
525522 Round .addTeamIds (builder , teamIDsP );
526523 Round .addRoundId (builder , this .currentRound );
527- Round .addTeamCheeseAmounts (builder , teamCheeseAmountsP );
528- Round .addTeamEnemyDamage (builder , teamEnemyDamageP );
524+ Round .addTeamCheeseTransferred (builder , teamCheeseTransferredP );
529525 Round .addTeamCatDamage (builder , teamCatDamageP );
530526 Round .addTeamAliveBabyRats (builder , teamAliveBabyRatsP );
531527 Round .addTeamAliveRatKings (builder , teamAliveRatKingsP );
@@ -581,9 +577,9 @@ public void addDamageAction(int damagedRobotID, int damage) {
581577 });
582578 }
583579
584- public void addRatNapAction (int grabbedRobotID ) {
580+ public void addRatNapAction (int grabberRobotID ) {
585581 applyToBuilders ((builder ) -> {
586- int action = RatNap .createRatNap (builder , grabbedRobotID );
582+ int action = RatNap .createRatNap (builder , grabberRobotID );
587583 builder .addAction (action , Action .RatNap );
588584 });
589585 }
@@ -604,9 +600,9 @@ public void addThrowAction(int thrownRobotID, MapLocation throwDirLocation) {
604600 }
605601
606602 /// Visually indicate an rat bite
607- public void addBiteAction (int otherID ) {
603+ public void addBiteAction (int biterID ) {
608604 applyToBuilders ((builder ) -> {
609- int action = RatAttack .createRatAttack (builder , otherID );
605+ int action = RatAttack .createRatAttack (builder , biterID );
610606 builder .addAction (action , Action .RatAttack );
611607 });
612608 }
@@ -722,10 +718,9 @@ public void addDieAction(int id, boolean fromException) {
722718 });
723719 }
724720
725- public void addTeamInfo (Team team , int totalCheeseAmount , int enemyDamage , int catDamage , int aliveRatKings , int aliveBabyRats , int amountDirtCollected , int ratTrapCount , int catTrapCount ) {
721+ public void addTeamInfo (Team team , int cheeseTransferred , int catDamage , int aliveRatKings , int aliveBabyRats , int amountDirtCollected , int ratTrapCount , int catTrapCount ) {
726722 teamIDs .add (TeamMapping .id (team ));
727- teamCheeseAmounts .add (totalCheeseAmount );
728- teamEnemyDamage .add (enemyDamage );
723+ teamCheeseTransferred .add (cheeseTransferred );
729724 teamCatDamage .add (catDamage );
730725 teamAliveRatKings .add (aliveRatKings );
731726 teamAliveBabyRats .add (aliveBabyRats );
@@ -803,9 +798,8 @@ private int locationToInt(MapLocation loc) {
803798
804799 private void clearRoundData () {
805800 this .teamIDs .clear ();
806- this .teamEnemyDamage .clear ();
807801 this .teamCatDamage .clear ();
808- this .teamCheeseAmounts .clear ();
802+ this .teamCheeseTransferred .clear ();
809803 this .teamAliveRatKings .clear ();
810804 this .teamAliveBabyRats .clear ();
811805 this .teamDirtCount .clear ();
0 commit comments