Class: Stattr::Playerchar

Inherits:
Object
  • Object
show all
Defined in:
lib/stattr.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Playerchar

Returns a new instance of Playerchar.



85
86
87
88
# File 'lib/stattr.rb', line 85

def initialize(name) 
    @name = name
    @stats = Statlist.new
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



83
84
85
# File 'lib/stattr.rb', line 83

def name
  @name
end

#statsObject

Returns the value of attribute stats.



83
84
85
# File 'lib/stattr.rb', line 83

def stats
  @stats
end