mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 14:28:43 +00:00
Changed the team names to their abbreviated versions
- Also halved the size of the wake lines - Updated tests to support the shorter team names - Wake lines are now hidden with the other annotations Tags: #story[23,21]
This commit is contained in:
@@ -27,7 +27,7 @@ public class TeamsParser extends FileParser {
|
||||
String name = element.getElementsByTagName("name").item(0).getTextContent();
|
||||
String alias = element.getElementsByTagName("alias").item(0).getTextContent();
|
||||
double velocity = Double.valueOf(element.getElementsByTagName("velocity").item(0).getTextContent());
|
||||
Boat boat = new Boat(name, velocity);
|
||||
Boat boat = new Boat(name, velocity, alias);
|
||||
return boat;
|
||||
} else {
|
||||
throw new NoSuchElementException("Cannot generate a boat by given node");
|
||||
|
||||
Reference in New Issue
Block a user