package com.example.demo01.service;

import com.example.demo01.entity.Player;

public interface PlayerService {
    // 获取当前在线玩家状态
    Player getPlayerStatus(Long playerId);

    // 玩家移动到新房间
    boolean moveToRoom(Long playerId, Long newRoomId);

    // 玩家受到伤害
    void takeDamage(Long playerId, Integer damage);

    // 结算奖励（金币、经验）
    void addRewards(Long playerId, Integer exp, Integer gold);
}