Class: Sprite

Inherits:
Object
  • Object
show all
Defined in:
lib/sprite.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(viewport = nil) ⇒ Sprite

Returns a new instance of Sprite.



3
4
5
# File 'lib/sprite.rb', line 3

def initialize(viewport = nil)
  fail NotImplementedError
end

Instance Attribute Details

#angleObject

Returns the value of attribute angle.



55
56
57
# File 'lib/sprite.rb', line 55

def angle
  @angle
end

#bitmapObject

Returns the value of attribute bitmap.



31
32
33
# File 'lib/sprite.rb', line 31

def bitmap
  @bitmap
end

#blend_typeObject

Returns the value of attribute blend_type.



73
74
75
# File 'lib/sprite.rb', line 73

def blend_type
  @blend_type
end

#bush_depthObject

Returns the value of attribute bush_depth.



67
68
69
# File 'lib/sprite.rb', line 67

def bush_depth
  @bush_depth
end

#bush_opacityObject

Returns the value of attribute bush_opacity.



69
70
71
# File 'lib/sprite.rb', line 69

def bush_opacity
  @bush_opacity
end

#colorObject

Returns the value of attribute color.



75
76
77
# File 'lib/sprite.rb', line 75

def color
  @color
end

#mirrorObject

Returns the value of attribute mirror.



65
66
67
# File 'lib/sprite.rb', line 65

def mirror
  @mirror
end

#opacityObject

Returns the value of attribute opacity.



71
72
73
# File 'lib/sprite.rb', line 71

def opacity
  @opacity
end

#oxObject

Returns the value of attribute ox.



47
48
49
# File 'lib/sprite.rb', line 47

def ox
  @ox
end

#oyObject

Returns the value of attribute oy.



49
50
51
# File 'lib/sprite.rb', line 49

def oy
  @oy
end

#src_rectObject

Returns the value of attribute src_rect.



33
34
35
# File 'lib/sprite.rb', line 33

def src_rect
  @src_rect
end

#toneObject

Returns the value of attribute tone.



77
78
79
# File 'lib/sprite.rb', line 77

def tone
  @tone
end

#viewportObject

Returns the value of attribute viewport.



35
36
37
# File 'lib/sprite.rb', line 35

def viewport
  @viewport
end

#visibleObject

Returns the value of attribute visible.



37
38
39
# File 'lib/sprite.rb', line 37

def visible
  @visible
end

#wave_ampObject

Returns the value of attribute wave_amp.



57
58
59
# File 'lib/sprite.rb', line 57

def wave_amp
  @wave_amp
end

#wave_lengthObject

Returns the value of attribute wave_length.



59
60
61
# File 'lib/sprite.rb', line 59

def wave_length
  @wave_length
end

#wave_phaseObject

Returns the value of attribute wave_phase.



63
64
65
# File 'lib/sprite.rb', line 63

def wave_phase
  @wave_phase
end

#wave_speedObject

Returns the value of attribute wave_speed.



61
62
63
# File 'lib/sprite.rb', line 61

def wave_speed
  @wave_speed
end

#xObject

Returns the value of attribute x.



41
42
43
# File 'lib/sprite.rb', line 41

def x
  @x
end

#yObject

Returns the value of attribute y.



43
44
45
# File 'lib/sprite.rb', line 43

def y
  @y
end

#zObject

Returns the value of attribute z.



45
46
47
# File 'lib/sprite.rb', line 45

def z
  @z
end

#zoom_xObject

Returns the value of attribute zoom_x.



51
52
53
# File 'lib/sprite.rb', line 51

def zoom_x
  @zoom_x
end

#zoom_yObject

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

#disposeObject



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

def dispose
  fail NotImplementedError
end

#disposed?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/sprite.rb', line 11

def disposed?
  fail NotImplementedError
end

#flash(color, duration) ⇒ Object



15
16
17
# File 'lib/sprite.rb', line 15

def flash(color, duration)
  fail NotImplementedError
end

#heightObject



27
28
29
# File 'lib/sprite.rb', line 27

def height
  fail NotImplementedError
end

#updateObject



19
20
21
# File 'lib/sprite.rb', line 19

def update
  fail NotImplementedError
end

#widthObject



23
24
25
# File 'lib/sprite.rb', line 23

def width
  fail NotImplementedError
end