Class GameTypeToken
- java.lang.Object
-
- com.barrybecker4.ca.dj.jigo.sgf.tokens.SGFToken
-
- com.barrybecker4.ca.dj.jigo.sgf.tokens.TextToken
-
- com.barrybecker4.ca.dj.jigo.sgf.tokens.NumberToken
-
- com.barrybecker4.ca.dj.jigo.sgf.tokens.GameTypeToken
-
- All Implemented Interfaces:
InfoToken
public class GameTypeToken extends NumberToken implements InfoToken
The type of game in this SGF stream. Normally, a program won't continue if it doesn't read a 1 in this token which indicates a game of Go:1 - Go 6 - Backgammon 9 - Lines of Action 11 - Hex 18 - Amazons
-
-
Constructor Summary
Constructors Constructor Description GameTypeToken()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected floatgetDefault()Presume the SGF file is a game of Go, by default.intgetType()-
Methods inherited from class com.barrybecker4.ca.dj.jigo.sgf.tokens.NumberToken
getNumber, parseContent
-
-
-
-
Method Detail
-
getDefault
protected float getDefault()
Presume the SGF file is a game of Go, by default.- Specified by:
getDefaultin classNumberToken
-
getType
public int getType()
-
-