Final exam version

This commit is contained in:
2026-06-22 18:49:13 +03:00
commit b03800ab63
11 changed files with 454 additions and 0 deletions

57
UML_classes.puml Normal file
View File

@@ -0,0 +1,57 @@
@startuml
class SpaceObject {
x
y
radius
color
update()
draw()
}
class Star {
name
planets
add_planet()
set_position()
update()
draw()
}
class Planet {
star
orbit_number
orbit_radius
angle
speed
direction
calculate_position()
update()
draw_orbit()
draw()
}
class SolarSystem {
stars
show_orbits
paused
create_system()
resize()
update()
draw()
toggle_pause()
toggle_orbits()
}
class SolarApp {
system
handle_events()
draw_panel()
run()
}
SpaceObject <|-- Star
SpaceObject <|-- Planet
Star "1" o-- "many" Planet
SolarSystem "1" o-- "2" Star
SolarApp --> SolarSystem
@enduml