Class: Rubygoal::GoalKeeperPlayer
- Inherits:
-
AveragePlayer
- Object
- Player
- AveragePlayer
- Rubygoal::GoalKeeperPlayer
- Defined in:
- lib/rubygoal/players/goalkeeper.rb
Constant Summary
Constants inherited from Player
Constants included from Moveable
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
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 |