Files
storybook/examples/baker-family/behaviors/baker_behaviors.sb

63 lines
1.2 KiB
Plaintext
Raw Normal View History

//! Core baking behaviors — Martha and Jane's craft
//!
//! These behaviors are referenced by the Baker template and BakerSchedule.
//! See also: competition_behaviors.sb for competition-week-specific actions.
// Main baking work routine
behavior BakingWork {
then {
check_orders
prepare_ingredients
choose {
make_bread
make_pastries
make_cakes
}
bake
cool_products
package_goods
}
}
// Kitchen prep routine
behavior PrepKitchen {
then {
clean_surfaces
check_supplies
preheat_ovens
organize_workspace
}
}
// Market day selling behavior
behavior SellAtMarket {
repeat {
then {
greet_customer
show_products
if(self.customer_interested) {
make_sale
}
thank_customer
}
}
}
// Baker skill behaviors (from Baker template)
behavior BakingSkills {
then {
assess_dough
adjust_recipe
monitor_temperature
}
}
behavior CustomerService {
then {
greet_warmly
listen_to_needs
recommend_products
handle_payment
}
}