Class: RGSS::Size

Inherits:
IVec2
  • Object
show all
Defined in:
lib/rgss/stubs/rect.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from IVec2

#+, #-, #[], #[]=, #empty?, #initialize, #set, #to_a, #to_h

Constructor Details

This class inherits a constructor from RGSS::IVec2

Instance Attribute Details

#heightInteger

Returns:

  • (Integer)


75
76
77
# File 'lib/rgss/stubs/rect.rb', line 75

def height
  @height
end

#widthInteger

Returns:

  • (Integer)


71
72
73
# File 'lib/rgss/stubs/rect.rb', line 71

def width
  @width
end

Instance Method Details

#offset(x, y) ⇒ Point #offset(other) ⇒ Point

Overloads:

  • #offset(x, y) ⇒ Point

    Parameters:

    • x (Numeric)
    • y (Numeric)
  • #offset(other) ⇒ Point

    Parameters:

Returns:



87
88
# File 'lib/rgss/stubs/rect.rb', line 87

def offset
end

#offset!(x, y) ⇒ self #offset!(other) ⇒ self

Overloads:

  • #offset!(x, y) ⇒ self

    Parameters:

    • x (Numeric)
    • y (Numeric)
  • #offset!(other) ⇒ self

    Parameters:

Returns:

  • (self)


100
101
# File 'lib/rgss/stubs/rect.rb', line 100

def offset!
end