From 6dc8dc4bddcb7733dcb7e4b57fb8f3c25832a72c Mon Sep 17 00:00:00 2001 From: Joshua Perry <45966243+jpez-development@users.noreply.github.com> Date: Tue, 31 Jan 2023 16:00:09 +0000 Subject: [PATCH] made abstract --- src/main/java/org/r0r5chach/Competitor.java | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/main/java/org/r0r5chach/Competitor.java b/src/main/java/org/r0r5chach/Competitor.java index d909c14..f61fccb 100644 --- a/src/main/java/org/r0r5chach/Competitor.java +++ b/src/main/java/org/r0r5chach/Competitor.java @@ -1,13 +1,11 @@ package org.r0r5chach; import java.text.DecimalFormat; -import java.util.Arrays; - /** * Class that defines the various attributes and methods associated with a Valorant Player * @author r0r5chach */ -public class Competitor { +public abstract class Competitor { /** * The format to use when converting decimal numbers to strings */ @@ -117,13 +115,7 @@ public class Competitor { * Get all the attributes of the player * @return all attributes of the player in a formatted string */ - public String getFullDetails() { - return "Player Number: " + getPlayerNumber() + - "\nName: " + getPlayerName().getFullName() + - "\nPlayer Level: " + getPlayerLevel().getRank() + - "\nScores: " + Arrays.toString(getScores()).replace("[","").replace("]", "") + //replace() allows the array to not be surrounded by brackets - "\nOverall Score: " + getOverallScore(); - } + public abstract String getFullDetails(); /** * Get the important attributes of the player * @return a formatted string containing the playerNumber, playerName, and overall score