Shawn M Moore > TAEB-0.03 > TAEB::Action

Download:
TAEB-0.03.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  2
Open  1
View/Report Bugs
Source  

command

This is the basic command for the action. For example, E for engraving, and #pray for praying.

run

This is what is called to begin the NetHack command. Usually you don't override this. Your command should define prompt handlers (respond_* methods) to continue interaction.

post_responses

This is called just after all responses will be queried, but before the cartographer, senses, messages, etc are done for this step.

done

This is called just before the action is freed, just before the next command is run.

new_action Str, Args => Action

This will create a new action with the specified name and arguments. The name is typically the package name in lower case.

name

Returns the name of this action object.

action_names

Returns a list of action names (Search, Melee, Eat, etc)

syntax highlighting: