class Rsrb::Player::Appearance
Appearance
of the player
Public Class Methods
new()
click to toggle source
# File lib/rsrb/model/player/appearance.rb, line 28 def initialize @@types.each_with_index {|arg, i| instance_variable_set("@#{arg.id2name}".to_sym, @@default_appearance[i]) } end
Public Instance Methods
get_look()
click to toggle source
# File lib/rsrb/model/player/appearance.rb, line 34 def get_look look = [] @@types.each {|arg| look << instance_variable_get("@#{arg.id2name}".to_sym) } look end
set_look(look)
click to toggle source
# File lib/rsrb/model/player/appearance.rb, line 42 def set_look(look) @@types.each_with_index {|arg, i| instance_variable_set("@#{arg.id2name}".to_sym, look[i]) } end