package com.zombie.game.model;

import lombok.Getter;

/** Player information within a room / 房间内的玩家信息 */
@Getter
public class PlayerInfo {
    // Player unique identifier / 玩家唯一标识
    private final String id;
    // Player display name / 玩家显示名称
    private final String name;
    // Whether the player is ready / 玩家是否已准备
    private boolean ready;

    // Create a new player info / 创建新的玩家信息
    public PlayerInfo(String id, String name) {
        this.id = id;
        this.name = name;
        this.ready = false;
    }

    // Set the ready state / 设置准备状态
    public void setReady(boolean ready) {
        this.ready = ready;
    }
}
