1
0
Fork 0
mirror of https://github.com/Nioux/AideDeJeu.git synced 2025-10-30 06:56:10 +00:00

Ajustements

This commit is contained in:
Yan Maniez 2020-02-22 00:59:48 +01:00
parent 0d81ea6799
commit 033f7ec94a
3 changed files with 74 additions and 41 deletions

View file

@ -103,8 +103,23 @@ class MonsterItem extends Item {
}
}
class MonsterItems extends Item {
class Items extends Item {
Items.fromMap(Map<String, dynamic> map)
: super.fromMap(map) {
}
}
class FilteredItems extends Items {
String Family;
FilteredItems.fromMap(Map<String, dynamic> map)
: super.fromMap(map) {
this.Family = map["Family"];
}
}
class MonsterItems extends FilteredItems {
String Type;
String Size;
String Alignment;
@ -132,7 +147,6 @@ class MonsterItems extends Item {
MonsterItems.fromMap(Map<String, dynamic> map)
: super.fromMap(map) {
this.Family = map["Family"];
this.Type = map["Type"];
this.Size = map["Size"];
this.Alignment = map["Alignment"];