Class: Reve::Classes::AttributeEnhancer

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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = "", value = 0) ⇒ AttributeEnhancer

:nodoc:



495
496
497
498
# File 'lib/reve/classes.rb', line 495

def initialize(name = "", value = 0) #:nodoc:
  @name = name
  @value = value.to_i
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



494
495
496
# File 'lib/reve/classes.rb', line 494

def name
  @name
end

#valueObject

Returns the value of attribute value.



494
495
496
# File 'lib/reve/classes.rb', line 494

def value
  @value
end