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

Instance Method Summary collapse

Instance Attribute Details

#opacityObject

Returns the value of attribute opacity.



6
7
8
# File 'lib/rgss3/container.rb', line 6

def opacity
  @opacity
end

#oxObject

Returns the value of attribute ox.



7
8
9
# File 'lib/rgss3/container.rb', line 7

def ox
  @ox
end

#oyObject

Returns the value of attribute oy.



7
8
9
# File 'lib/rgss3/container.rb', line 7

def oy
  @oy
end

#toneObject

Returns the value of attribute tone.



9
10
11
# File 'lib/rgss3/container.rb', line 9

def tone
  @tone
end

#viewportObject

Returns the value of attribute viewport.



8
9
10
# File 'lib/rgss3/container.rb', line 8

def viewport
  @viewport
end

#visibleObject

Returns the value of attribute visible.



8
9
10
# File 'lib/rgss3/container.rb', line 8

def visible
  @visible
end

#zObject

Returns the value of attribute z.



7
8
9
# File 'lib/rgss3/container.rb', line 7

def z
  @z
end

Instance Method Details

#disposeObject



27
28
29
30
# File 'lib/rgss3/container.rb', line 27

def dispose
  @disposed = true
  Graphics.remove_container(self)
end

#disposed?Boolean

Returns:

  • (Boolean)


32
33
34
# File 'lib/rgss3/container.rb', line 32

def disposed?
  @disposed
end

#drawObject



40
41
# File 'lib/rgss3/container.rb', line 40

def draw
end

#initializeObject



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_copyObject



21
22
23
24
25
# File 'lib/rgss3/container.rb', line 21

def initialize_copy
  copy = super
  Graphics.add_container(copy)
  copy
end