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

100 lines
2.5 KiB
Plaintext

@startuml
class fr.monkhanny.dorfromantik.utils.PlayerScore {
- String serie
- int score
+ <<Create>> PlayerScore(String,int)
+ String getSerieName()
+ int getScore()
}
class fr.monkhanny.dorfromantik.utils.Hexagon {
- {static} int ANGLE_BETWEEN_VERTICES
+ <<Create>> Hexagon(int,int,int,double)
+ <<Create>> Hexagon(Point,int,double)
+ <<Create>> Hexagon(int,int,int)
+ <<Create>> Hexagon(Point,int)
- double calculateAngle(int,double)
}
class fr.monkhanny.dorfromantik.utils.ImageLoader {
+ {static} Image APPLICATION_ICON
+ {static} Image loadImage(String)
}
class fr.monkhanny.dorfromantik.utils.FontManager {
- {static} Font titleFont
- {static} Font buttonFont
+ {static} void loadCustomFont(Fonts)
+ {static} Font getTitleFont(float)
+ {static} Font getButtonFont(float)
+ {static} Font getAdjustedTitleFont(Component,float,float)
+ {static} Font getAdjustedButtonFont(Component,float,float)
+ {static} void setTitleFont(Font)
+ {static} void setButtonFont(Font)
}
class fr.monkhanny.dorfromantik.utils.HexagonDrawer {
- Tile tile
+ <<Create>> HexagonDrawer(Tile)
+ void drawHexagon(Graphics2D,double,Point)
- void drawHexagonRow(Graphics2D,double,double,double,int)
}
class fr.monkhanny.dorfromantik.utils.SoundLoader {
+ {static} Clip loadMusic(String)
}
class fr.monkhanny.dorfromantik.utils.MusicPlayer {
- {static} Clip musicClip
- {static} Clip soundClip
- {static} boolean isPlayingMusic
- {static} boolean isPlayingSound
+ {static} void loadMusic(Musics)
+ {static} void loadSound(Sounds)
+ {static} void playMusic()
+ {static} void playSound()
+ {static} void pauseMusic()
+ {static} void stopMusic()
+ {static} void setVolume(Clip,int)
+ {static} boolean isPlayingMusic()
+ {static} boolean isPlayingSound()
+ {static} Clip getMusicClip()
+ {static} Clip getSoundClip()
}
class fr.monkhanny.dorfromantik.utils.FontLoader {
+ {static} Font loadFont(Fonts)
}
class fr.monkhanny.dorfromantik.utils.Database {
- {static} String URL
- {static} String LOGIN
- {static} String PASSWORD
- Connection database
+ <<Create>> Database()
+ Connection getDatabase()
+ long getSeedBySeriesId(long)
+ List<PlayerScore> getAllScores(long)
+ List<String> getAllSeries()
+ List<String> getSeriesByDateRange(Date,Date)
+ int countSeriesByDateRange(Date,Date,boolean)
+ List<String> getSeriesByDateRangePaginated(Date,Date,int,int,boolean)
+ long getSeedByName(String)
+ void addScore(long,int)
+ void addCustomSeed(long)
+ List<PlayerScore> getTopPlayers()
+ List<Integer> getScoresBySeriesId(long)
+ void close()
}
java.awt.Polygon <|-- fr.monkhanny.dorfromantik.utils.Hexagon
@enduml