Ejemplo n.º 1
0
        public Food DescribeNewSmashAction(int stepNumber, Food foodToBePeeled)
        {
            Smash action = new Smash(stepNumber, foodToBePeeled);

            _actions.Add(action);

            totalStepCount++;

            return(action.GetResultedFood());
        }
Ejemplo n.º 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());
        }
Ejemplo n.º 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());
        }