public void CheckForCreatures() { if (_currentLocation >= 0 && _currentLocation < _sceneList.Length) { Scene currentScene = _sceneList[_currentLocation]; if (currentScene.GetCleared() == false) { //Creates encounter and fights Encounter encounter = new Encounter(_players, currentScene.GetEnemies()); encounter.Start(); } } }
public void Travel() { int destination = -1; if (_currentLocation >= 0 && _currentLocation < _sceneList.Length) { destination = _sceneList[_currentLocation].chooseexit(); } if (destination >= 0 && destination < _sceneList.Length) { CurrentSceneID = destination; Encounter encounter = new Encounter(_players, _sceneList[_currentLocation].GetEnemies()); encounter.Start(); } else { Console.WriteLine("There is nothing in that direction"); } }