public Player( string name, GenderNames gender, RaceNames race, MapPosition startLocation) : base(name, gender, race, startLocation) { _lives = 1; }
private Player AddPlayer() { MapPosition playerLocation = new MapPosition(0, 0); Player myPlayer = new Player( "Bonzo", Player.GenderNames.Male, Player.RaceNames.Human, playerLocation ); return myPlayer; }
public void DisplayCellInfo(MapPosition location) { Cell currentCell = _gameMap.GetCellAtLocation(location); DisplayMessage(currentCell.Description); }
public bool GoodMove(MapPosition currentLocation, Direction direction) { Cell currentCell = GetCellAtLocation(currentLocation); bool access = false; switch (direction) { case Direction.NORTH: if (currentCell.NorthAccess) { access = true; } break; case Direction.EAST: if (currentCell.EastAccess) { access = true; } break; case Direction.SOUTH: if (currentCell.SouthAccess) { access = true; } break; case Direction.WEST: if (currentCell.WestAccess) { access = true; } break; default: break; } return access; }
public Cell GetCellAtLocation(MapPosition location) { Cell currentCell = _mapSet[location.Row, location.Column]; return currentCell; }