Class: RPG::System::TestBattler
- Inherits:
-
Object
- Object
- RPG::System::TestBattler
- Defined in:
- lib/rpg/system.rb
Overview
Data class for the battlers used in battle tests.
Instance Attribute Summary collapse
-
#actor_id ⇒ Object
The actor ID.
-
#armor1_id ⇒ Object
The actor’s shield ID.
-
#armor2_id ⇒ Object
The actor’s helmet ID.
-
#armor3_id ⇒ Object
The actor’s body armor ID.
-
#armor4_id ⇒ Object
The actor’s accessory ID.
-
#level ⇒ Object
The actor’s level.
-
#weapon_id ⇒ Object
The actor’s weapon ID.
Instance Method Summary collapse
-
#initialize ⇒ TestBattler
constructor
A new instance of TestBattler.
Constructor Details
#initialize ⇒ TestBattler
Returns a new instance of TestBattler.
243 244 245 246 247 248 249 250 251 |
# File 'lib/rpg/system.rb', line 243 def initialize @actor_id = 1 @level = 1 @weapon_id = 0 @armor1_id = 0 @armor2_id = 0 @armor3_id = 0 @armor4_id = 0 end |
Instance Attribute Details
#actor_id ⇒ Object
The actor ID.
254 255 256 |
# File 'lib/rpg/system.rb', line 254 def actor_id @actor_id end |
#armor1_id ⇒ Object
The actor’s shield ID.
263 264 265 |
# File 'lib/rpg/system.rb', line 263 def armor1_id @armor1_id end |
#armor2_id ⇒ Object
The actor’s helmet ID.
266 267 268 |
# File 'lib/rpg/system.rb', line 266 def armor2_id @armor2_id end |
#armor3_id ⇒ Object
The actor’s body armor ID.
269 270 271 |
# File 'lib/rpg/system.rb', line 269 def armor3_id @armor3_id end |
#armor4_id ⇒ Object
The actor’s accessory ID.
272 273 274 |
# File 'lib/rpg/system.rb', line 272 def armor4_id @armor4_id end |
#level ⇒ Object
The actor’s level.
257 258 259 |
# File 'lib/rpg/system.rb', line 257 def level @level end |
#weapon_id ⇒ Object
The actor’s weapon ID.
260 261 262 |
# File 'lib/rpg/system.rb', line 260 def weapon_id @weapon_id end |