Class: Job
Instance Attribute Summary collapse
-
#agi ⇒ Object
Returns the value of attribute agi.
-
#def ⇒ Object
Returns the value of attribute def.
-
#dex ⇒ Object
Returns the value of attribute dex.
-
#hp ⇒ Object
Returns the value of attribute hp.
-
#int ⇒ Object
Returns the value of attribute int.
-
#lck ⇒ Object
Returns the value of attribute lck.
-
#res ⇒ Object
Returns the value of attribute res.
-
#str ⇒ Object
Returns the value of attribute str.
Instance Method Summary collapse
- #beast ⇒ Object
- #dwarf ⇒ Object
- #elf ⇒ Object
- #god ⇒ Object
- #human ⇒ Object
-
#initialize ⇒ Job
constructor
A new instance of Job.
- #knight ⇒ Object
- #mage ⇒ Object
- #ranger ⇒ Object
- #rogue ⇒ Object
Constructor Details
#initialize ⇒ Job
Returns a new instance of Job.
5 6 |
# File 'lib/lotrd/model/job.rb', line 5 def initialize end |
Instance Attribute Details
#agi ⇒ Object
Returns the value of attribute agi.
4 5 6 |
# File 'lib/lotrd/model/job.rb', line 4 def agi @agi end |
#def ⇒ Object
Returns the value of attribute def.
4 5 6 |
# File 'lib/lotrd/model/job.rb', line 4 def def @def end |
#dex ⇒ Object
Returns the value of attribute dex.
4 5 6 |
# File 'lib/lotrd/model/job.rb', line 4 def dex @dex end |
#hp ⇒ Object
Returns the value of attribute hp.
4 5 6 |
# File 'lib/lotrd/model/job.rb', line 4 def hp @hp end |
#int ⇒ Object
Returns the value of attribute int.
4 5 6 |
# File 'lib/lotrd/model/job.rb', line 4 def int @int end |
#lck ⇒ Object
Returns the value of attribute lck.
4 5 6 |
# File 'lib/lotrd/model/job.rb', line 4 def lck @lck end |
#res ⇒ Object
Returns the value of attribute res.
4 5 6 |
# File 'lib/lotrd/model/job.rb', line 4 def res @res end |
#str ⇒ Object
Returns the value of attribute str.
4 5 6 |
# File 'lib/lotrd/model/job.rb', line 4 def str @str end |
Instance Method Details
#beast ⇒ Object
24 25 26 |
# File 'lib/lotrd/model/job.rb', line 24 def beast super end |
#dwarf ⇒ Object
16 17 18 |
# File 'lib/lotrd/model/job.rb', line 16 def dwarf super end |
#elf ⇒ Object
8 9 10 |
# File 'lib/lotrd/model/job.rb', line 8 def elf super end |
#god ⇒ Object
20 21 22 |
# File 'lib/lotrd/model/job.rb', line 20 def god super end |
#human ⇒ Object
12 13 14 |
# File 'lib/lotrd/model/job.rb', line 12 def human super end |
#knight ⇒ Object
34 35 36 37 38 |
# File 'lib/lotrd/model/job.rb', line 34 def knight @hp += 15 @str += 15 @def += 20 end |
#mage ⇒ Object
28 29 30 31 32 |
# File 'lib/lotrd/model/job.rb', line 28 def mage @int += 15 @agi += 15 @res += 20 end |
#ranger ⇒ Object
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 |
#rogue ⇒ Object
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 |