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
|
@Override
|
||||||
public String toString()
|
public String toString()
|
||||||
{
|
{
|
||||||
|
|
||||||
var table = new AsciiTable(BorderStyle.UNICODE, 2);
|
var table = new AsciiTable(BorderStyle.UNICODE, 2);
|
||||||
List<String> stringUp=new ArrayList<>();
|
List<String> stringUp=new ArrayList<>();
|
||||||
for(int i=0;i<2;i++)
|
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
|
@Override
|
||||||
public String toString()
|
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
|
@Override
|
||||||
public String toString()
|
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
|
@Override
|
||||||
public String toString()
|
public String toString()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -17,6 +17,10 @@ public class OrderPlayer implements Serializable {
|
|||||||
this.player=player;
|
this.player=player;
|
||||||
this.played=played;
|
this.played=played;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return the string containing the username and whether it played or not.
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return player.getUserName()+" "+played;
|
return player.getUserName()+" "+played;
|
||||||
|
|||||||
Reference in New Issue
Block a user