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"); }
Rectangle GetRectFromLocation(Location location) { return new Rectangle(location.X * Game1.cellWidth, location.Y * Game1.cellHeight, Game1.cellWidth, Game1.cellHeight); }
void UpdateLocation(Location lastLocation) { AgentManager.UpdateLocation(this, location, lastLocation); }