| Index: 2-4-extended/lib/common/utils.dart
|
| diff --git a/2-4-extended/lib/common/utils.dart b/2-4-extended/lib/common/utils.dart
|
| index 32a0a4639c19fda6c7f5af29753b87fad4e4c941..e9543875c533a01e89366f6aa056ce42f61670cf 100644
|
| --- a/2-4-extended/lib/common/utils.dart
|
| +++ b/2-4-extended/lib/common/utils.dart
|
| @@ -8,7 +8,35 @@ import 'dart:math' show Random;
|
|
|
| import 'messages.dart';
|
|
|
| -List<String> _forbiddenAppellations = [
|
| +// Proper pirate names and appellations.
|
| +const Map<String, List<String>> properPirateNames = const {
|
| +"names": const [ "Anne", "Bette", "Cate", "Dawn",
|
| + "Elise", "Faye", "Ginger", "Harriot",
|
| + "Izzy", "Jane", "Kaye", "Liz",
|
| + "Maria", "Nell", "Olive", "Pat",
|
| + "Queenie", "Rae", "Sal", "Tam",
|
| + "Uma", "Violet", "Wilma", "Xana",
|
| + "Yvonne", "Zelda",
|
| + "Abe", "Billy", "Caleb", "Davie",
|
| + "Eb", "Frank", "Gabe", "House",
|
| + "Icarus", "Jack", "Kurt", "Larry",
|
| + "Mike", "Nolan", "Oliver", "Pat",
|
| + "Quib", "Roy", "Sal", "Tom",
|
| + "Ube", "Val", "Walt", "Xavier",
|
| + "Yvan", "Zeb"],
|
| +"appellations": const [ "Awesome", "Captain",
|
| + "Even", "Fighter", "Great", "Hearty",
|
| + "Jackal", "King", "Lord",
|
| + "Mighty", "Noble", "Old", "Powerful",
|
| + "Quick", "Red", "Stalwart", "Tank",
|
| + "Ultimate", "Vicious", "Wily", "aXe", "Young",
|
| + "Brave", "Eager",
|
| + "Kind", "Sandy",
|
| + "Xeric", "Yellow", "Zesty"]
|
| +};
|
| +
|
| +// Clearly invalid pirate appellations.
|
| +const List<String> _forbiddenAppellations = const [
|
| null,
|
| '',
|
| 'sweet',
|
|
|