Exemplo n.º 1
0
        public override WorldModel GenerateChildWorldModel(Action action)
        {
            var newState = new FutureStateWorldModel(this);

            action.ApplyActionEffects(newState);
            newState.CalculateNextPlayer();

            return(newState);
        }
Exemplo n.º 2
0
        public override WorldModel GenerateChildWorldModel()
        {
            FutureStateWorldModel copy = new FutureStateWorldModel(this)
            {
                NextPlayer       = this.NextPlayer,
                NextEnemyAction  = this.NextEnemyAction,
                NextEnemyActions = this.NextEnemyActions
            };

            return(copy);
        }
Exemplo n.º 3
0
 public FutureStateWorldModel(FutureStateWorldModel parent) : base(parent)
 {
     this.GameManager = parent.GameManager;
 }