Class: RPG::System::TestBattler

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

Overview

Data class for the battlers used in battle tests.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeTestBattler

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_idObject

The actor ID.



254
255
256
# File 'lib/rpg/system.rb', line 254

def actor_id
  @actor_id
end

#armor1_idObject

The actor’s shield ID.



263
264
265
# File 'lib/rpg/system.rb', line 263

def armor1_id
  @armor1_id
end

#armor2_idObject

The actor’s helmet ID.



266
267
268
# File 'lib/rpg/system.rb', line 266

def armor2_id
  @armor2_id
end

#armor3_idObject

The actor’s body armor ID.



269
270
271
# File 'lib/rpg/system.rb', line 269

def armor3_id
  @armor3_id
end

#armor4_idObject

The actor’s accessory ID.



272
273
274
# File 'lib/rpg/system.rb', line 272

def armor4_id
  @armor4_id
end

#levelObject

The actor’s level.



257
258
259
# File 'lib/rpg/system.rb', line 257

def level
  @level
end

#weapon_idObject

The actor’s weapon ID.



260
261
262
# File 'lib/rpg/system.rb', line 260

def weapon_id
  @weapon_id
end