From c37d657bd041880cee772e637ab5e2530b0f40e6 Mon Sep 17 00:00:00 2001 From: aqys <51910@edu.sde.dk> Date: Wed, 25 Mar 2026 12:01:51 +0100 Subject: [PATCH] Walk() Update --- PeopleVille/Person/Person.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/PeopleVille/Person/Person.cs b/PeopleVille/Person/Person.cs index 7d33bb6..add620d 100644 --- a/PeopleVille/Person/Person.cs +++ b/PeopleVille/Person/Person.cs @@ -1,4 +1,5 @@ using PeopleVille.Equipment; +using PeopleVille.Locations; namespace PeopleVille.Persons { @@ -10,11 +11,12 @@ namespace PeopleVille.Persons public object Location { get; set; } public int Money { get; set; } public int Age { get; set; } + public Location CurrentLocation { get; set; } + - - public void Walk(object location) + public void Walk(Location newLocation) { - this.Location = location; + this.CurrentLocation = newLocation; } } } \ No newline at end of file