Skip to content

Commit 3115de0

Browse files
authored
Update Item.cs
1 parent 1f5a109 commit 3115de0

File tree

1 file changed

+13
-13
lines changed
  • OOP Preparation Exams/OOP Retake Exam - 19 December 2020/Warcroft/Entities/Items

1 file changed

+13
-13
lines changed

OOP Preparation Exams/OOP Retake Exam - 19 December 2020/Warcroft/Entities/Items/Item.cs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)