Implemented new Round data class
This commit is contained in:
19
lib/data/round.dart
Normal file
19
lib/data/round.dart
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
/// This class represents a single round in the game.
|
||||||
|
/// It is stored within the [GameSession] class.
|
||||||
|
/// [roundNum] is the number of the round its reppresenting.
|
||||||
|
/// [scores] is a list of the actual scores the players got.
|
||||||
|
/// [scoreUpdates] is a list of how the players scores updated this round.
|
||||||
|
/// [kamikaze] is the index of the player who got kamikaze. If no one got
|
||||||
|
/// kamikaze, this value is null.
|
||||||
|
class Round {
|
||||||
|
final int roundNum;
|
||||||
|
List<int> scores;
|
||||||
|
List<int> scoreUpdates;
|
||||||
|
int? kamikaze;
|
||||||
|
|
||||||
|
Round(
|
||||||
|
{required this.roundNum,
|
||||||
|
required this.scores,
|
||||||
|
required this.scoreUpdates,
|
||||||
|
this.kamikaze});
|
||||||
|
}
|
||||||
@@ -2,7 +2,7 @@ name: cabo_counter
|
|||||||
description: "Mobile app for the card game CABO"
|
description: "Mobile app for the card game CABO"
|
||||||
publish_to: 'none'
|
publish_to: 'none'
|
||||||
|
|
||||||
version: 0.1.3+57
|
version: 0.1.3+63
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ^3.5.4
|
sdk: ^3.5.4
|
||||||
|
|||||||
Reference in New Issue
Block a user