class RocketLauncherPickup

Constants

NAME

Public Class Methods

new(scale, screen_width, screen_height, x = nil, y = nil, options = {}) click to toggle source
Calls superclass method Pickup::new
# File line-em-up/models/rocket_launcher_pickup.rb, line 7
def initialize(scale, screen_width, screen_height, x = nil, y = nil, options = {})
  @x = x || rand(screen_width)
  @y = y || 0
  super(scale, screen_width, screen_height, @x, @y, options)
end

Public Instance Methods

collected_by_player(player) click to toggle source

def update end

# File line-em-up/models/rocket_launcher_pickup.rb, line 23
def collected_by_player player
  player.add_hard_point(RocketLauncherPickup::NAME)
end
get_image() click to toggle source
# File line-em-up/models/rocket_launcher_pickup.rb, line 13
def get_image
  Gosu::Image.new("#{MEDIA_DIRECTORY}/rocket_launcher.png")
end