55 lines
990 B
Plaintext
55 lines
990 B
Plaintext
|
|
//! Shared person behaviors — used by all characters via the Person template
|
||
|
|
|
||
|
|
behavior BasicNeeds {
|
||
|
|
repeat {
|
||
|
|
choose {
|
||
|
|
if(self.hunger is hungry) { eat }
|
||
|
|
if(self.hunger is satisfied) { rest }
|
||
|
|
if(self.thirst is thirsty) { drink }
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
behavior SocialInteraction {
|
||
|
|
choose {
|
||
|
|
greet_neighbors
|
||
|
|
chat_with_customers
|
||
|
|
family_time
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// Generic schedule utility behaviors used across WorkWeek-derived schedules
|
||
|
|
behavior MorningRoutine {
|
||
|
|
then {
|
||
|
|
wake_up
|
||
|
|
eat_breakfast
|
||
|
|
prepare_for_day
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
behavior DailyWork {
|
||
|
|
then {
|
||
|
|
travel_to_work
|
||
|
|
perform_duties
|
||
|
|
travel_home
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
behavior Resting {
|
||
|
|
choose {
|
||
|
|
read_book
|
||
|
|
take_nap
|
||
|
|
sit_in_garden
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// Sunday recovery — the whole family
|
||
|
|
behavior FamilyBreakfast {
|
||
|
|
then {
|
||
|
|
sleep_in
|
||
|
|
make_breakfast_together
|
||
|
|
eat_together
|
||
|
|
discuss_the_week
|
||
|
|
}
|
||
|
|
}
|