You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
고민
스탯은 보통 캐릭터, 장비 아이템, 버프에서 사용된다.
스탯은 개별적으로 사용되기보다는 스탯 컴포넌트에서 계산된 최종 스탯이 실제 계산에 이용된다.
또한, 게임에 따라 어떤 요소에 어떤 스탯이 추가될지 매우 유동적이기 때문에 클래스 상속으로 구현한다면
기획 변경에 따라 클래스 설계에 영향을 미칠 수 있다.
이러한 점에서 번거롭더라도 각각의 스탯마다 대응하는 인터페이스를 사용하는 것이 유연성에 도움이 되지 않을까 생각한다.
혹은 스탯 자체를 클래스로 설계?
All reactions