Files
SAE31_2024/Documentation/DiagrammeUML/Utils/Diagram_utils.puml

84 lines
2.1 KiB
Plaintext
Raw Normal View History

2024-12-11 09:53:12 +01:00
@startuml utils
!theme plain
top to bottom direction
skinparam linetype ortho
class Database {
+ Database():
- database: Connection
+ addScore(long, int): void
+ getSeedBySeriesId(long): long
+ countSeriesByDateRange(Date, Date, boolean): int
+ getSeriesByDateRange(Date, Date): List<String>
+ getScoresBySeriesId(long): List<Integer>
+ getAllScores(long): List<PlayerScore>
+ getSeriesByDateRangePaginated(Date, Date, int, int, boolean): List<String>
+ addCustomSeed(long): void
+ close(): void
+ getSeedByName(String): long
database: Connection
topPlayers: List<PlayerScore>
allSeries: List<String>
}
2024-12-11 09:53:12 +01:00
class FontLoader {
+ FontLoader():
+ loadFont(Fonts): Font
}
2024-12-11 09:53:12 +01:00
class FontManager {
+ FontManager():
- buttonFont: Font
- titleFont: Font
+ getTitleFont(float): Font
+ loadCustomFont(Fonts): void
+ getAdjustedTitleFont(Component, float, float): Font
+ getAdjustedButtonFont(Component, float, float): Font
+ getButtonFont(float): Font
buttonFont: Font
titleFont: Font
}
2024-12-11 09:53:12 +01:00
class Hexagon {
+ Hexagon(int, int, int):
+ Hexagon(Point, int):
+ Hexagon(Point, int, double):
+ Hexagon(int, int, int, double):
- calculateAngle(int, double): double
}
2024-12-11 09:53:12 +01:00
class HexagonDrawer {
+ HexagonDrawer(Tile):
+ drawHexagon(Graphics2D, double, Point): void
- drawHexagonRow(Graphics2D, double, double, double, int): void
}
2024-12-11 09:53:12 +01:00
class ImageLoader {
+ ImageLoader():
+ loadImage(String): Image?
}
2024-12-11 09:53:12 +01:00
class MusicPlayer {
+ MusicPlayer():
- soundClip: Clip
- musicClip: Clip
+ loadMusic(Musics): void
+ playSound(): void
+ pauseMusic(): void
+ loadSound(Sounds): void
+ setVolume(Clip, int): void
+ playMusic(): void
+ stopMusic(): void
playingSound: boolean
soundClip: Clip
playingMusic: boolean
musicClip: Clip
}
2024-12-11 09:53:12 +01:00
class PlayerScore {
+ PlayerScore(String, int):
- score: int
serieName: String
score: int
}
2024-12-11 09:53:12 +01:00
class SoundLoader {
+ SoundLoader():
+ loadMusic(String): Clip?
}
2024-12-11 09:53:12 +01:00
Database -[#595959,dashed]-> PlayerScore : "«create»"
HexagonDrawer -[#595959,dashed]-> Hexagon : "«create»"
@enduml