Table of Contents

Class GameReplayController

Namespace
CodeBase.Patterns.Example
Assembly
4Experience.CodeBase.Patterns.Samples.dll
public class GameReplayController : ExtendedMonoBehaviour, IOriginator<MovePawnCommand>
Inheritance
Object
Component
Behaviour
MonoBehaviour
GameReplayController
Implements
Extension Methods

Properties

CoroutineIndex

private int CoroutineIndex { get; set; }

Property Value

int

CurrentMoveCommand

private MovePawnCommand CurrentMoveCommand { get; set; }

Property Value

MovePawnCommand

MementoCaretaker

private Caretaker<MovePawnCommand> MementoCaretaker { get; }

Property Value

Caretaker<MovePawnCommand>

WaitTime

private float WaitTime { get; set; }

Property Value

float

Methods

ClearMementosList()

public void ClearMementosList()

ReplayMove()

private void ReplayMove()

Restore(MovePawnCommand)

public void Restore(MovePawnCommand state)

Parameters

state MovePawnCommand

SaveMemento()

public IMemento<MovePawnCommand> SaveMemento()

Returns

IMemento<MovePawnCommand>

SaveMove(MovePawnCommand)

public void SaveMove(MovePawnCommand moveCommand)

Parameters

moveCommand MovePawnCommand

StartReplay()

public void StartReplay()

WaitForNextMove()

private IEnumerator WaitForNextMove()

Returns

IEnumerator