Class: Reve::Classes::AttributeEnhancer
Overview
Used for attribute enhancers (in-game Implants) IntelligenceEnhancer, MemoryEnhancer, PerceptionEnhancer, CharismaEnhancer and WillpowerEnhancer all subclass this class as this AttributeEnhancer class is never used (except in a fault-case). Use the kind_of? method to determine what kind of AttributeEnhancer one is dealing with. Attributes
-
name ( String ) - The name of the AttributeEnhancer (implant)
-
value ( Fixnum ) - How much the
name
implant boosts.
See Also: CharacterSheet, Reve::API#character_sheet
Direct Known Subclasses
CharismaEnhancer, IntelligenceEnhancer, MemoryEnhancer, PerceptionEnhancer, WillpowerEnhancer
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(name = "", value = 0) ⇒ AttributeEnhancer
constructor
:nodoc:.
Constructor Details
#initialize(name = "", value = 0) ⇒ AttributeEnhancer
:nodoc:
451 452 453 454 |
# File 'lib/reve/classes.rb', line 451 def initialize(name = "", value = 0) #:nodoc: @name = name @value = value.to_i end |