You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<tdclass="colLast"><code><spanclass="memberNameLink"><ahref="../../battlecode/common/Transaction.html#compareTo-battlecode.common.Transaction-">compareTo</a></span>(<ahref="../../battlecode/common/Transaction.html" title="class in battlecode.common">Transaction</a> other)</code>
155
-
<divclass="block">Transactions with higher cost have higher priority.</div>
156
+
<divclass="block">Transactions with higher cost have higher priority, then transactions with
157
+
higher randomly generated id, then (if two transactions somehow collide in
158
+
randomly generated id) transaction that is lexicographically earlier.</div>
156
159
</td>
157
160
</tr>
158
161
<trid="i1" class="rowColor">
@@ -189,14 +192,15 @@ <h3>Methods inherited from class java.lang.Object</h3>
189
192
<!-- -->
190
193
</a>
191
194
<h3>Constructor Detail</h3>
192
-
<aname="Transaction-int-int:A-">
195
+
<aname="Transaction-int-int:A-int-">
193
196
<!-- -->
194
197
</a>
195
198
<ulclass="blockListLast">
196
199
<liclass="blockList">
197
200
<h4>Transaction</h4>
198
201
<pre>public Transaction(int cost,
199
-
int[] message)</pre>
202
+
int[] message,
203
+
int id)</pre>
200
204
</li>
201
205
</ul>
202
206
</li>
@@ -241,7 +245,9 @@ <h4>getSerializedMessage</h4>
241
245
<liclass="blockList">
242
246
<h4>compareTo</h4>
243
247
<pre>public int compareTo(<ahref="../../battlecode/common/Transaction.html" title="class in battlecode.common">Transaction</a> other)</pre>
244
-
<divclass="block">Transactions with higher cost have higher priority.</div>
248
+
<divclass="block">Transactions with higher cost have higher priority, then transactions with
249
+
higher randomly generated id, then (if two transactions somehow collide in
250
+
randomly generated id) transaction that is lexicographically earlier.</div>
<dd><code>compareTo</code> in interface <code>java.lang.Comparable<<ahref="../../battlecode/common/Transaction.html" title="class in battlecode.common">Transaction</a>></code></dd>
<litype="circle">battlecode.common.<ahref="../../battlecode/common/Direction.html" title="enum in battlecode.common"><spanclass="typeNameLink">Direction</span></a></li>
106
-
<litype="circle">battlecode.common.<ahref="../../battlecode/common/Team.html" title="enum in battlecode.common"><spanclass="typeNameLink">Team</span></a></li>
107
105
<litype="circle">battlecode.common.<ahref="../../battlecode/common/RobotType.html" title="enum in battlecode.common"><spanclass="typeNameLink">RobotType</span></a></li>
108
106
<litype="circle">battlecode.common.<ahref="../../battlecode/common/GameActionExceptionType.html" title="enum in battlecode.common"><spanclass="typeNameLink">GameActionExceptionType</span></a></li>
107
+
<litype="circle">battlecode.common.<ahref="../../battlecode/common/Direction.html" title="enum in battlecode.common"><spanclass="typeNameLink">Direction</span></a></li>
108
+
<litype="circle">battlecode.common.<ahref="../../battlecode/common/Team.html" title="enum in battlecode.common"><spanclass="typeNameLink">Team</span></a></li>
Copy file name to clipboardExpand all lines: frontend/public/javadoc/index-all.html
+4-2
Original file line number
Diff line number
Diff line change
@@ -245,7 +245,9 @@ <h2 class="title">C</h2>
245
245
</dd>
246
246
<dt><spanclass="memberNameLink"><ahref="battlecode/common/Transaction.html#compareTo-battlecode.common.Transaction-">compareTo(Transaction)</a></span> - Method in class battlecode.common.<ahref="battlecode/common/Transaction.html" title="class in battlecode.common">Transaction</a></dt>
247
247
<dd>
248
-
<divclass="block">Transactions with higher cost have higher priority.</div>
248
+
<divclass="block">Transactions with higher cost have higher priority, then transactions with
249
+
higher randomly generated id, then (if two transactions somehow collide in
250
+
randomly generated id) transaction that is lexicographically earlier.</div>
249
251
</dd>
250
252
<dt><spanclass="memberNameLink"><ahref="battlecode/common/RobotType.html#cost">cost</a></span> - Variable in enum battlecode.common.<ahref="battlecode/common/RobotType.html" title="enum in battlecode.common">RobotType</a></dt>
251
253
<dd>
@@ -808,7 +810,7 @@ <h2 class="title">T</h2>
808
810
<dd> </dd>
809
811
<dt><ahref="battlecode/common/Transaction.html" title="class in battlecode.common"><spanclass="typeNameLink">Transaction</span></a> - Class in <ahref="battlecode/common/package-summary.html">battlecode.common</a></dt>
810
812
<dd> </dd>
811
-
<dt><spanclass="memberNameLink"><ahref="battlecode/common/Transaction.html#Transaction-int-int:A-">Transaction(int, int[])</a></span> - Constructor for class battlecode.common.<ahref="battlecode/common/Transaction.html" title="class in battlecode.common">Transaction</a></dt>
813
+
<dt><spanclass="memberNameLink"><ahref="battlecode/common/Transaction.html#Transaction-int-int:A-int-">Transaction(int, int[], int)</a></span> - Constructor for class battlecode.common.<ahref="battlecode/common/Transaction.html" title="class in battlecode.common">Transaction</a></dt>
812
814
<dd> </dd>
813
815
<dt><spanclass="memberNameLink"><ahref="battlecode/common/MapLocation.html#translate-int-int-">translate(int, int)</a></span> - Method in class battlecode.common.<ahref="battlecode/common/MapLocation.html" title="class in battlecode.common">MapLocation</a></dt>
Copy file name to clipboardExpand all lines: frontend/public/specs.html
+13-1
Original file line number
Diff line number
Diff line change
@@ -169,7 +169,7 @@
169
169
<div class="main">
170
170
171
171
<h1 id="battlecode-2020">Battlecode 2020</h1>
172
-
<p><em>The formal specification of this year’s game.</em> Current version: 2020.1.0.7</p>
172
+
<p><em>The formal specification of this year’s game.</em> Current version: 2020.1.0.8</p>
173
173
<p><em>Warning: This document and the game it describes will be tweaked as the competition progresses. We’ll try to keep changes to a minimum, but will likely have to make modifications to keep the game balanced. Any significant changes will be done before the Seeding Tournament.</em></p>
174
174
<h2 id="background">Background</h2>
175
175
<p>As we all know, the world is changing. Water levels are rising, pollution is becoming a global problem, and we are rapidly depleting our most valuable natural resource: soup. This year’s game is as much about surviving the changing climate as defeating the enemy team.</p>
<p>If something is unclear, direct your questions to our <a href="https://discordapp.com/channels/386965718572466197/401552721095688193">Discord</a> where other people may have the same question. We’ll update this spec as the competition progresses.</p>
Copy file name to clipboardExpand all lines: specs/specs.html
+13-1
Original file line number
Diff line number
Diff line change
@@ -169,7 +169,7 @@
169
169
<div class="main">
170
170
171
171
<h1 id="battlecode-2020">Battlecode 2020</h1>
172
-
<p><em>The formal specification of this year’s game.</em> Current version: 2020.1.0.7</p>
172
+
<p><em>The formal specification of this year’s game.</em> Current version: 2020.1.0.8</p>
173
173
<p><em>Warning: This document and the game it describes will be tweaked as the competition progresses. We’ll try to keep changes to a minimum, but will likely have to make modifications to keep the game balanced. Any significant changes will be done before the Seeding Tournament.</em></p>
174
174
<h2 id="background">Background</h2>
175
175
<p>As we all know, the world is changing. Water levels are rising, pollution is becoming a global problem, and we are rapidly depleting our most valuable natural resource: soup. This year’s game is as much about surviving the changing climate as defeating the enemy team.</p>
<p>If something is unclear, direct your questions to our <a href="https://discordapp.com/channels/386965718572466197/401552721095688193">Discord</a> where other people may have the same question. We’ll update this spec as the competition progresses.</p>
0 commit comments