Class: RPG::Event::Page::Graphic
- Inherits:
-
Object
- Object
- RPG::Event::Page::Graphic
- Defined in:
- lib/rpg/event.rb
Overview
Data class for the Event page [Graphics].
Instance Attribute Summary collapse
-
#blend_type ⇒ Object
The character’s blending mode.
-
#character_hue ⇒ Object
The adjustment value for the character graphic’s hue (0..360).
-
#character_name ⇒ Object
The character’s graphic file name.
-
#direction ⇒ Object
- The direction in which the character is facing 2
- down 4
- left 6
- right 8
-
up.
-
#opacity ⇒ Object
The character’s opacity.
-
#pattern ⇒ Object
The character’s pattern (0..3).
-
#tile_id ⇒ Object
The tile ID.
Instance Method Summary collapse
-
#initialize ⇒ Graphic
constructor
A new instance of Graphic.
Constructor Details
#initialize ⇒ Graphic
Returns a new instance of Graphic.
156 157 158 159 160 161 162 163 164 |
# File 'lib/rpg/event.rb', line 156 def initialize @tile_id = 0 @character_name = "" @character_hue = 0 @direction = 2 @pattern = 0 @opacity = 255 @blend_type = 0 end |
Instance Attribute Details
#blend_type ⇒ Object
The character’s blending mode.
189 190 191 |
# File 'lib/rpg/event.rb', line 189 def blend_type @blend_type end |
#character_hue ⇒ Object
The adjustment value for the character graphic’s hue (0..360).
173 174 175 |
# File 'lib/rpg/event.rb', line 173 def character_hue @character_hue end |
#character_name ⇒ Object
The character’s graphic file name.
170 171 172 |
# File 'lib/rpg/event.rb', line 170 def character_name @character_name end |
#direction ⇒ Object
The direction in which the character is facing
- 2
-
down
- 4
-
left
- 6
-
right
- 8
-
up
180 181 182 |
# File 'lib/rpg/event.rb', line 180 def direction @direction end |
#opacity ⇒ Object
The character’s opacity.
186 187 188 |
# File 'lib/rpg/event.rb', line 186 def opacity @opacity end |
#pattern ⇒ Object
The character’s pattern (0..3).
183 184 185 |
# File 'lib/rpg/event.rb', line 183 def pattern @pattern end |
#tile_id ⇒ Object
The tile ID. If the specified graphic is not a tile, this value is 0.
167 168 169 |
# File 'lib/rpg/event.rb', line 167 def tile_id @tile_id end |