Exemple #1
0
        public override WorldModel GenerateChildWorldModel(Action action)
        {
            var newState = new FutureStateWorldModel(this);

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

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

            return(copy);
        }
Exemple #3
0
 public FutureStateWorldModel(FutureStateWorldModel parent) : base(parent)
 {
     this.GameManager = parent.GameManager;
 }