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