File tree Expand file tree Collapse file tree 3 files changed +15
-0
lines changed
engine/src/main/battlecode
instrumenter/bytecode/resources Expand file tree Collapse file tree 3 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -123,6 +123,15 @@ public interface RobotController {
123123 */
124124 int getMoney ();
125125
126+ /**
127+ * Alias for getMoney
128+ *
129+ * @return the amount of money this robot's team has
130+ *
131+ * @battlecode.doc.costlymethod
132+ */
133+ int getChips ();
134+
126135 /**
127136 * Returns what UnitType this robot is.
128137 *
Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ battlecode/common/RobotController/getAllLocationsWithinRadiusSquared 100 tru
4343battlecode/common/RobotController/getHealth 1 true
4444battlecode/common/RobotController/getID 1 true
4545battlecode/common/RobotController/getPaint 1 true
46+ battlecode/common/RobotController/getChips 1 true
4647battlecode/common/RobotController/getMoney 1 true
4748battlecode/common/RobotController/getType 1 true
4849battlecode/common/RobotController/getLocation 1 true
Original file line number Diff line number Diff line change @@ -151,6 +151,11 @@ public int getMoney() {
151151 return this .gameWorld .getTeamInfo ().getMoney (getTeam ());
152152 }
153153
154+ @ Override
155+ public int getChips () {
156+ return this .getMoney ();
157+ }
158+
154159 @ Override
155160 public UnitType getType (){
156161 return this .robot .getType ();
You can’t perform that action at this time.
0 commit comments