Repository navigation
Replies: 1 comment
요구 사항MaxHealth
Health
IsDead
Init
다이어그램클래스 다이어그램classDiagram
class AttributeSet{
+~~get~~ float Health
+~~set~~ float Health
+~~get~~ float MaxHealth
+~~set~~ float MaxHealth
+~~get~~ bool IsDead
+Init() void ~~virtual~~
}
테스트 구상sequenceDiagram
participant AttributeSetTests
participant AttributeSet
AttributeSetTests ->> AttributeSet: Max Health = Default Value
AttributeSetTests ->> AttributeSet: Init
par Init Test
AttributeSetTests ->> AttributeSet: Init(value)
AttributeSet -->> AttributeSetTests: IsDead
AttributeSetTests ->> AttributeSetTests: Compare IsDead With False
AttributeSet -->> AttributeSetTests: MaxHealth
AttributeSet -->> AttributeSetTests: Health
AttributeSetTests ->> AttributeSetTests: Compare HealthRatio With Expected
and SetMaxHealth Test
AttributeSetTests ->> AttributeSet: MaxHealth = value
AttributeSet -->> AttributeSetTests: MaxHealth
AttributeSetTests ->> AttributeSetTests: Compare MaxHealth With Expected
and SetHealth Test
AttributeSetTests ->> AttributeSet: Health = MaxHealth * value
AttributeSet -->> AttributeSetTests: Health
AttributeSetTests ->> AttributeSetTests: Compare Health With Expected
and IsDead Test
AttributeSetTests ->> AttributeSet: Health = value
AttributeSet -->> AttributeSetTests: IsDead
AttributeSetTests ->> AttributeSetTests: Compare IsDead With Expected
and HealthRatio Test
AttributeSetTests ->> AttributeSet: Health = MaxHealth * expected
AttributeSetTests ->> AttributeSet: MaxHealth = value
AttributeSet -->> AttributeSetTests: MaxHealth
AttributeSet -->> AttributeSetTests: Health
AttributeSetTests ->> AttributeSetTests: Compare HealthRatio With Expected
end
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
체력 컴포넌트 기능을 개발해봅시다
All reactions