Class Gameboard
- Namespace
- CodeBase.Patterns.Example
- Assembly
- 4Experience.CodeBase.Patterns.Samples.dll
public class Gameboard : SingletonMonoBehaviour<Gameboard>
- Inheritance
-
Object
Component
Behaviour
MonoBehaviour
Gameboard
- Inherited Members
-
- Extension Methods
-
Properties
CurrentGameGenerator
private GameboardGenerator CurrentGameGenerator { get; set; }
Property Value
- GameboardGenerator
CurrentGameboardMementoClient
private GameReplayController CurrentGameboardMementoClient { get; set; }
Property Value
- GameReplayController
CurrentMoveCommand
private MovePawnCommand CurrentMoveCommand { get; set; }
Property Value
- MovePawnCommand
GeneratorSettings
private BoardGeneratorSettings GeneratorSettings { get; set; }
Property Value
- BoardGeneratorSettings
IsReplayModeOn
public bool IsReplayModeOn { get; private set; }
Property Value
- bool
IsWhiteTurn
public bool IsWhiteTurn { get; private set; }
Property Value
- bool
PawnCollection
public Pawn[,] PawnCollection { get; private set; }
Property Value
- Pawn[,]
Recorder
private CommandRecorder Recorder { get; set; }
Property Value
- CommandRecorder
XTileCount
private int XTileCount { get; set; }
Property Value
- int
YTileCount
private int YTileCount { get; set; }
Property Value
- int
Methods
ChangeTurn()
DestroyAllPawns()
private void DestroyAllPawns()
DestroyPawn(int, int)
public void DestroyPawn(int xPosition, int yPosition)
Parameters
xPosition int
yPosition int
ExecuteMoveCommand(Pawn, int, int)
public void ExecuteMoveCommand(Pawn cachedPawn, int xPosition, int yPosition)
Parameters
cachedPawn Pawn
xPosition int
yPosition int
InitializeGame()
public void InitializeGame()
InitializeGenerateBoard()
private void InitializeGenerateBoard()
InitializeGeneratePawns()
private void InitializeGeneratePawns()
PlayAgain(bool)
public void PlayAgain(bool playReplay)
Parameters
playReplay bool
ReplayMove(MovePawnCommand)
public void ReplayMove(MovePawnCommand moveCommand)
Parameters
moveCommand MovePawnCommand
SetPositionPawns()
private void SetPositionPawns()
StartGame()
UpdatePawnCollection(Pawn[,])
public void UpdatePawnCollection(Pawn[,] pawnCollection)
Parameters
pawnCollection Pawn[,]