15 lines
500 B
Dart
15 lines
500 B
Dart
import 'package:werwolf/models/role.dart';
|
|
|
|
// Define a class named Player
|
|
class Player {
|
|
// Declare a string variable to store the player's name
|
|
String name;
|
|
// Declare a variable of type Role to store the player's role
|
|
Role role;
|
|
// Declare a boolean variable to indicate whether the player is dead
|
|
bool isDead;
|
|
|
|
// Constructor for the Player class with required parameters for name, role, and isDead status
|
|
Player({required this.name, required this.role, required this.isDead});
|
|
}
|