Show

trait Show extends TypeStr

A trait for providing an alternative to toString. USing this trait can be convenient, but at some level of the inheritance the type must provide a ShowT type class instance. It is better for the ShowT type class instance to delegate to this trait than have the toString method delegate to the ShowT type class instance in the companion object. Potentially that can create initialisation order problems, but at the very least it can increase compile times. The capabilities of decimal place precision and explicit typing for numbers are placed defined here and in the corresponding SHowT type class although they have n meaning / purpose for many types, as seperating them adds enormous complexity for very little gain.

trait TypeStr
class Any
trait ShowDec
trait ShowN
trait Show2[A1, A2]
trait ShowDbl2
class PtM2
trait Vec2Like
class Pt2
class Vec2
trait length2M
class Vec2M
class LatLong
class Cood
trait TileCoord
trait TileCen
class HCen
class SqCen
trait TileSide
class HSide
class SqSide
trait TileVert
trait HCoord
trait HNotVert
class HVert
trait SqCoord
class SqVert
class HexParrX
class HexParrY
class HexRegImp
class LineSeg
class Sqlign
class HGridView
trait Show3[A1, A2, A3]
trait ShowDbl3
trait Vec3Like
class Pt3
class Vec3
trait AngleLike
class Angle
class AngleVec
class Latitude
class Longitude
trait HexReg
trait Hexlign
trait ShowNoDec
trait Polity
object Britain.type
object France.type
trait Polity
object Macedon.type
object Rome.type
trait Faction
object Eridu.type
object Uruk.type
class Character
object CharacA.type
object CharacB.type
object CharacY.type
object CharacZ.type
trait DungTerr
object Open.type
object Wall.type
class Faction
object Fac1.type
object Fac2.type
trait WTile
class Land
object SeaIce.type
object TerrainNone.type
trait Water
object Lake.type
object Ocean.type
trait Polity
object Britain.type
object France.type
object Germany.type
trait Polity
object Britain.type
object France.type
object Germany.type
trait ZugTerr
trait Building
object StoneBuilding.type
object WoodBuilding.type
object Hill.type
object Lake.type
object Plain.type
object WheatField.type
object Turn.type
class Player
object PlayerA.type
object PlayerB.type
object PlayerC.type
object PlayerD.type

Value members

Abstract methods

def show(style: ShowStyle): String

Intended to be a multiple parameter comprehensive Show method. Intended to be paralleled by showT method on ShowT type class instances.

Intended to be a multiple parameter comprehensive Show method. Intended to be paralleled by showT method on ShowT type class instances.

def showDec(style: ShowStyle, maxPlaces: Int, minPlaces: Int): String

Intended to be a multiple parameter comprehensive Show method. Intended to be paralleled by showT method on ShowT type class instances.

Intended to be a multiple parameter comprehensive Show method. Intended to be paralleled by showT method on ShowT type class instances.

def str: String

The most basic Show method, paralleling the strT method on ShowT type class instances.

The most basic Show method, paralleling the strT method on ShowT type class instances.

Concrete methods

def showDec(style: ShowStyle, maxPlaces: Int): String

Intended to be a multiple parameter comprehensive Show method. Intended to be paralleled by showT method on ShowT type class instances.

Intended to be a multiple parameter comprehensive Show method. Intended to be paralleled by showT method on ShowT type class instances.

override def toString: String
Definition Classes
Any

Inherited methods

The RSON type of T. This the only data that a ShowT instance requires, that can't be implemented through delegation to an object of type Show.

The RSON type of T. This the only data that a ShowT instance requires, that can't be implemented through delegation to an object of type Show.

Inherited from:
TypeStr