public void Render() { for (int y = 0; y <= land.coordLand.GetYMax(); y++) { for (int x = 0; x <= land.coordLand.GetXMax(); x++) { Console.SetCursorPosition(x, y); Console.Write(land.FetchSimbol(x, y)); } Console.WriteLine(); } }
public bool Collision(Scavanger.Entity.Character inChar, Scavanger.Entity.Land inLand) { if (inLand.FetchSimbol(inChar.characterCoord.X, inChar.characterCoord.Y) == inLand.landCharDefault) { return(false); } else if (inLand.coordDict.ContainsKey(inChar.characterCoord.GetHashCode())) { return(true); } else if (inChar.characterCoord.X == xMax) { return(true); } else if (inChar.characterCoord.Y == yMax) { return(true); } else { return(false); } }