Class: Rubygoal::GoalKeeperPlayer

Inherits:
AveragePlayer show all
Defined in:
lib/rubygoal/players/goalkeeper.rb

Constant Summary

Constants inherited from Player

Player::STRAIGHT_ANGLE

Constants included from Moveable

Moveable::MIN_DISTANCE

Instance Attribute Summary

Attributes inherited from Player

#coach_defined_position, #name, #side, #type

Attributes included from Moveable

#destination, #position, #rotation, #velocity

Instance Method Summary collapse

Methods inherited from AveragePlayer

#initialize

Methods inherited from Player

#can_kick?, #initialize, #kick, #move_to_coach_position, #update

Methods included from Moveable

#distance, #initialize, #move_to, #moving?, #position_after_update, #stop, #update

Constructor Details

This class inherits a constructor from Rubygoal::AveragePlayer

Instance Method Details

#move_to_cover_goal(ball) ⇒ Object



7
8
9
# File 'lib/rubygoal/players/goalkeeper.rb', line 7

def move_to_cover_goal(ball)
  move_without_rotation_to(position_to_cover_goal(ball))
end