Class: Job

Inherits:
Race show all
Defined in:
lib/lotrd/m-job.rb

Direct Known Subclasses

Mob, Player

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeJob

Returns a new instance of Job.



5
6
# File 'lib/lotrd/m-job.rb', line 5

def initialize
end

Instance Attribute Details

#agiObject

Returns the value of attribute agi.



4
5
6
# File 'lib/lotrd/m-job.rb', line 4

def agi
  @agi
end

#dexObject

Returns the value of attribute dex.



4
5
6
# File 'lib/lotrd/m-job.rb', line 4

def dex
  @dex
end

#hpObject

Returns the value of attribute hp.



4
5
6
# File 'lib/lotrd/m-job.rb', line 4

def hp
  @hp
end

#intObject

Returns the value of attribute int.



4
5
6
# File 'lib/lotrd/m-job.rb', line 4

def int
  @int
end

#lckObject

Returns the value of attribute lck.



4
5
6
# File 'lib/lotrd/m-job.rb', line 4

def lck
  @lck
end

#strObject

Returns the value of attribute str.



4
5
6
# File 'lib/lotrd/m-job.rb', line 4

def str
  @str
end

Instance Method Details

#beastObject



24
25
26
# File 'lib/lotrd/m-job.rb', line 24

def beast
    super
end

#dwarfObject



16
17
18
# File 'lib/lotrd/m-job.rb', line 16

def dwarf
    super
end

#elfObject



8
9
10
# File 'lib/lotrd/m-job.rb', line 8

def elf
    super
end

#godObject



20
21
22
# File 'lib/lotrd/m-job.rb', line 20

def god
    super
end

#humanObject



12
13
14
# File 'lib/lotrd/m-job.rb', line 12

def human
    super
end

#knightObject



33
34
35
36
# File 'lib/lotrd/m-job.rb', line 33

def knight
    @hp += 15
    @str += 15
end

#mageObject



28
29
30
31
# File 'lib/lotrd/m-job.rb', line 28

def mage
    @int += 15 
    @dex += 15 
end

#rangerObject



43
44
45
46
# File 'lib/lotrd/m-job.rb', line 43

def ranger
    @dex += 15
    @lck += 15
end

#rogueObject



38
39
40
41
# File 'lib/lotrd/m-job.rb', line 38

def rogue
    @agi += 15
    @str += 15
end