public RoleStateCaretaker(RoleStateMemento roleState) { RoleState = roleState; }
public void RecoveryState(RoleStateMemento memento) { this.vit = memento.Vitality; this.atk = memento.Attack; this.def = memento.Defense; }
public void RecoveryState(RoleStateMemento memento) { Vitality = memento.Vitality; Attack = memento.Attack; Defense = memento.Defense; }
public void RecoveryState(RoleStateMemento memento) { this.Vitality = memento.Vit; this.Attack = memento.Atk; this.Defense = memento.Def; }