File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed
OOP Preparation Exams/OOP Retake Exam - 19 December 2020/Warcroft/Entities/Items Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -8,19 +8,19 @@ namespace WarCroft.Entities.Items
88 // Christmas came early this year - this class is already implemented for you!
99 public abstract class Item
1010 {
11- protected Item ( int weight )
12- {
13- this . Weight = weight ;
14- }
11+ protected Item ( int weight )
12+ {
13+ this . Weight = weight ;
14+ }
1515
16- public int Weight { get ; }
16+ public int Weight { get ; }
1717
18- public virtual void AffectCharacter ( Character character )
19- {
20- if ( ! character . IsAlive )
21- {
22- throw new InvalidOperationException ( ExceptionMessages . AffectedCharacterDead ) ;
23- }
24- }
25- }
18+ public virtual void AffectCharacter ( Character character )
19+ {
20+ if ( ! character . IsAlive )
21+ {
22+ throw new InvalidOperationException ( ExceptionMessages . AffectedCharacterDead ) ;
23+ }
24+ }
25+ }
2626}
You can’t perform that action at this time.
0 commit comments