class FreeRide

Public Class Methods

new() click to toggle source
Calls superclass method RubyHighSkill.new
# File high_skills/freeRide.rb, line 9
def initialize
  @skills = []
  
  @skills << Java::sk.fiit.jim.agent.moves.LowSkills.get("ruky")
  @skills << Java::sk.fiit.jim.agent.moves.LowSkills.get("hlava")
  @skills << Java::sk.fiit.jim.agent.moves.LowSkills.get("hlava")
  @skills << Java::sk.fiit.jim.agent.moves.LowSkills.get("hlavaaruky")
  @skills << Java::sk.fiit.jim.agent.moves.LowSkills.get("hlavaaruky")
  @skills << Java::sk.fiit.jim.agent.moves.LowSkills.get("hlavaaruky")
  @skills << Java::sk.fiit.jim.agent.moves.LowSkills.get("hlavaaruky")
  @skills << Java::sk.fiit.jim.agent.moves.LowSkills.get("drepy")
  @skills << Java::sk.fiit.jim.agent.moves.LowSkills.get("drepy")
  @skills << Java::sk.fiit.jim.agent.moves.LowSkills.get("drepy")
  @skills << Java::sk.fiit.jim.agent.moves.LowSkills.get("drepy")
  @skills << Java::sk.fiit.jim.agent.moves.LowSkills.get("drepy")
  @skills << Java::sk.fiit.jim.agent.moves.LowSkills.get("drepyII")
  @skills << Java::sk.fiit.jim.agent.moves.LowSkills.get("drepyII")
  @skills << Java::sk.fiit.jim.agent.moves.LowSkills.get("drepyII")
  @skills << Java::sk.fiit.jim.agent.moves.LowSkills.get("drepyII")
  @skills << Java::sk.fiit.jim.agent.moves.LowSkills.get("uvidime")
  @skills << Java::sk.fiit.jim.agent.moves.LowSkills.get("stand_back")
  @skills << Java::sk.fiit.jim.agent.moves.LowSkills.get("uvidime")
  @skills << Java::sk.fiit.jim.agent.moves.LowSkills.get("stand_back")
  @skills << Java::sk.fiit.jim.agent.moves.LowSkills.get("uvidime")
  @skills << Java::sk.fiit.jim.agent.moves.LowSkills.get("stand_back")
  @skills << Java::sk.fiit.jim.agent.moves.LowSkills.get("stand_front")
  @skills << Java::sk.fiit.jim.agent.moves.LowSkills.get("fall_front")
  @skills << Java::sk.fiit.jim.agent.moves.LowSkills.get("nahlavu")
  @skills << Java::sk.fiit.jim.agent.moves.LowSkills.get("stand_front")
  
  @skills << Java::sk.fiit.jim.agent.moves.LowSkills.get("rollback")
  
      @currentSkill = @skills[0]
  super()
end

Public Instance Methods

checkProgress() click to toggle source
# File high_skills/freeRide.rb, line 54
def checkProgress
  #do nothing
end
name() click to toggle source
# File high_skills/freeRide.rb, line 5
def name
  return @currentSkill.name
end
pickLowSkill() click to toggle source
# File high_skills/freeRide.rb, line 45
def pickLowSkill
  unless @skills.empty?
    @currentSkill = @skills.shift
    log "picking skill #{@currentSkill.name}"
    return @currentSkill
  end
  return nil
end