Table of Contents

Class: EmoteCommandHandler mudlib/emote.py

Provides support for basic emotions.

Base Classes   
core.Object
Methods   
ack
agree
apologize
applaud
belch
blbl
blush
bow
cackle
cheer
chuckle
clap
cough
cower
cringe
cry
curse
curtsey
explode
eye
eyebrow
flex
frown
gasp
giggle
glare
greet
grimace
grin
groan
growl
hiccup
hmm
hmph
hug
kick
laugh
listEmotes
moan
nod
oops
pat
peer
point
poke
ponder
pout
register
registerEmote
rolleyes
scowl
shake
shakeno
shiver
shrug
sigh
simpleEmote
smile
smirk
snicker
sniff
sob
spank
squirm
stomp
strut
swear
tap
thank
think
tickle
wait
wave
weep
whee
whew
whistle
wiggle
wink
writeAction
yawn
  ack 
ack (
        self,
        actionString,
        arguments,
        rawinput,
        )

  agree 
agree (
        self,
        actionString,
        arguments,
        rawinput,
        )

  apologize 
apologize (
        self,
        actionString,
        arguments,
        rawinput,
        )

  applaud 
applaud (
        self,
        actionString,
        arguments,
        rawinput,
        )

  belch 
belch (
        self,
        actionString,
        arguments,
        rawinput,
        )

  blbl 
blbl (
        self,
        actionString,
        arguments,
        rawinput,
        )

  blush 
blush (
        self,
        actionString,
        arguments,
        rawinput,
        )

  bow 
bow (
        self,
        actionString,
        arguments,
        rawinput,
        )

  cackle 
cackle (
        self,
        actionString,
        arguments,
        rawinput,
        )

  cheer 
cheer (
        self,
        actionString,
        arguments,
        rawinput,
        )

  chuckle 
chuckle (
        self,
        actionString,
        arguments,
        rawinput,
        )

  clap 
clap (
        self,
        actionString,
        arguments,
        rawinput,
        )

  cough 
cough (
        self,
        actionString,
        arguments,
        rawinput,
        )

  cower 
cower (
        self,
        actionString,
        arguments,
        rawinput,
        )

  cringe 
cringe (
        self,
        actionString,
        arguments,
        rawinput,
        )

  cry 
cry (
        self,
        actionString,
        arguments,
        rawinput,
        )

  curse 
curse (
        self,
        actionString,
        arguments,
        rawinput,
        )

  curtsey 
curtsey (
        self,
        actionString,
        arguments,
        rawinput,
        )

  explode 
explode (
        self,
        actionString,
        arguments,
        rawinput,
        )

  eye 
eye (
        self,
        actionString,
        arguments,
        rawinput,
        )

  eyebrow 
eyebrow (
        self,
        actionString,
        arguments,
        rawinput,
        )

  flex 
flex (
        self,
        actionString,
        arguments,
        rawinput,
        )

  frown 
frown (
        self,
        actionString,
        arguments,
        rawinput,
        )

  gasp 
gasp (
        self,
        actionString,
        arguments,
        rawinput,
        )

  giggle 
giggle (
        self,
        actionString,
        arguments,
        rawinput,
        )

  glare 
glare (
        self,
        actionString,
        arguments,
        rawinput,
        )

  greet 
greet (
        self,
        actionString,
        arguments,
        rawinput,
        )

  grimace 
grimace (
        self,
        actionString,
        arguments,
        rawinput,
        )

  grin 
grin (
        self,
        actionString,
        arguments,
        rawinput,
        )

  groan 
groan (
        self,
        actionString,
        arguments,
        rawinput,
        )

  growl 
growl (
        self,
        actionString,
        arguments,
        rawinput,
        )

  hiccup 
hiccup (
        self,
        actionString,
        arguments,
        rawinput,
        )

  hmm 
hmm (
        self,
        actionString,
        arguments,
        rawinput,
        )

  hmph 
hmph (
        self,
        actionString,
        arguments,
        rawinput,
        )

  hug 
hug (
        self,
        actionString,
        arguments,
        rawinput,
        )

  kick 
kick (
        self,
        actionString,
        arguments,
        rawinput,
        )

  laugh 
laugh (
        self,
        actionString,
        arguments,
        rawinput,
        )

  listEmotes 
listEmotes (
        self,
        actionString,
        arguments,
        rawinput,
        )

Implements the emotes command.

This function lists all the emotes available to a given player.

  moan 
moan (
        self,
        actionString,
        arguments,
        rawinput,
        )

  nod 
nod (
        self,
        actionString,
        arguments,
        rawinput,
        )

  oops 
oops (
        self,
        actionString,
        arguments,
        rawinput,
        )

  pat 
pat (
        self,
        actionString,
        arguments,
        rawinput,
        )

  peer 
peer (
        self,
        actionString,
        arguments,
        rawinput,
        )

  point 
point (
        self,
        actionString,
        arguments,
        rawinput,
        )

  poke 
poke (
        self,
        actionString,
        arguments,
        rawinput,
        )

  ponder 
ponder (
        self,
        actionString,
        arguments,
        rawinput,
        )

  pout 
pout (
        self,
        actionString,
        arguments,
        rawinput,
        )

  register 
register ( self,  manager )

  registerEmote 
registerEmote (
        self,
        manager,
        actionString,
        function,
        )

Automates registering emote functions and adding them to the list of all the emotes available so we can distinguish emotes from commands.

arguments:

manager
(??)
actionString
(string) the action string
function
(function) the function to handle the action

  rolleyes 
rolleyes (
        self,
        actionString,
        arguments,
        rawinput,
        )

  scowl 
scowl (
        self,
        actionString,
        arguments,
        rawinput,
        )

  shake 
shake (
        self,
        actionString,
        arguments,
        rawinput,
        )

  shakeno 
shakeno (
        self,
        actionString,
        arguments,
        rawinput,
        )

  shiver 
shiver (
        self,
        actionString,
        arguments,
        rawinput,
        )

  shrug 
shrug (
        self,
        actionString,
        arguments,
        rawinput,
        )

  sigh 
sigh (
        self,
        actionString,
        arguments,
        rawinput,
        )

  simpleEmote 
simpleEmote (
        self,
        actionString,
        parseString,
        displayString,
        defaultAdverb,
        failString,
        arguments,
        )

simpleEmote attempts to make emotes easier to create since many of them follow a basic syntax. In the displayString and parseString arguments, the following are used:

  • %e is the emote

  • %o is the object of the emote (the target)

  • %a is an adverb

  • %sp is a possessive source (your/his/her)

arguments:

actionString
(string) the one word action string or emote command
parseString
(string) the string used by the parser to recognize direct objects and adverbs and such
displayString
(string) what gets displayed to everyone
failString
(string) the notification of failure (if the player didn't use good syntax)
arguments
(list of strings) the arguments sent by the input processor that the player typed in

returns:

(int) 1 if successful, 0 if not

  smile 
smile (
        self,
        actionString,
        arguments,
        rawinput,
        )

  smirk 
smirk (
        self,
        actionString,
        arguments,
        rawinput,
        )

  snicker 
snicker (
        self,
        actionString,
        arguments,
        rawinput,
        )

  sniff 
sniff (
        self,
        actionString,
        arguments,
        rawinput,
        )

  sob 
sob (
        self,
        actionString,
        arguments,
        rawinput,
        )

  spank 
spank (
        self,
        actionString,
        arguments,
        rawinput,
        )

  squirm 
squirm (
        self,
        actionString,
        arguments,
        rawinput,
        )

  stomp 
stomp (
        self,
        actionString,
        arguments,
        rawinput,
        )

  strut 
strut (
        self,
        actionString,
        arguments,
        rawinput,
        )

  swear 
swear (
        self,
        actionString,
        arguments,
        rawinput,
        )

  tap 
tap (
        self,
        actionString,
        arguments,
        rawinput,
        )

  thank 
thank (
        self,
        actionString,
        arguments,
        rawinput,
        )

  think 
think (
        self,
        actionString,
        arguments,
        rawinput,
        )

  tickle 
tickle (
        self,
        actionString,
        arguments,
        rawinput,
        )

  wait 
wait (
        self,
        actionString,
        arguments,
        rawinput,
        )

  wave 
wave (
        self,
        actionString,
        arguments,
        rawinput,
        )

  weep 
weep (
        self,
        actionString,
        arguments,
        rawinput,
        )

  whee 
whee (
        self,
        actionString,
        arguments,
        rawinput,
        )

  whew 
whew (
        self,
        actionString,
        arguments,
        rawinput,
        )

  whistle 
whistle (
        self,
        actionString,
        arguments,
        rawinput,
        )

  wiggle 
wiggle (
        self,
        actionString,
        arguments,
        rawinput,
        )

  wink 
wink (
        self,
        actionString,
        arguments,
        rawinput,
        )

  writeAction 
writeAction (
        self,
        action,
        arguments,
        defaultAdverb,
        )

Writes basic text for really simple emotes. Basically it's ''You <action> <adverb>.''

  yawn 
yawn (
        self,
        actionString,
        arguments,
        rawinput,
        )


Table of Contents

This document was automatically generated on Thu Jan 24 08:57:43 2002 by HappyDoc version 2.0