wonders/lib/logic/data/collectible_data.dart

199 lines
4.5 KiB
Dart
Raw Permalink Normal View History

2022-08-29 20:38:28 -06:00
import 'package:wonders/common_libs.dart';
import 'package:wonders/logic/data/artifact_data.dart';
2022-08-29 20:38:28 -06:00
class CollectibleState {
static const int lost = 0;
static const int discovered = 1;
static const int explored = 2;
}
class CollectibleData {
CollectibleData({
required this.title,
required this.iconName,
required this.artifactId,
required this.wonder,
}) {
icon = AssetImage('${ImagePaths.collectibles}/$iconName.png');
}
final String title;
final String iconName;
late final ImageProvider icon;
final String artifactId;
final WonderType wonder;
String get id => artifactId;
String get subtitle => wondersLogic.getData(wonder).artifactCulture;
String get imageUrl => ArtifactData.getSelfHostedImageUrl(id);
String get imageUrlSmall => ArtifactData.getSelfHostedImageUrlSmall(id);
2022-08-29 20:38:28 -06:00
}
// Note: look up a human readable page with:
// https://www.metmuseum.org/art/collection/search/503940
// where 503940 is the ID.
List<CollectibleData> collectiblesData = [
// chichenItza
CollectibleData(
title: 'Pendant',
wonder: WonderType.chichenItza,
artifactId: '701645',
iconName: 'jewelry',
),
CollectibleData(
title: 'Bird Ornament',
wonder: WonderType.chichenItza,
artifactId: '310555',
iconName: 'jewelry',
),
CollectibleData(
title: 'La Prison, à Chichen-Itza',
wonder: WonderType.chichenItza,
artifactId: '286467',
iconName: 'picture',
),
// christRedeemer
CollectibleData(
title: 'Engraved Horn',
wonder: WonderType.christRedeemer,
artifactId: '501302',
iconName: 'statue',
),
CollectibleData(
title: 'Fixed fan',
wonder: WonderType.christRedeemer,
artifactId: '157985',
iconName: 'jewelry',
),
CollectibleData(
title: 'Handkerchiefs (one of two)',
wonder: WonderType.christRedeemer,
artifactId: '227759',
iconName: 'textile',
),
// colosseum
CollectibleData(
title: 'Glass hexagonal amphoriskos',
wonder: WonderType.colosseum,
artifactId: '245376',
iconName: 'vase',
),
CollectibleData(
title: 'Bronze plaque of Mithras slaying the bull',
wonder: WonderType.colosseum,
artifactId: '256570',
iconName: 'statue',
),
CollectibleData(
title: 'Interno del Colosseo',
wonder: WonderType.colosseum,
artifactId: '286136',
iconName: 'picture',
),
// greatWall
CollectibleData(
title: 'Biographies of Lian Po and Lin Xiangru',
wonder: WonderType.greatWall,
artifactId: '39918',
iconName: 'scroll',
),
CollectibleData(
title: 'Jar with Dragon',
wonder: WonderType.greatWall,
artifactId: '39666',
iconName: 'vase',
),
CollectibleData(
title: 'Panel with Peonies and Butterfly',
wonder: WonderType.greatWall,
artifactId: '39735',
iconName: 'textile',
),
// machuPicchu
CollectibleData(
title: 'Eight-Pointed Star Tunic',
wonder: WonderType.machuPicchu,
artifactId: '308120',
iconName: 'textile',
),
CollectibleData(
title: 'Camelid figurine',
wonder: WonderType.machuPicchu,
artifactId: '309960',
iconName: 'statue',
),
CollectibleData(
title: 'Double Bowl',
wonder: WonderType.machuPicchu,
artifactId: '313341',
iconName: 'vase',
),
// petra
CollectibleData(
title: 'Camel and riders',
wonder: WonderType.petra,
artifactId: '322592',
iconName: 'statue',
),
CollectibleData(
title: 'Vessel',
wonder: WonderType.petra,
artifactId: '325918',
iconName: 'vase',
),
CollectibleData(
title: 'Open bowl',
wonder: WonderType.petra,
artifactId: '326243',
iconName: 'vase',
),
// pyramidsGiza
CollectibleData(
title: 'Two papyrus fragments',
wonder: WonderType.pyramidsGiza,
artifactId: '546510',
iconName: 'scroll',
),
CollectibleData(
title: 'Fragmentary Face of King Khafre',
wonder: WonderType.pyramidsGiza,
artifactId: '543896',
iconName: 'statue',
),
CollectibleData(
title: 'Jewelry Elements',
wonder: WonderType.pyramidsGiza,
artifactId: '545728',
iconName: 'jewelry',
),
// tajMahal
CollectibleData(
title: 'Dagger with Scabbard',
wonder: WonderType.tajMahal,
artifactId: '24907',
iconName: 'jewelry',
),
CollectibleData(
title: 'The House of Bijapur',
wonder: WonderType.tajMahal,
artifactId: '453183',
iconName: 'picture',
),
CollectibleData(
title: 'Panel of Nasta\'liq Calligraphy',
wonder: WonderType.tajMahal,
artifactId: '453983',
iconName: 'scroll',
),
];