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

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

Overview

Data class for the Event page [Graphics].

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeGraphic

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_typeObject

The character's blending mode.


189
190
191
# File 'lib/rpg/event.rb', line 189

def blend_type
  @blend_type
end

#character_hueObject

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_nameObject

The character's graphic file name.


170
171
172
# File 'lib/rpg/event.rb', line 170

def character_name
  @character_name
end

#directionObject

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

#opacityObject

The character's opacity.


186
187
188
# File 'lib/rpg/event.rb', line 186

def opacity
  @opacity
end

#patternObject

The character's pattern (0..3).


183
184
185
# File 'lib/rpg/event.rb', line 183

def pattern
  @pattern
end

#tile_idObject

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