Class: RPG::System::Words
- Inherits:
-
Object
- Object
- RPG::System::Words
- Defined in:
- lib/rpg/system.rb
Overview
Data class for terminology.
Instance Attribute Summary collapse
-
#agi ⇒ Object
The term “Agility”.
-
#armor1 ⇒ Object
The term “Shield”.
-
#armor2 ⇒ Object
The term “Helmet”.
-
#armor3 ⇒ Object
The term “Body armor”.
-
#armor4 ⇒ Object
The term “Accessory”.
-
#atk ⇒ Object
The term “Attack Power”.
-
#attack ⇒ Object
The term “Attack”.
-
#dex ⇒ Object
The term “Dexterity”.
-
#equip ⇒ Object
The term “Equip”.
-
#gold ⇒ Object
The term “G” (the unit of currency).
-
#guard ⇒ Object
The term “Defense”.
-
#hp ⇒ Object
The term “HP” (hit points).
-
#int ⇒ Object
The term “Intelligence”.
-
#item ⇒ Object
The term “Item”.
-
#mdef ⇒ Object
The term “Magic Defense”.
-
#pdef ⇒ Object
The term “Physical Defense”.
-
#skill ⇒ Object
The term “Skill”.
-
#sp ⇒ Object
The term “SP” (skill points).
-
#str ⇒ Object
The term “Strength”.
-
#weapon ⇒ Object
The term “Weapon”.
Instance Method Summary collapse
-
#initialize ⇒ Words
constructor
A new instance of Words.
Constructor Details
#initialize ⇒ Words
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
#agi ⇒ Object
The term “Agility”.
196 197 198 |
# File 'lib/rpg/system.rb', line 196 def agi @agi end |
#armor1 ⇒ Object
The term “Shield”.
214 215 216 |
# File 'lib/rpg/system.rb', line 214 def armor1 @armor1 end |
#armor2 ⇒ Object
The term “Helmet”.
217 218 219 |
# File 'lib/rpg/system.rb', line 217 def armor2 @armor2 end |
#armor3 ⇒ Object
The term “Body armor”.
220 221 222 |
# File 'lib/rpg/system.rb', line 220 def armor3 @armor3 end |
#armor4 ⇒ Object
The term “Accessory”.
223 224 225 |
# File 'lib/rpg/system.rb', line 223 def armor4 @armor4 end |
#atk ⇒ Object
The term “Attack Power”.
202 203 204 |
# File 'lib/rpg/system.rb', line 202 def atk @atk end |
#attack ⇒ Object
The term “Attack”.
226 227 228 |
# File 'lib/rpg/system.rb', line 226 def attack @attack end |
#dex ⇒ Object
The term “Dexterity”.
193 194 195 |
# File 'lib/rpg/system.rb', line 193 def dex @dex end |
#equip ⇒ Object
The term “Equip”.
238 239 240 |
# File 'lib/rpg/system.rb', line 238 def equip @equip end |
#gold ⇒ Object
The term “G” (the unit of currency).
181 182 183 |
# File 'lib/rpg/system.rb', line 181 def gold @gold end |
#guard ⇒ Object
The term “Defense”.
232 233 234 |
# File 'lib/rpg/system.rb', line 232 def guard @guard end |
#hp ⇒ Object
The term “HP” (hit points).
184 185 186 |
# File 'lib/rpg/system.rb', line 184 def hp @hp end |
#int ⇒ Object
The term “Intelligence”.
199 200 201 |
# File 'lib/rpg/system.rb', line 199 def int @int end |
#item ⇒ Object
The term “Item”.
235 236 237 |
# File 'lib/rpg/system.rb', line 235 def item @item end |
#mdef ⇒ Object
The term “Magic Defense”.
208 209 210 |
# File 'lib/rpg/system.rb', line 208 def mdef @mdef end |
#pdef ⇒ Object
The term “Physical Defense”.
205 206 207 |
# File 'lib/rpg/system.rb', line 205 def pdef @pdef end |
#skill ⇒ Object
The term “Skill”.
229 230 231 |
# File 'lib/rpg/system.rb', line 229 def skill @skill end |
#sp ⇒ Object
The term “SP” (skill points).
187 188 189 |
# File 'lib/rpg/system.rb', line 187 def sp @sp end |
#str ⇒ Object
The term “Strength”.
190 191 192 |
# File 'lib/rpg/system.rb', line 190 def str @str end |
#weapon ⇒ Object
The term “Weapon”.
211 212 213 |
# File 'lib/rpg/system.rb', line 211 def weapon @weapon end |