class Game::Polygon
- Game::Polygon
- Game::Shape
- Reference
- Object
Direct Known Subclasses
Defined in:
game/shapes/polygon.crConstructors
Instance Method Summary
- #center_x : Int32 | Float32
- #center_x=(center_x : Int32 | Float32)
- #center_y : Int32 | Float32
- #center_y=(center_y : Int32 | Float32)
- #draw_filled(parent_x = 0, parent_y = 0)
- #draw_outlined(parent_x = 0, parent_y = 0)
- #height
- #height=(height)
- #radius : Int32 | Float32
- #radius=(radius : Int32 | Float32)
- #rotation : Int32 | Float32
- #rotation=(rotation : Int32 | Float32)
- #sides : Int32
- #sides=(sides : Int32)
- #width
- #width=(width)
- #x
- #x=(x)
- #y
- #y=(y)
Instance methods inherited from class Game::Shape
color : Color
color,
color=(color : Color)
color=,
draw(image : Image, parent_x = 0, parent_y = 0)draw(parent_x = 0, parent_y = 0) draw, draw_filled(image : Image, parent_x = 0, parent_y = 0)
draw_filled(parent_x = 0, parent_y = 0) draw_filled, draw_outlined(image : Image, parent_x = 0, parent_y = 0)
draw_outlined(parent_x = 0, parent_y = 0) draw_outlined, filled=(filled : Bool) filled=, filled? : Bool filled?, height height, height=(_height) height=, update(_frame_time) update, width width, width=(_width) width=, x x, x=(_x) x=, y y, y=(_y) y=
Constructor methods inherited from class Game::Shape
new(color, filled : Bool = FILLED)
new
Constructor Detail
def self.new(center_x = nil, center_y = nil, radius = nil, x = nil, y = nil, size = nil, sides : Int32 = 5, rotation : Float32 | Int32 = 0, color = nil, filled = Shape::FILLED)
#