Class: Job

Inherits:
Race show all
Defined in:
lib/lotrd/model/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/model/job.rb', line 5

def initialize
end

Instance Attribute Details

#agiObject

Returns the value of attribute agi.



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

def agi
  @agi
end

#defObject

Returns the value of attribute def.



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

def def
  @def
end

#dexObject

Returns the value of attribute dex.



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

def dex
  @dex
end

#hpObject

Returns the value of attribute hp.



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

def hp
  @hp
end

#intObject

Returns the value of attribute int.



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

def int
  @int
end

#lckObject

Returns the value of attribute lck.



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

def lck
  @lck
end

#resObject

Returns the value of attribute res.



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

def res
  @res
end

#strObject

Returns the value of attribute str.



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

def str
  @str
end

Instance Method Details

#beastObject



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

def beast
    super
end

#dwarfObject



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

def dwarf
    super
end

#elfObject



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

def elf
    super
end

#godObject



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

def god
    super
end

#humanObject



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

def human
    super
end

#knightObject



34
35
36
37
38
# File 'lib/lotrd/model/job.rb', line 34

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

#mageObject



28
29
30
31
32
# File 'lib/lotrd/model/job.rb', line 28

def mage
    @int += 15 
    @agi += 15 
    @res += 20
end

#rangerObject



47
48
49
50
51
52
# File 'lib/lotrd/model/job.rb', line 47

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

#rogueObject



40
41
42
43
44
45
# File 'lib/lotrd/model/job.rb', line 40

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