public TargetSelectKeyProcessor(GameManager manager) { this.manager = manager; Creature player = this.manager.GameService.Player; Map map = this.manager.GameService.Map; this.creatures = this.manager.GameService.Creatures.Where(x => map.getDistanceBetweenFields(player.Field, x.Field) <= player.RangedWeapon.Range && map.isSightBetweenFields(player.Field,x.Field)).ToList(); this.CurrentPosition = 0; }
public MapView(GlobalGameModel gameModel, GameService service) { InitializeComponent(); this.gameModel = gameModel; gameManager = new GameManager(this, service, new ListBoxLogger(Logger) ); }
public MainKeyProcessor(GameManager manager) { this.manager = manager; }
public MapWindow() { InitializeComponent(); gameManager = new GameManager(this); }
public FieldSelectKeyProcessor(GameManager manager) { this.manager = manager; TargetField = this.manager.GameService.Player.Field; }