Class: Sprite
- Inherits:
-
Object
- Object
- Sprite
- Defined in:
- lib/sprite.rb
Instance Attribute Summary (collapse)
-
- (Object) angle
Returns the value of attribute angle.
-
- (Object) bitmap
Returns the value of attribute bitmap.
-
- (Object) blend_type
Returns the value of attribute blend_type.
-
- (Object) bush_depth
Returns the value of attribute bush_depth.
-
- (Object) bush_opacity
Returns the value of attribute bush_opacity.
-
- (Object) color
Returns the value of attribute color.
-
- (Object) mirror
Returns the value of attribute mirror.
-
- (Object) opacity
Returns the value of attribute opacity.
-
- (Object) ox
Returns the value of attribute ox.
-
- (Object) oy
Returns the value of attribute oy.
-
- (Object) src_rect
Returns the value of attribute src_rect.
-
- (Object) tone
Returns the value of attribute tone.
-
- (Object) viewport
Returns the value of attribute viewport.
-
- (Object) visible
Returns the value of attribute visible.
-
- (Object) wave_amp
Returns the value of attribute wave_amp.
-
- (Object) wave_length
Returns the value of attribute wave_length.
-
- (Object) wave_phase
Returns the value of attribute wave_phase.
-
- (Object) wave_speed
Returns the value of attribute wave_speed.
-
- (Object) x
Returns the value of attribute x.
-
- (Object) y
Returns the value of attribute y.
-
- (Object) z
Returns the value of attribute z.
-
- (Object) zoom_x
Returns the value of attribute zoom_x.
-
- (Object) zoom_y
Returns the value of attribute zoom_y.
Instance Method Summary (collapse)
- - (Object) dispose
- - (Boolean) disposed?
- - (Object) flash(color, duration)
- - (Object) height
-
- (Sprite) initialize(viewport = nil)
constructor
A new instance of Sprite.
- - (Object) update
- - (Object) width
Constructor Details
- (Sprite) initialize(viewport = nil)
Returns a new instance of Sprite
3 4 5 |
# File 'lib/sprite.rb', line 3 def initialize( = nil) fail NotImplementedError end |
Instance Attribute Details
- (Object) angle
Returns the value of attribute angle
55 56 57 |
# File 'lib/sprite.rb', line 55 def angle @angle end |
- (Object) bitmap
Returns the value of attribute bitmap
31 32 33 |
# File 'lib/sprite.rb', line 31 def bitmap @bitmap end |
- (Object) blend_type
Returns the value of attribute blend_type
73 74 75 |
# File 'lib/sprite.rb', line 73 def blend_type @blend_type end |
- (Object) bush_depth
Returns the value of attribute bush_depth
67 68 69 |
# File 'lib/sprite.rb', line 67 def bush_depth @bush_depth end |
- (Object) bush_opacity
Returns the value of attribute bush_opacity
69 70 71 |
# File 'lib/sprite.rb', line 69 def bush_opacity @bush_opacity end |
- (Object) color
Returns the value of attribute color
75 76 77 |
# File 'lib/sprite.rb', line 75 def color @color end |
- (Object) mirror
Returns the value of attribute mirror
65 66 67 |
# File 'lib/sprite.rb', line 65 def mirror @mirror end |
- (Object) opacity
Returns the value of attribute opacity
71 72 73 |
# File 'lib/sprite.rb', line 71 def opacity @opacity end |
- (Object) ox
Returns the value of attribute ox
47 48 49 |
# File 'lib/sprite.rb', line 47 def ox @ox end |
- (Object) oy
Returns the value of attribute oy
49 50 51 |
# File 'lib/sprite.rb', line 49 def oy @oy end |
- (Object) src_rect
Returns the value of attribute src_rect
33 34 35 |
# File 'lib/sprite.rb', line 33 def src_rect @src_rect end |
- (Object) tone
Returns the value of attribute tone
77 78 79 |
# File 'lib/sprite.rb', line 77 def tone @tone end |
- (Object) viewport
Returns the value of attribute viewport
35 36 37 |
# File 'lib/sprite.rb', line 35 def @viewport end |
- (Object) visible
Returns the value of attribute visible
37 38 39 |
# File 'lib/sprite.rb', line 37 def visible @visible end |
- (Object) wave_amp
Returns the value of attribute wave_amp
57 58 59 |
# File 'lib/sprite.rb', line 57 def wave_amp @wave_amp end |
- (Object) wave_length
Returns the value of attribute wave_length
59 60 61 |
# File 'lib/sprite.rb', line 59 def wave_length @wave_length end |
- (Object) wave_phase
Returns the value of attribute wave_phase
63 64 65 |
# File 'lib/sprite.rb', line 63 def wave_phase @wave_phase end |
- (Object) wave_speed
Returns the value of attribute wave_speed
61 62 63 |
# File 'lib/sprite.rb', line 61 def wave_speed @wave_speed end |
- (Object) x
Returns the value of attribute x
41 42 43 |
# File 'lib/sprite.rb', line 41 def x @x end |
- (Object) y
Returns the value of attribute y
43 44 45 |
# File 'lib/sprite.rb', line 43 def y @y end |
- (Object) z
Returns the value of attribute z
45 46 47 |
# File 'lib/sprite.rb', line 45 def z @z end |
- (Object) zoom_x
Returns the value of attribute zoom_x
51 52 53 |
# File 'lib/sprite.rb', line 51 def zoom_x @zoom_x end |
- (Object) zoom_y
Returns the value of attribute zoom_y
53 54 55 |
# File 'lib/sprite.rb', line 53 def zoom_y @zoom_y end |
Instance Method Details
- (Object) dispose
7 8 9 |
# File 'lib/sprite.rb', line 7 def dispose fail NotImplementedError end |
- (Boolean) disposed?
11 12 13 |
# File 'lib/sprite.rb', line 11 def disposed? fail NotImplementedError end |
- (Object) flash(color, duration)
15 16 17 |
# File 'lib/sprite.rb', line 15 def flash(color, duration) fail NotImplementedError end |
- (Object) height
27 28 29 |
# File 'lib/sprite.rb', line 27 def height fail NotImplementedError end |
- (Object) update
19 20 21 |
# File 'lib/sprite.rb', line 19 def update fail NotImplementedError end |
- (Object) width
23 24 25 |
# File 'lib/sprite.rb', line 23 def width fail NotImplementedError end |