Class: RPG::System::Words

Inherits:
Object
  • Object
show all
Defined in:
lib/rpg/system.rb

Overview

Data class for terminology.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeWords

Returns a new instance of Words.



157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
# File 'lib/rpg/system.rb', line 157

def initialize
  @gold = ""
  @hp = ""
  @sp = ""
  @str = ""
  @dex = ""
  @agi = ""
  @int = ""
  @atk = ""
  @pdef = ""
  @mdef = ""
  @weapon = ""
  @armor1 = ""
  @armor2 = ""
  @armor3 = ""
  @armor4 = ""
  @attack = ""
  @skill = ""
  @guard = ""
  @item = ""
  @equip = ""
end

Instance Attribute Details

#agiObject

The term “Agility”.



196
197
198
# File 'lib/rpg/system.rb', line 196

def agi
  @agi
end

#armor1Object

The term “Shield”.



214
215
216
# File 'lib/rpg/system.rb', line 214

def armor1
  @armor1
end

#armor2Object

The term “Helmet”.



217
218
219
# File 'lib/rpg/system.rb', line 217

def armor2
  @armor2
end

#armor3Object

The term “Body armor”.



220
221
222
# File 'lib/rpg/system.rb', line 220

def armor3
  @armor3
end

#armor4Object

The term “Accessory”.



223
224
225
# File 'lib/rpg/system.rb', line 223

def armor4
  @armor4
end

#atkObject

The term “Attack Power”.



202
203
204
# File 'lib/rpg/system.rb', line 202

def atk
  @atk
end

#attackObject

The term “Attack”.



226
227
228
# File 'lib/rpg/system.rb', line 226

def attack
  @attack
end

#dexObject

The term “Dexterity”.



193
194
195
# File 'lib/rpg/system.rb', line 193

def dex
  @dex
end

#equipObject

The term “Equip”.



238
239
240
# File 'lib/rpg/system.rb', line 238

def equip
  @equip
end

#goldObject

The term “G” (the unit of currency).



181
182
183
# File 'lib/rpg/system.rb', line 181

def gold
  @gold
end

#guardObject

The term “Defense”.



232
233
234
# File 'lib/rpg/system.rb', line 232

def guard
  @guard
end

#hpObject

The term “HP” (hit points).



184
185
186
# File 'lib/rpg/system.rb', line 184

def hp
  @hp
end

#intObject

The term “Intelligence”.



199
200
201
# File 'lib/rpg/system.rb', line 199

def int
  @int
end

#itemObject

The term “Item”.



235
236
237
# File 'lib/rpg/system.rb', line 235

def item
  @item
end

#mdefObject

The term “Magic Defense”.



208
209
210
# File 'lib/rpg/system.rb', line 208

def mdef
  @mdef
end

#pdefObject

The term “Physical Defense”.



205
206
207
# File 'lib/rpg/system.rb', line 205

def pdef
  @pdef
end

#skillObject

The term “Skill”.



229
230
231
# File 'lib/rpg/system.rb', line 229

def skill
  @skill
end

#spObject

The term “SP” (skill points).



187
188
189
# File 'lib/rpg/system.rb', line 187

def sp
  @sp
end

#strObject

The term “Strength”.



190
191
192
# File 'lib/rpg/system.rb', line 190

def str
  @str
end

#weaponObject

The term “Weapon”.



211
212
213
# File 'lib/rpg/system.rb', line 211

def weapon
  @weapon
end