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

#angle ⇒ Object

Returns the value of attribute angle.



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

def angle
  @angle
end

#bitmap ⇒ Object

Returns the value of attribute bitmap.



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

def bitmap
  @bitmap
end

#blend_type ⇒ Object

Returns the value of attribute blend_type.



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

def blend_type
  @blend_type
end

#bush_depth ⇒ Object

Returns the value of attribute bush_depth.



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

def bush_depth
  @bush_depth
end

#bush_opacity ⇒ Object

Returns the value of attribute bush_opacity.



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

def bush_opacity
  @bush_opacity
end

#color ⇒ Object

Returns the value of attribute color.



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

def color
  @color
end

#mirror ⇒ Object

Returns the value of attribute mirror.



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

def mirror
  @mirror
end

#opacity ⇒ Object

Returns the value of attribute opacity.



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

def opacity
  @opacity
end

#ox ⇒ Object

Returns the value of attribute ox.



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

def ox
  @ox
end

#oy ⇒ Object

Returns the value of attribute oy.



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

def oy
  @oy
end

#src_rect ⇒ Object

Returns the value of attribute src_rect.



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

def src_rect
  @src_rect
end

#tone ⇒ Object

Returns the value of attribute tone.



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

def tone
  @tone
end

#viewport ⇒ Object

Returns the value of attribute viewport.



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

def viewport
  @viewport
end

#visible ⇒ Object

Returns the value of attribute visible.



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

def visible
  @visible
end

#wave_amp ⇒ Object

Returns the value of attribute wave_amp.



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

def wave_amp
  @wave_amp
end

#wave_length ⇒ Object

Returns the value of attribute wave_length.



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

def wave_length
  @wave_length
end

#wave_phase ⇒ Object

Returns the value of attribute wave_phase.



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

def wave_phase
  @wave_phase
end

#wave_speed ⇒ Object

Returns the value of attribute wave_speed.



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

def wave_speed
  @wave_speed
end

#x ⇒ Object

Returns the value of attribute x.



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

def x
  @x
end

#y ⇒ Object

Returns the value of attribute y.



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

def y
  @y
end

#z ⇒ Object

Returns the value of attribute z.



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

def z
  @z
end

#zoom_x ⇒ Object

Returns the value of attribute zoom_x.



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

def zoom_x
  @zoom_x
end

#zoom_y ⇒ Object

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

#dispose ⇒ Object



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

#height ⇒ Object



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

def height
  fail NotImplementedError
end

#update ⇒ Object



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

def update
  fail NotImplementedError
end

#width ⇒ Object



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

def width
  fail NotImplementedError
end