X-Git-Url: https://mudpy.org/gitweb?p=mudpy.git;a=blobdiff_plain;f=mudpy%2Fmenu.py;h=39a5ad2602a90f72d9c9b695ab2b8983adfdb708;hp=e67dd04285be82f7d1a846ca81facd5c8df3e567;hb=3bfe24979d98f8955b1cb9f0ee5359aacab4e98a;hpb=3241aeff1158a0c517bcc213f876b6b10ca03f41 diff --git a/mudpy/menu.py b/mudpy/menu.py index e67dd04..39a5ad2 100644 --- a/mudpy/menu.py +++ b/mudpy/menu.py @@ -4,6 +4,8 @@ # modify, and distribute this software is granted under terms # provided in the LICENSE file distributed with this software. +import mudpy + def activate_avatar_action(user): """Activate the selected avatar in the activate_avatar state.""" @@ -29,3 +31,53 @@ def checking_new_account_name_action_d(user): def checking_new_account_name_action_g(user): """Destroy the new account, the user asked to go back to name entry.""" return user.account.destroy() + + +def choose_gender_action(user): + """Set the avatar's gender to the selected value.""" + return user.avatar.set("gender", user.menu_choices[user.choice]) + + +def choose_name_action(user): + """Set the avatar's name to the selected value.""" + return user.avatar.set("name", user.menu_choices[user.choice]) + + +def choose_name_create_1(user): + """Provide a randomly-generated name as choice 1.""" + return mudpy.misc.random_name() + + +def choose_name_create_2(user): + """Provide a randomly-generated name as choice 2.""" + return mudpy.misc.random_name() + + +def choose_name_create_3(user): + """Provide a randomly-generated name as choice 3.""" + return mudpy.misc.random_name() + + +def choose_name_create_4(user): + """Provide a randomly-generated name as choice 4.""" + return mudpy.misc.random_name() + + +def choose_name_create_5(user): + """Provide a randomly-generated name as choice 5.""" + return mudpy.misc.random_name() + + +def choose_name_create_6(user): + """Provide a randomly-generated name as choice 6.""" + return mudpy.misc.random_name() + + +def choose_name_create_7(user): + """Provide a randomly-generated name as choice 7.""" + return mudpy.misc.random_name() + + +def delete_account_action_y(user): + """Permanently delete the account and all avatars, as requested.""" + return user.destroy()