public void UpdateForPlayer() { UpdateMarksInRange(Player.PositOnScene, GlobalAsset.seenRange); CreateMarksInRange(Player.PositOnScene, GlobalAsset.seenRange); SmallMap.Clear(); int x, y, s; foreach (var e in objsForLittleMap) { var creater = e.creater; x = creater.PositOnScene.X.value; y = creater.PositOnScene.Y.value; s = e.seenLevel * 2; SmallMap.DrawGridAt(x, y, creater.GetColor(), s); } var player = Player; x = player.PositOnScene.X.value; y = player.PositOnScene.Y.value; s = 3; SmallMap.DrawGridAt(x, y, player.GetColor(), s, true); SmallMap.UpdateGraphic(); }
public void UpdateForPlayer(List <Creater> creaters) { SmallMap.Clear(); int x, y, s; foreach (var e in creaters) { if (!e.PositOnScene.Plain.IsEqual(Player.PositOnScene.Plain)) { continue; } var creater = e; x = creater.PositOnScene.X.value; y = creater.PositOnScene.Y.value; s = e.Range * 2; SmallMap.DrawGridAt(x, y, creater.GetColor(), s); } var player = Player; x = player.PositOnScene.X.value; y = player.PositOnScene.Y.value; s = 3; SmallMap.DrawGridAt(x, y, player.GetColor(), s, true); SmallMap.UpdateGraphic(); }