Add: toString methods JavaDOC
This commit is contained in:
@@ -52,10 +52,14 @@ public class Order2 extends OrderLogicCard {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates the TURN ORDER box of the TUI.
|
||||
* @return the string containing the box
|
||||
*/
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
|
||||
var table = new AsciiTable(BorderStyle.UNICODE, 2);
|
||||
List<String> stringUp=new ArrayList<>();
|
||||
for(int i=0;i<2;i++)
|
||||
|
||||
@@ -53,6 +53,11 @@ public class Order3 extends OrderLogicCard {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates the TURN ORDER box of the TUI.
|
||||
* @return the string containing the box
|
||||
*/
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
|
||||
@@ -60,6 +60,11 @@ public class Order4 extends OrderLogicCard {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates the TURN ORDER box of the TUI.
|
||||
* @return the string containing the box
|
||||
*/
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
|
||||
@@ -61,6 +61,11 @@ public class Order5 extends OrderLogicCard {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates the TURN ORDER box of the TUI.
|
||||
* @return the string containing the box
|
||||
*/
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
|
||||
@@ -17,6 +17,10 @@ public class OrderPlayer implements Serializable {
|
||||
this.player=player;
|
||||
this.played=played;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the string containing the username and whether it played or not.
|
||||
*/
|
||||
@Override
|
||||
public String toString() {
|
||||
return player.getUserName()+" "+played;
|
||||
|
||||
Reference in New Issue
Block a user