Class: RPG::Event::Page::Graphic

Inherits:
Object
  • Object
show all
Defined in:
lib/rpg/event/page/graphic.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (Graphic) initialize

Returns a new instance of Graphic



5
6
7
8
9
10
11
# File 'lib/rpg/event/page/graphic.rb', line 5

def initialize
  @tile_id = 0
  @character_name = ''
  @character_index = 0
  @direction = 2
  @pattern = 0
end

Instance Attribute Details

- (Object) character_index

Returns the value of attribute character_index



14
15
16
# File 'lib/rpg/event/page/graphic.rb', line 14

def character_index
  @character_index
end

- (Object) character_name

Returns the value of attribute character_name



13
14
15
# File 'lib/rpg/event/page/graphic.rb', line 13

def character_name
  @character_name
end

- (Object) direction

Returns the value of attribute direction



15
16
17
# File 'lib/rpg/event/page/graphic.rb', line 15

def direction
  @direction
end

- (Object) pattern

Returns the value of attribute pattern



16
17
18
# File 'lib/rpg/event/page/graphic.rb', line 16

def pattern
  @pattern
end

- (Object) tile_id

Returns the value of attribute tile_id



12
13
14
# File 'lib/rpg/event/page/graphic.rb', line 12

def tile_id
  @tile_id
end