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

#initializeGraphic

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

#character_indexObject

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

#character_nameObject

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

#directionObject

Returns the value of attribute direction.



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

def direction
  @direction
end

#patternObject

Returns the value of attribute pattern.



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

def pattern
  @pattern
end

#tile_idObject

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