Esempio n. 1
0
 static Location()
 {
     shack = Game1.grid.AddNamedLocation("shack", "shack");
     cemetery = Game1.grid.AddNamedLocation("cemetery", "cemetery");
     bank = Game1.grid.AddNamedLocation("bank", "bank");
     saloon = Game1.grid.AddNamedLocation("saloon", "saloon");
     outlawCamp = Game1.grid.AddNamedLocation("outlawCamp", "outlawcamp");
     sheriffsOffice = Game1.grid.AddNamedLocation("sheriff's office", "sheriffsoffice");
     undertakers = Game1.grid.AddNamedLocation("undertakers", "undertakers");
     goldMine = Game1.grid.AddNamedLocation("gold mine", "goldmine");
 }
Esempio n. 2
0
 Rectangle GetRectFromLocation(Location location)
 {
     return new Rectangle(location.X * Game1.cellWidth, location.Y * Game1.cellHeight, Game1.cellWidth, Game1.cellHeight);
 }
Esempio n. 3
0
 void UpdateLocation(Location lastLocation)
 {
     AgentManager.UpdateLocation(this, location, lastLocation);
 }