Module: RGSS3::SpriteContainer

Includes:
Container
Included in:
Plane, Sprite
Defined in:
lib/rgss3/sprite_container.rb

Overview

common methods for Plane and Sprite

Constant Summary collapse

BLEND =
{0 => :default, 1 => :additive, 2 => :subtractive}

Instance Attribute Summary collapse

Attributes included from Container

#opacity, #ox, #oy, #tone, #viewport, #visible, #z

Instance Method Summary collapse

Methods included from Container

#dispose, #disposed?, #draw, #initialize_copy

Instance Attribute Details

#bitmapObject

Returns the value of attribute bitmap.



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

def bitmap
  @bitmap
end

#blend_typeObject

Returns the value of attribute blend_type.



10
11
12
# File 'lib/rgss3/sprite_container.rb', line 10

def blend_type
  @blend_type
end

#colorObject

Returns the value of attribute color.



10
11
12
# File 'lib/rgss3/sprite_container.rb', line 10

def color
  @color
end

#zoom_xObject

Returns the value of attribute zoom_x.



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

def zoom_x
  @zoom_x
end

#zoom_yObject

Returns the value of attribute zoom_y.



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

def zoom_y
  @zoom_y
end

Instance Method Details

#initialize(viewport = nil) ⇒ Object



14
15
16
17
18
19
20
# File 'lib/rgss3/sprite_container.rb', line 14

def initialize(viewport = nil)
  @viewport = viewport
  @zoom_x = @zoom_y = 1.0
  @blend_type = 0
  @color = Color.new
  super()
end