Class: Game_Picture

Inherits:
Object show all
Defined in:
docs/4_Systems_003_Map_Engine.rb

Overview

Describe a picture display on the Screen

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(number) ⇒ Game_Picture

Initialize the Game_Picture with default value

Parameters:

  • number (Integer)

    the “id” of the picture



215
216
# File 'docs/4_Systems_003_Map_Engine.rb', line 215

def initialize(number)
end

Instance Attribute Details

#angle (readonly)

色調



210
211
212
# File 'docs/4_Systems_003_Map_Engine.rb', line 210

def angle
  @angle
end

#blend_type (readonly)

不透明度



206
207
208
# File 'docs/4_Systems_003_Map_Engine.rb', line 206

def blend_type
  @blend_type
end

#mirror

回転角度



212
213
214
# File 'docs/4_Systems_003_Map_Engine.rb', line 212

def mirror
  @mirror
end

#name (readonly)

ピクチャ番号



192
193
194
# File 'docs/4_Systems_003_Map_Engine.rb', line 192

def name
  @name
end

#number (readonly)

Returns the value of attribute number.



190
191
192
# File 'docs/4_Systems_003_Map_Engine.rb', line 190

def number
  @number
end

#opacity (readonly)

Y 方向拡大率



204
205
206
# File 'docs/4_Systems_003_Map_Engine.rb', line 204

def opacity
  @opacity
end

#origin (readonly)

ファイル名



194
195
196
# File 'docs/4_Systems_003_Map_Engine.rb', line 194

def origin
  @origin
end

#tone (readonly)

ブレンド方法



208
209
210
# File 'docs/4_Systems_003_Map_Engine.rb', line 208

def tone
  @tone
end

#x (readonly)

原点



196
197
198
# File 'docs/4_Systems_003_Map_Engine.rb', line 196

def x
  @x
end

#y (readonly)

X 座標



198
199
200
# File 'docs/4_Systems_003_Map_Engine.rb', line 198

def y
  @y
end

#zoom_x (readonly)

Y 座標



200
201
202
# File 'docs/4_Systems_003_Map_Engine.rb', line 200

def zoom_x
  @zoom_x
end

#zoom_y (readonly)

X 方向拡大率



202
203
204
# File 'docs/4_Systems_003_Map_Engine.rb', line 202

def zoom_y
  @zoom_y
end

Instance Method Details

#erase

Remove the picture from the screen



249
250
# File 'docs/4_Systems_003_Map_Engine.rb', line 249

def erase
end

#move(duration, origin, x, y, zoom_x, zoom_y, opacity, blend_type)

Move a picture

Parameters:

  • duration (Integer)

    the number of frame the picture takes to move

  • origin (Integer)

    the origin type (top left / center)

  • x (Numeric)

    the x position on the screen

  • y (Numeric)

    the y position on the screen

  • zoom_x (Numeric)

    the zoom on the width

  • zoom_y (Numeric)

    the zoom on the height

  • opacity (Numeric)

    the opacity of the picture

  • blend_type (Integer)

    the blend_type of the picture



237
238
# File 'docs/4_Systems_003_Map_Engine.rb', line 237

def move(duration, origin, x, y, zoom_x, zoom_y, opacity, blend_type)
end

#rotate(speed)

Rotate the picture

Parameters:

  • speed (Numeric)

    the rotation speed (2*angle / frame)



241
242
# File 'docs/4_Systems_003_Map_Engine.rb', line 241

def rotate(speed)
end

#show(name, origin, x, y, zoom_x, zoom_y, opacity, blend_type)

Show a picture

Parameters:

  • name (String)

    The name of the image in Graphics/Pictures

  • origin (Integer)

    the origin type (top left / center)

  • x (Numeric)

    the x position on the screen

  • y (Numeric)

    the y position on the screen

  • zoom_x (Numeric)

    the zoom on the width

  • zoom_y (Numeric)

    the zoom on the height

  • opacity (Numeric)

    the opacity of the picture

  • blend_type (Integer)

    the blend_type of the picture



226
227
# File 'docs/4_Systems_003_Map_Engine.rb', line 226

def show(name, origin, x, y, zoom_x, zoom_y, opacity, blend_type)
end

#start_tone_change(tone, duration)

Start a tone change of the picture

Parameters:

  • tone (Tone)

    the new tone of the picture

  • duration (Integer)

    the number of frame the tone change takes



246
247
# File 'docs/4_Systems_003_Map_Engine.rb', line 246

def start_tone_change(tone, duration)
end

#update

Update the picture state change



256
257
# File 'docs/4_Systems_003_Map_Engine.rb', line 256

def update
end