cozmo_taste_game.food package

cozmo_taste_game.food.food_group module

class cozmo_taste_game.food.food_group.FoodGroup[source]

Bases: enum.Enum

An enumeration.

fruit = 1
grain = 3
protein = 0
vegetable = 2

cozmo_taste_game.food.food_prop module

class cozmo_taste_game.food.food_prop.FoodProp[source]

Bases: abc.ABC

Abstract Food Prop interface.

color
food_groups

cozmo_taste_game.food.food_props module

class cozmo_taste_game.food.food_props.Banana[source]

Bases: cozmo_taste_game.food.food_prop.FoodProp

color
class cozmo_taste_game.food.food_props.Blueberry[source]

Bases: cozmo_taste_game.food.food_prop.FoodProp

color
class cozmo_taste_game.food.food_props.Broccoli[source]

Bases: cozmo_taste_game.food.food_prop.FoodProp

color
food_groups
class cozmo_taste_game.food.food_props.Carrot[source]

Bases: cozmo_taste_game.food.food_prop.FoodProp

color
class cozmo_taste_game.food.food_props.Cheese[source]

Bases: cozmo_taste_game.food.food_prop.FoodProp

color
class cozmo_taste_game.food.food_props.Corn[source]

Bases: cozmo_taste_game.food.food_prop.FoodProp

color
class cozmo_taste_game.food.food_props.Cupcake[source]

Bases: cozmo_taste_game.food.food_prop.FoodProp

color
class cozmo_taste_game.food.food_props.Grapes[source]

Bases: cozmo_taste_game.food.food_prop.FoodProp

color
class cozmo_taste_game.food.food_props.Hotdog[source]

Bases: cozmo_taste_game.food.food_prop.FoodProp

color
food_groups
class cozmo_taste_game.food.food_props.Milk[source]

Bases: cozmo_taste_game.food.food_prop.FoodProp

color
class cozmo_taste_game.food.food_props.Orange[source]

Bases: cozmo_taste_game.food.food_prop.FoodProp

color
class cozmo_taste_game.food.food_props.Watermelon[source]

Bases: cozmo_taste_game.food.food_prop.FoodProp

color
food_groups
cozmo_taste_game.food.food_props.get_food(food_type: str)[source]

Factory function

Parameters:food_type – String representing what food to return
Returns:Reference to the suitable static food object
Exception:KeyError if food_type isn’t in dictionary