Javadoc fixes.
Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
parent
f0858f657b
commit
baba1540a5
|
@ -241,7 +241,7 @@ public class GameData {
|
||||||
/**
|
/**
|
||||||
* Constructor for score viewing.
|
* Constructor for score viewing.
|
||||||
* This will initialize all parameters and images needed for the
|
* This will initialize all parameters and images needed for the
|
||||||
* {@link #drawRankingElements(Graphics, int, int)} method.
|
* {@link #drawRankingElements(Graphics, OsuFile)} method.
|
||||||
* @param s the ScoreData object
|
* @param s the ScoreData object
|
||||||
* @param width container width
|
* @param width container width
|
||||||
* @param height container height
|
* @param height container height
|
||||||
|
|
|
@ -114,25 +114,25 @@ public class ScoreDB {
|
||||||
* Adds the game score to the database.
|
* Adds the game score to the database.
|
||||||
* @param data the GameData object
|
* @param data the GameData object
|
||||||
*/
|
*/
|
||||||
public static void addScore(ScoreData score) {
|
public static void addScore(ScoreData data) {
|
||||||
try {
|
try {
|
||||||
insertStmt.setLong(1, score.timestamp);
|
insertStmt.setLong(1, data.timestamp);
|
||||||
insertStmt.setInt(2, score.MID);
|
insertStmt.setInt(2, data.MID);
|
||||||
insertStmt.setInt(3, score.MSID);
|
insertStmt.setInt(3, data.MSID);
|
||||||
insertStmt.setString(4, score.title);
|
insertStmt.setString(4, data.title);
|
||||||
insertStmt.setString(5, score.artist);
|
insertStmt.setString(5, data.artist);
|
||||||
insertStmt.setString(6, score.creator);
|
insertStmt.setString(6, data.creator);
|
||||||
insertStmt.setString(7, score.version);
|
insertStmt.setString(7, data.version);
|
||||||
insertStmt.setInt(8, score.hit300);
|
insertStmt.setInt(8, data.hit300);
|
||||||
insertStmt.setInt(9, score.hit100);
|
insertStmt.setInt(9, data.hit100);
|
||||||
insertStmt.setInt(10, score.hit50);
|
insertStmt.setInt(10, data.hit50);
|
||||||
insertStmt.setInt(11, score.geki);
|
insertStmt.setInt(11, data.geki);
|
||||||
insertStmt.setInt(12, score.katu);
|
insertStmt.setInt(12, data.katu);
|
||||||
insertStmt.setInt(13, score.miss);
|
insertStmt.setInt(13, data.miss);
|
||||||
insertStmt.setLong(14, score.score);
|
insertStmt.setLong(14, data.score);
|
||||||
insertStmt.setInt(15, score.combo);
|
insertStmt.setInt(15, data.combo);
|
||||||
insertStmt.setBoolean(16, score.perfect);
|
insertStmt.setBoolean(16, data.perfect);
|
||||||
insertStmt.setInt(17, score.mods);
|
insertStmt.setInt(17, data.mods);
|
||||||
insertStmt.executeUpdate();
|
insertStmt.executeUpdate();
|
||||||
} catch (SQLException e) {
|
} catch (SQLException e) {
|
||||||
ErrorHandler.error("Failed to save score to database.", e, true);
|
ErrorHandler.error("Failed to save score to database.", e, true);
|
||||||
|
|
|
@ -145,7 +145,6 @@ public enum SongSort {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Initializes the sort tab.
|
* Initializes the sort tab.
|
||||||
* @param img the tab image
|
|
||||||
* @param width the container width
|
* @param width the container width
|
||||||
* @param height the container height
|
* @param height the container height
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -348,8 +348,6 @@ public class Slider implements HitObject {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Calculates the slider hit result.
|
* Calculates the slider hit result.
|
||||||
* @param time the hit object time (difference between track time)
|
|
||||||
* @param lastCircleHit true if the cursor was held within the last circle
|
|
||||||
* @return the hit result (GameData.HIT_* constants)
|
* @return the hit result (GameData.HIT_* constants)
|
||||||
*/
|
*/
|
||||||
private int hitResult() {
|
private int hitResult() {
|
||||||
|
|
|
@ -963,7 +963,6 @@ public class SongMenu extends BasicGameState {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Starts the game.
|
* Starts the game.
|
||||||
* @param osu the OsuFile to send to the game
|
|
||||||
*/
|
*/
|
||||||
private void startGame() {
|
private void startGame() {
|
||||||
if (MusicController.isTrackLoading())
|
if (MusicController.isTrackLoading())
|
||||||
|
|
Loading…
Reference in New Issue
Block a user