[DGD] Implementing Lima-like inputsys

Peter LaDow pladow at gocougs.wsu.edu
Thu Dec 13 20:14:42 CET 2001


Having been using MudOS and the Lima mudlib, I've only recently switched to
DGD.  Since I can't obviously just blindly drop in the DGD driver and take
off, I've decided to grab what I like from Lima and implement it into a new
mudlib of my own.

One of the features I like from Lima is the input system it uses
(modal_push(), modal_func(), etc.).  Unfortunately, it uses two MudOS
features that don't exist in DGD: classes and function pointers.

Searching the list archives, I understand that Dworkin has no plans to
implement function pointers, but I've already thought of methods around
that.  However, it would require quite a bit of work to rewrite (not that
I'm opposed, but it would take time).

But, I found no mention of "class" or "struct" types being available.  It
wasn't until I was fully trying to port the input system that I figured that
out.  Do any equivalents exist?  Or any plans to implement such? (Can I do
an array of mappings?  That may be the closest I can do classes/struct).

The real point of this message was to ask if anybody has implemented the
modal system.  If so, can you give any hints on doing this without function
pointers or closures?  My best idea was to to replace the function pointer
with an object, function name, and arguments, then using call_other().  Any
comments?

Peter LaDow
pladow at gocougs.wsu.edu

_________________________________________________________________
List config page:  http://list.imaginary.com/mailman/listinfo/dgd



More information about the DGD mailing list