# File high_skills/beam.rb, line 5 def initialize position super() @run_already = false @formationPosition = position # @position = Java::sk.fiit.jim.agent.models.TacticalInfo.getInstance.getFormPositionGlobal() end
# File high_skills/beam.rb, line 26 def checkProgress #do nothing end
# File high_skills/beam.rb, line 12 def pickLowSkill unless @run_already then current_skill = get_skill "rollback" @run_already = true return current_skill end ypos = @formationPosition.getY() xpos = @formationPosition.getX() Java::sk.fiit.jim.agent.communication.Communication.instance.addToMessage "(beam " + xpos.to_s + " " + ypos.to_s + " 0.0)" # ypos = 1.0 + Java::sk.fiit.jim.agent.AgentInfo.playerId; # Java::sk.fiit.jim.agent.communication.Communication.instance.addToMessage "(beam -5.0 " + ypos.to_s + " 0.0)" nil end