Class: Rubygoal::CaptainPlayer

Inherits:
Player
  • Object
show all
Defined in:
lib/rubygoal/players/captain.rb

Constant Summary

Constants included from Moveable

Moveable::MIN_DISTANCE

Instance Attribute Summary

Attributes included from Moveable

#position, #velocity

Instance Method Summary collapse

Methods inherited from Player

#can_kick?, #draw, #kick, #update

Methods included from Moveable

#distance, #move_to, #moving?, #update

Constructor Details

#initialize(*args) ⇒ CaptainPlayer

Returns a new instance of CaptainPlayer.



3
4
5
6
7
# File 'lib/rubygoal/players/captain.rb', line 3

def initialize(*args)
  super
  @error = 0.05
  @speed = 4.5
end