public void MoveNorth() { if (HasLocationToNorth) { CurrentLocation = CurrentWorld.locationAt(CurrentLocation.XCoordinate, CurrentLocation.YCoordinate + 1); } }
public void MoveWest() { if (HasLocationToWest) { CurrentLocation = CurrentWorld.locationAt(CurrentLocation.XCoordinate - 1, CurrentLocation.YCoordinate); } }
public GameSession() { CurrentPlayer = new Player { Name = "Bob the Jittery", CharacterClass = "Berserker", HitPoints = 10, Gold = 1000000, ExperiencePoints = 0, Level = 1 }; CurrentWorld = WorldFactory.CreateWorld(); CurrentLocation = CurrentWorld.locationAt(0, 0); }
public GameSession() { CurrentPlayer = new Player(); CurrentPlayer.Name = "Noah"; CurrentPlayer.Level = "Beginner"; CurrentPlayer.Fortune = "10000"; WorldFactory factory = new WorldFactory(); CurrentWorld = factory.CreatedWord(); CurrentLocation = new Location(); CurrentLocation = CurrentWorld.locationAt(0, 0); }