Class: Game_Picture

Inherits:
Object show all
Defined in:
docs/01450_Systems_00003_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



92
93
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 92

def initialize(number)
end

Instance Attribute Details

#angle (readonly)

色調



87
88
89
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 87

def angle
  @angle
end

#blend_type (readonly)

不透明度



83
84
85
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 83

def blend_type
  @blend_type
end

#mirror

回転角度



89
90
91
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 89

def mirror
  @mirror
end

#name (readonly)

ピクチャ番号



69
70
71
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 69

def name
  @name
end

#number (readonly)

Returns the value of attribute number.



67
68
69
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 67

def number
  @number
end

#opacity (readonly)

Y 方向拡大率



81
82
83
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 81

def opacity
  @opacity
end

#origin (readonly)

ファイル名



71
72
73
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 71

def origin
  @origin
end

#tone (readonly)

ブレンド方法



85
86
87
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 85

def tone
  @tone
end

#x (readonly)

原点



73
74
75
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 73

def x
  @x
end

#y (readonly)

X 座標



75
76
77
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 75

def y
  @y
end

#zoom_x (readonly)

Y 座標



77
78
79
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 77

def zoom_x
  @zoom_x
end

#zoom_y (readonly)

X 方向拡大率



79
80
81
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 79

def zoom_y
  @zoom_y
end

Instance Method Details

#erase

Remove the picture from the screen



126
127
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 126

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



114
115
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 114

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)



118
119
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 118

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



103
104
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 103

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



123
124
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 123

def start_tone_change(tone, duration)
end

#update

Update the picture state change



133
134
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 133

def update
end