public override WorldModel GenerateChildWorldModel(Action action) { var newState = new FutureStateWorldModel(this); action.ApplyActionEffects(newState); newState.CalculateNextPlayer(); return(newState); }
public override WorldModel GenerateChildWorldModel() { FutureStateWorldModel copy = new FutureStateWorldModel(this) { NextPlayer = this.NextPlayer, NextEnemyAction = this.NextEnemyAction, NextEnemyActions = this.NextEnemyActions }; return(copy); }
public FutureStateWorldModel(FutureStateWorldModel parent) : base(parent) { this.GameManager = parent.GameManager; }