public GenericOutput <Point> PointSelect(PointPredicate pointPredicate) { return(Action("[Feed].[Point.Action]", new GenericInput <Point, PointPredicate> { ActionType = ActionType.PointSelect, Predicate = pointPredicate })); }
public GenericOutput <Point> PointSelect(PointPredicate pointPredicate) { return(ModelData.Instance.PointSelect(pointPredicate)); }
private KeystrokeResult RangedAttack() { if (m_chordKeystroke == ChordKeystrokeStatus.RangedAttack) { m_engine.PlayerAttack(m_engine.TargetSelection); m_engine.SelectingTarget = false; m_chordKeystroke = ChordKeystrokeStatus.None; return KeystrokeResult.Action; } else { m_chordKeystroke = ChordKeystrokeStatus.RangedAttack; m_engine.TargetSelection = m_engine.Player.Position; m_engine.SelectingTarget = true; m_targetSelectionAllowable = p => (PointDirectionUtils.LatticeDistance(p, m_engine.Player.Position) <= 4); return KeystrokeResult.InRangedAttack; } }