mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 14:28:43 +00:00
Started merging received packets from the sample stream and reading lats and lons to move boats from them.
#story[820]
This commit is contained in:
@@ -44,11 +44,11 @@ public class TeamsParser extends FileParser {
|
||||
*/
|
||||
public ArrayList<Boat> getBoats() {
|
||||
ArrayList<Boat> boats = new ArrayList<>();
|
||||
|
||||
try {
|
||||
NodeList nodes = this.doc.getElementsByTagName("team");
|
||||
for (int i = 0; i < nodes.getLength(); i++) {
|
||||
Node node = nodes.item(i);
|
||||
|
||||
boats.add(parseBoat(node));
|
||||
}
|
||||
return boats;
|
||||
|
||||
Reference in New Issue
Block a user