class Rubygoal::GoalKeeperPlayer
Public Instance Methods
move_to_cover_goal(ball)
click to toggle source
# File lib/rubygoal/players/goalkeeper.rb, line 7 def move_to_cover_goal(ball) move_without_rotation_to(position_to_cover_goal(ball)) end
Private Instance Methods
move_without_rotation_to(pos)
click to toggle source
# File lib/rubygoal/players/goalkeeper.rb, line 21 def move_without_rotation_to(pos) move_to(pos) reset_rotation end
position_to_cover_goal(ball)
click to toggle source
# File lib/rubygoal/players/goalkeeper.rb, line 13 def position_to_cover_goal(ball) Util.y_intercept_with_line( coach_defined_position.x, Field.goal_position(side), ball.position ) end