Beispiel #1
0
        public Food DescribeNewSmashAction(int stepNumber, Food foodToBePeeled)
        {
            Smash action = new Smash(stepNumber, foodToBePeeled);

            _actions.Add(action);

            totalStepCount++;

            return(action.GetResultedFood());
        }
Beispiel #2
0
        public Food DescribeNewSmashAction(int stepNumber, string identifier)
        {
            Food f = new Food(identifier);

            _initialFoods.Add(f);

            Smash action = new Smash(stepNumber, f);

            _actions.Add(action);

            totalStepCount++;

            return(action.GetResultedFood());
        }
Beispiel #3
0
        public Food DescribeNewSmashAction(int stepNumber, GameObject foodObject)
        {
            Food f = new Food(foodObject.GetComponent <FoodStatus>().foodIdentifier);

            _initialFoods.Add(f);

            Smash action = new Smash(stepNumber, f);

            _actions.Add(action);

            totalStepCount++;

            return(action.GetResultedFood());
        }