예제 #1
0
 public TokenGenerator(Board board, Level level, Random random)
 {
     this.board = board;
     this.level = level;
     this.random = random;
     this.nextToken = null;
     LoadNextToken();
 }
예제 #2
0
 public void LoadNextToken()
 {
     currentToken = nextToken;
     nextToken = level.GetRandomToken(board, random);
 }
예제 #3
0
 public void ClearCurrentToken()
 {
     currentToken = null;
 }