Module: RGSS3::Container
- Included in:
- SpriteContainer, Window
- Defined in:
- lib/rgss3/container.rb
Overview
common methods for Plane, Sprite and Window
Instance Attribute Summary collapse
-
#opacity ⇒ Object
Returns the value of attribute opacity.
-
#ox ⇒ Object
Returns the value of attribute ox.
-
#oy ⇒ Object
Returns the value of attribute oy.
-
#tone ⇒ Object
Returns the value of attribute tone.
-
#viewport ⇒ Object
Returns the value of attribute viewport.
-
#visible ⇒ Object
Returns the value of attribute visible.
-
#z ⇒ Object
Returns the value of attribute z.
Instance Method Summary collapse
- #dispose ⇒ Object
- #disposed? ⇒ Boolean
- #draw ⇒ Object
- #initialize ⇒ Object
- #initialize_copy ⇒ Object
Instance Attribute Details
#opacity ⇒ Object
Returns the value of attribute opacity.
6 7 8 |
# File 'lib/rgss3/container.rb', line 6 def opacity @opacity end |
#ox ⇒ Object
Returns the value of attribute ox.
7 8 9 |
# File 'lib/rgss3/container.rb', line 7 def ox @ox end |
#oy ⇒ Object
Returns the value of attribute oy.
7 8 9 |
# File 'lib/rgss3/container.rb', line 7 def oy @oy end |
#tone ⇒ Object
Returns the value of attribute tone.
9 10 11 |
# File 'lib/rgss3/container.rb', line 9 def tone @tone end |
#viewport ⇒ Object
Returns the value of attribute viewport.
8 9 10 |
# File 'lib/rgss3/container.rb', line 8 def @viewport end |
#visible ⇒ Object
Returns the value of attribute visible.
8 9 10 |
# File 'lib/rgss3/container.rb', line 8 def visible @visible end |
#z ⇒ Object
Returns the value of attribute z.
7 8 9 |
# File 'lib/rgss3/container.rb', line 7 def z @z end |
Instance Method Details
#dispose ⇒ Object
27 28 29 30 |
# File 'lib/rgss3/container.rb', line 27 def dispose @disposed = true Graphics.remove_container(self) end |
#disposed? ⇒ Boolean
32 33 34 |
# File 'lib/rgss3/container.rb', line 32 def disposed? @disposed end |
#draw ⇒ Object
40 41 |
# File 'lib/rgss3/container.rb', line 40 def draw end |
#initialize ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'lib/rgss3/container.rb', line 11 def initialize @visible = true @z = 0 @ox = 0 @oy = 0 @opacity = 255 @tone = Tone.new Graphics.add_container(self) end |
#initialize_copy ⇒ Object
21 22 23 24 25 |
# File 'lib/rgss3/container.rb', line 21 def initialize_copy copy = super Graphics.add_container(copy) copy end |