lib/gamebox/core/actor_definition.rb
# Setup observable attributes for the Actor and optionally default values
#
#  # takes list of attributes (values will be nil)
#  has_attributes :x, :y
#  
#  # takes hash of attributes with values
#  has_attributes x: 5, y: 12
Setup observable attributes for the Actor and optionally default values
takes list of attributes (values will be nil)
has_attributes :x, :y

takes hash of attributes with values
has_attributes x: 5, y: 12
Setup observable attributes for the Actor and optionally default values takes list of attributes ( values will be nil ) has_attributes : x : y takes hash of attributes with values has_attributes x : 5 y : 12
def has_attributes(*attributes)
    attributes.each do |att|
      @attributes << att
    end
  end
def has_attributes ( * attributes ) attributes . each do | att | @attributes << att end end
Setup observable attributes for the Actor and optionally default values
 takes list of attributes (values will be nil)
has_attributes :x, :y
Setup observable attributes for the Actor and optionally default values takes list of attributes ( values will be nil ) has_attributes : x : y
attributes
<not_specific>