ball_back?()
click to toggle source
def ball_back?
@agentInfo.getWhereIsBall.eql? 'back'
end
ball_front?()
click to toggle source
def ball_front?
@agentInfo.getWhereIsBall.eql? 'front'
end
ball_unseen()
click to toggle source
def ball_unseen
EnvironmentModel.SIMULATION_TIME - WorldModel.getInstance.getBall.getLastTimeSeen()
end
change_skill(move_name)
click to toggle source
def change_skill move_name
@queue.clear
@queue << LowSkill.new(move_name)
end
closest_to_ball?()
click to toggle source
def closest_to_ball?
return true
end
control()
click to toggle source
def control
if @plan.empty? or @plan[0].isEnded()
replan
end
unless @plan.empty?
@plan[0].execute
end
end
is_ball_mine?()
click to toggle source
def is_ball_mine?
return @agentInfo.isBallMine
end
near_ball?()
click to toggle source
def near_ball?
return @agentInfo.getNearBall
end
replan()
click to toggle source
reset()
click to toggle source
def reset
@plan.clear
@beamed = false
end
see_ball?()
click to toggle source
def see_ball?
ball.notSeenLongTime() < 5
end
straight?()
click to toggle source
def straight?
@@straight_range1.include?(@target_position_phi) or @@straight_range2.include?(@target_position_phi)
end
turned_to_goal?()
click to toggle source
def turned_to_goal?
@@straight_range1.include?( @kick_target_phi) or @@straight_range2.include?( @kick_target_phi)
end