Walk() Update
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
using PeopleVille.Equipment;
|
using PeopleVille.Equipment;
|
||||||
|
using PeopleVille.Locations;
|
||||||
|
|
||||||
namespace PeopleVille.Persons
|
namespace PeopleVille.Persons
|
||||||
{
|
{
|
||||||
@@ -10,11 +11,12 @@ namespace PeopleVille.Persons
|
|||||||
public object Location { get; set; }
|
public object Location { get; set; }
|
||||||
public int Money { get; set; }
|
public int Money { get; set; }
|
||||||
public int Age { get; set; }
|
public int Age { get; set; }
|
||||||
|
public Location CurrentLocation { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
public void Walk(Location newLocation)
|
||||||
public void Walk(object location)
|
|
||||||
{
|
{
|
||||||
this.Location = location;
|
this.CurrentLocation = newLocation;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user