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