Walk() Update
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user