Class: GGLib::Image
- Inherits:
 - 
      Object
      
        
- Object
 - GGLib::Image
 
 
- Defined in:
 - lib/image.rb
 
Direct Known Subclasses
Instance Attribute Summary collapse
- 
  
    
      #descr  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute descr.
 - 
  
    
      #id  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute id.
 - 
  
    
      #obj  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute obj.
 - 
  
    
      #src  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute src.
 - 
  
    
      #x  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute x.
 - 
  
    
      #y  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute y.
 - 
  
    
      #z  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute z.
 
Instance Method Summary collapse
- #del ⇒ Object
 - #draw(x = @x, y = @y, z = @z) ⇒ Object
 - 
  
    
      #initialize(x, y, z, src, hardBorders = true, tracer = "None", no = nil)  ⇒ Image 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of Image.
 - #setPos(x, y = @y, z = @z) ⇒ Object
 
Constructor Details
#initialize(x, y, z, src, hardBorders = true, tracer = "None", no = nil) ⇒ Image
Returns a new instance of Image.
      110 111 112 113 114 115 116 117 118  | 
    
      # File 'lib/image.rb', line 110 def initialize(x,y,z,src,hardBorders=true,tracer="None",no=nil) @obj=Gosu::Image.new($window,src,hardBorders) @src=src @x=x @y=y @z=z @id=no @descr=tracer end  | 
  
Instance Attribute Details
#descr ⇒ Object (readonly)
Returns the value of attribute descr.
      109 110 111  | 
    
      # File 'lib/image.rb', line 109 def descr @descr end  | 
  
#id ⇒ Object (readonly)
Returns the value of attribute id.
      109 110 111  | 
    
      # File 'lib/image.rb', line 109 def id @id end  | 
  
#obj ⇒ Object (readonly)
Returns the value of attribute obj.
      109 110 111  | 
    
      # File 'lib/image.rb', line 109 def obj @obj end  | 
  
#src ⇒ Object (readonly)
Returns the value of attribute src.
      109 110 111  | 
    
      # File 'lib/image.rb', line 109 def src @src end  | 
  
#x ⇒ Object (readonly)
Returns the value of attribute x.
      109 110 111  | 
    
      # File 'lib/image.rb', line 109 def x @x end  | 
  
#y ⇒ Object (readonly)
Returns the value of attribute y.
      109 110 111  | 
    
      # File 'lib/image.rb', line 109 def y @y end  | 
  
#z ⇒ Object (readonly)
Returns the value of attribute z.
      109 110 111  | 
    
      # File 'lib/image.rb', line 109 def z @z end  | 
  
Instance Method Details
#del ⇒ Object
      127 128 129  | 
    
      # File 'lib/image.rb', line 127 def del @obj,@x,@y,@z,@id=nil end  | 
  
#draw(x = @x, y = @y, z = @z) ⇒ Object
      119 120 121  | 
    
      # File 'lib/image.rb', line 119 def draw(x=@x,y=@y,z=@z) @obj.draw(x,y,z) end  | 
  
#setPos(x, y = @y, z = @z) ⇒ Object
      122 123 124 125 126  | 
    
      # File 'lib/image.rb', line 122 def setPos(x,y=@y,z=@z) @x=x @y=y @z=z end  |