Class: RPG::Event::Page::Graphic
- Inherits:
-
Object
- Object
- RPG::Event::Page::Graphic
- Defined in:
- lib/rpg/event/page/graphic.rb
Instance Attribute Summary collapse
-
#character_index ⇒ Object
Returns the value of attribute character_index.
-
#character_name ⇒ Object
Returns the value of attribute character_name.
-
#direction ⇒ Object
Returns the value of attribute direction.
-
#pattern ⇒ Object
Returns the value of attribute pattern.
-
#tile_id ⇒ Object
Returns the value of attribute tile_id.
Instance Method Summary collapse
-
#initialize ⇒ Graphic
constructor
A new instance of Graphic.
Constructor Details
#initialize ⇒ Graphic
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_index ⇒ Object
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_name ⇒ Object
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 |
#direction ⇒ Object
Returns the value of attribute direction.
15 16 17 |
# File 'lib/rpg/event/page/graphic.rb', line 15 def direction @direction end |
#pattern ⇒ Object
Returns the value of attribute pattern.
16 17 18 |
# File 'lib/rpg/event/page/graphic.rb', line 16 def pattern @pattern end |
#tile_id ⇒ Object
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 |