class Rubygoal::AwayTeam
Public Class Methods
new(*args)
click to toggle source
Calls superclass method
Rubygoal::Team::new
# File lib/rubygoal/teams/away.rb, line 5 def initialize(*args) @side = :away @opponent_side = :home super end
Public Instance Methods
teammate_is_on_front?(player, teammate)
click to toggle source
# File lib/rubygoal/teams/away.rb, line 11 def teammate_is_on_front?(player, teammate) teammate.position.x < player.position.x - 40 end