Class: RPG::Actor

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

Instance Attribute Summary (collapse)

Attributes inherited from BaseItem

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

Instance Method Summary (collapse)

Constructor Details

- (Actor) initialize

Returns a new instance of Actor



3
4
5
6
7
8
9
10
11
12
13
14
# File 'lib/rpg/actor.rb', line 3

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

- (Object) character_index

Returns the value of attribute character_index



20
21
22
# File 'lib/rpg/actor.rb', line 20

def character_index
  @character_index
end

- (Object) character_name

Returns the value of attribute character_name



19
20
21
# File 'lib/rpg/actor.rb', line 19

def character_name
  @character_name
end

- (Object) class_id

Returns the value of attribute class_id



16
17
18
# File 'lib/rpg/actor.rb', line 16

def class_id
  @class_id
end

- (Object) equips

Returns the value of attribute equips



23
24
25
# File 'lib/rpg/actor.rb', line 23

def equips
  @equips
end

- (Object) face_index

Returns the value of attribute face_index



22
23
24
# File 'lib/rpg/actor.rb', line 22

def face_index
  @face_index
end

- (Object) face_name

Returns the value of attribute face_name



21
22
23
# File 'lib/rpg/actor.rb', line 21

def face_name
  @face_name
end

- (Object) initial_level

Returns the value of attribute initial_level



17
18
19
# File 'lib/rpg/actor.rb', line 17

def initial_level
  @initial_level
end

- (Object) max_level

Returns the value of attribute max_level



18
19
20
# File 'lib/rpg/actor.rb', line 18

def max_level
  @max_level
end

- (Object) nickname

Returns the value of attribute nickname



15
16
17
# File 'lib/rpg/actor.rb', line 15

def nickname
  @nickname
end