cpd_David_und_Yusuf/lib/models/player.dart

15 lines
500 B
Dart
Raw Normal View History

import 'package:werwolf/models/role.dart';
2024-06-18 01:46:57 +02:00
// Define a class named Player
class Player {
2024-06-18 01:46:57 +02:00
// Declare a string variable to store the player's name
String name;
2024-06-18 01:46:57 +02:00
// Declare a variable of type Role to store the player's role
Role role;
2024-06-18 01:46:57 +02:00
// Declare a boolean variable to indicate whether the player is dead
bool isDead;
2024-06-18 01:46:57 +02:00
// Constructor for the Player class with required parameters for name, role, and isDead status
Player({required this.name, required this.role, required this.isDead});
}