25 lines
572 B
C#
25 lines
572 B
C#
namespace Northbound
|
|
{
|
|
/// <summary>
|
|
/// 체력 정보를 제공하는 인터페이스
|
|
/// Building, Player, Enemy 등 체력바가 필요한 모든 유닛이 구현
|
|
/// </summary>
|
|
public interface IHealthProvider
|
|
{
|
|
/// <summary>
|
|
/// 현재 체력
|
|
/// </summary>
|
|
int GetCurrentHealth();
|
|
|
|
/// <summary>
|
|
/// 최대 체력
|
|
/// </summary>
|
|
int GetMaxHealth();
|
|
|
|
/// <summary>
|
|
/// 체력 비율 (0.0 ~ 1.0)
|
|
/// </summary>
|
|
float GetHealthPercentage();
|
|
}
|
|
}
|