Greetings. Note first that I am relatively new to POE and am probably
missing something obvious. Note second that the (nearly) full code can be
found at <http://www.perlmonks.org/index.pl?node_id=87139>.
I am attempting to write a simple pluggable core for interactive fiction in
Perl, using POE to keep track of the events passed between game objects.
However, I am running into a problem where an event is not being triggered
correctly.
The problem is that when a line of text is typed, the wheel sends it to the
input handler, which supposedly triggers an event in the parser object,
which then calls the verb as necessary. Right now I have one verb
implemented, just for a test of the read-parse-compute-output cycle: quit.
However, typing "quit" doesn't work. In my log file, it gets as far having
the POE kernel post an event to the parser; the event in the parser,
however, is never actually called, as that line never appears in the log.
I know this could be cleaned up quite a bit; feel free to do so if you
wish, but I was going to clean it up a bit later, and it shouldn't affect
the problem I'm having.
Can anyone help me figure out what is going on here?
Thanks in advance.
------------> Drake Wilson