Class: RPG::Actor

Inherits:
BaseItem show all
Defined in:
lib/rgss3/rpg.rb

Instance Attribute Summary collapse

Attributes inherited from BaseItem

#description, #features, #icon_index, #id, #name, #note

Instance Method Summary collapse

Constructor Details

#initializeActor

Returns a new instance of Actor.



388
389
390
391
392
393
394
395
396
397
398
399
# File 'lib/rgss3/rpg.rb', line 388

def initialize
  super
  @nickname = ''
  @class_id = 1
  @initial_level = 1
  @max_level = 99
  @character_name = ''
  @character_index = 0
  @face_name = ''
  @face_index = 0
  @equips = [0,0,0,0,0]
end

Instance Attribute Details

#character_indexObject

Returns the value of attribute character_index.



405
406
407
# File 'lib/rgss3/rpg.rb', line 405

def character_index
  @character_index
end

#character_nameObject

Returns the value of attribute character_name.



404
405
406
# File 'lib/rgss3/rpg.rb', line 404

def character_name
  @character_name
end

#class_idObject

Returns the value of attribute class_id.



401
402
403
# File 'lib/rgss3/rpg.rb', line 401

def class_id
  @class_id
end

#equipsObject

Returns the value of attribute equips.



408
409
410
# File 'lib/rgss3/rpg.rb', line 408

def equips
  @equips
end

#face_indexObject

Returns the value of attribute face_index.



407
408
409
# File 'lib/rgss3/rpg.rb', line 407

def face_index
  @face_index
end

#face_nameObject

Returns the value of attribute face_name.



406
407
408
# File 'lib/rgss3/rpg.rb', line 406

def face_name
  @face_name
end

#initial_levelObject

Returns the value of attribute initial_level.



402
403
404
# File 'lib/rgss3/rpg.rb', line 402

def initial_level
  @initial_level
end

#max_levelObject

Returns the value of attribute max_level.



403
404
405
# File 'lib/rgss3/rpg.rb', line 403

def max_level
  @max_level
end

#nicknameObject

Returns the value of attribute nickname.



400
401
402
# File 'lib/rgss3/rpg.rb', line 400

def nickname
  @nickname
end