<!-- MHonArc v2.4.4 --> <!--X-Subject: Re: [MUD-Dev] DBs and Events --> <!--X-From-R13: Uert [hag <tertNhav-pbea.qrzba.pb.hx> --> <!--X-Date: Wed, 11 Feb 1998 10:50:22 +0000 --> <!--X-Message-Id: Pine.LNX.3.91.980210211015.65K-100000@uni-corn.demon.co.uk --> <!--X-Content-Type: text/plain --> <!--X-Reference: Pine.GSO.3.95q.980210092208.22633B-100000@uhunix1 --> <!--X-Head-End--> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <html> <head> <title>MUD-Dev message, Re: [MUD-Dev] DBs and Events</title> <!-- meta name="robots" content="noindex,nofollow" --> <link rev="made" href="mailto:greg#uni-corn,demon.co.uk"> </head> <body background="/backgrounds/paperback.gif" bgcolor="#ffffff" text="#000000" link="#0000FF" alink="#FF0000" vlink="#006000"> <font size="+4" color="#804040"> <strong><em>MUD-Dev<br>mailing list archive</em></strong> </font> <br> [ <a href="../">Other Periods</a> | <a href="../../">Other mailing lists</a> | <a href="/search.php3">Search</a> ] <br clear=all><hr> <!--X-Body-Begin--> <!--X-User-Header--> <!--X-User-Header-End--> <!--X-TopPNI--> Date: [ <a href="msg00398.html">Previous</a> | <a href="msg00400.html">Next</a> ] Thread: [ <a href="msg00397.html">Previous</a> | <a href="msg00400.html">Next</a> ] Index: [ <A HREF="author.html#00399">Author</A> | <A HREF="#00399">Date</A> | <A HREF="thread.html#00399">Thread</A> ] <!--X-TopPNI-End--> <!--X-MsgBody--> <!--X-Subject-Header-Begin--> <H1>Re: [MUD-Dev] DBs and Events</H1> <HR> <!--X-Subject-Header-End--> <!--X-Head-of-Message--> <UL> <LI><em>To</em>: <A HREF="mailto:mud-dev#null,net">mud-dev#null,net</A></LI> <LI><em>Subject</em>: Re: [MUD-Dev] DBs and Events</LI> <LI><em>From</em>: Greg Munt <<A HREF="mailto:greg#uni-corn,demon.co.uk">greg#uni-corn,demon.co.uk</A>></LI> <LI><em>Date</em>: Wed, 11 Feb 1998 10:47:34 +0100 (GMT+0100)</LI> </UL> <!--X-Head-of-Message-End--> <!--X-Head-Body-Sep-Begin--> <HR> <!--X-Head-Body-Sep-End--> <!--X-Body-of-Message--> <PRE> On Tue, 10 Feb 1998, Nathan Yospe wrote: > On Tue, 10 Feb 1998, Greg Munt wrote: > > :Also, any references to caches? > > Again, can't help you. I've done caches, but not for my mud... and there > is such a broad spectrum of things that qualify as cache. Do you want to > know more about cached in-memory storage for a disk-based DB? Yes. > Or bottleneck spot caching? What's that? > :Any references to Event Management? Is there any alternative to using a > :pointer to a function, to store the Event->function()? (This has the > :disadvantage of every Event->function() needing to have the same number > :and type of parameters being passed to it.) > > Here we go. This I can help you with. Events don't have to be functions, > for a start. An event could be stored as anything, from a script on down > to a held thread. I store mine as classes... any action is executed from > an event class, which grabs the nearest available execution thread, sets > it to the event's references, and frees it to go. Events are, by design, > only actually capable of grabbing one specific thread, such that any set > of events cannot execute asynchronously on the same resources. Functions > are actually pulled up _after_ execution begins... Event.Process() is at > its basis a normalization check, which tries to match a list of objects, > and upon success, changes the values of the objects to a new norm, then, > with its still-active thread, allows those objects to update. The object > update methods are the actual functions involved, and once each object's > updates are complete (and affected objects with zero delay complete such > updates as the modified objects have made available) the thread is wiped > clear of variables, set to sleep, and returned to the pool. I'm not sure I understand this too well. Are you suggesting this? class Event { private: DataType1 *a; DataType2 *b; ... public: ... process(); }; I still can't see how the event isn't a function. The tasks that the event does have to be stored in a function? Am I wrong in thinking that the data that an Event needs (eg pointer to a Player) are stored in the class, with a function - which takes no parameters - calling class methods to do whatever it is that the Event is trying to achieve? Also, it looks like Event would need to be a template. Forget that, am using Linux g++ :( I feel like I have totally gotten the wrong end of the stick here... > This is just > one approach to events that doesn't actually require a function pointer, > and a good number of others can be found in deja news archives of thread > and event related newsgroups. Could you lead me in the right direction here? Searches on dejanews revealed not very much (read: nothing)... > Nathan F. Yospe - Aimed High, Crashed Hard, In the Hanger, Back Flying Soon > Jr Software Engineer, Textron Systems Division (On loan to Rocketdyne Tech) > (Temporarily on Hold) Physics student, University of Hawaii dept of Physics > yospe#hawaii,edu nyospe#premeir,mhpcc.af.mil <A HREF="http://www2.hawaii.edu/~yospe/">http://www2.hawaii.edu/~yospe/</A> I'll use this opportunity to keep you updated on my work activities: I finally got a job, C++/Unix, using such tools as Rational Rose, etc. I'll be maintaining and developing planning and scheduling software for the steel industry. Will post a FAQ update soon. I'm free of Cobol now! Hurrah! -- Greg Munt, greg#uni-corn,demon.co.uk "I'm not bitter - just twisted." <A HREF="http://www.uni-corn.demon.co.uk/ubiquity/">http://www.uni-corn.demon.co.uk/ubiquity/</A> </PRE> <!--X-Body-of-Message-End--> <!--X-MsgBody-End--> <!--X-Follow-Ups--> <HR> <ul compact><li><strong>Follow-Ups</strong>: <ul> <li><strong><A NAME="00402" HREF="msg00402.html">Re: [MUD-Dev] DBs and Events</A></strong> <ul compact><li><em>From:</em> Nathan Yospe <yospe#hawaii,edu></li></ul> <li><strong><A NAME="00400" HREF="msg00400.html">DBs and Events</A></strong> <ul compact><li><em>From:</em> s001gmu#nova,wright.edu</li></ul> </UL></LI></UL> <!--X-Follow-Ups-End--> <!--X-References--> <UL><LI><STRONG>References</STRONG>: <UL> <LI><STRONG><A NAME="00397" HREF="msg00397.html">Re: [MUD-Dev] DBs and Events</A></STRONG> <UL><LI><EM>From:</EM> Nathan Yospe <yospe#hawaii,edu></LI></UL></LI> </UL></LI></UL> <!--X-References-End--> <!--X-BotPNI--> <UL> <LI>Prev by Date: <STRONG><A HREF="msg00398.html">No Subject</A></STRONG> </LI> <LI>Next by Date: <STRONG><A HREF="msg00400.html">DBs and Events</A></STRONG> </LI> <LI>Prev by thread: <STRONG><A HREF="msg00397.html">Re: [MUD-Dev] DBs and Events</A></STRONG> </LI> <LI>Next by thread: <STRONG><A HREF="msg00400.html">DBs and Events</A></STRONG> </LI> <LI>Index(es): <UL> <LI><A HREF="index.html#00399"><STRONG>Date</STRONG></A></LI> <LI><A HREF="thread.html#00399"><STRONG>Thread</STRONG></A></LI> </UL> </LI> </UL> <!--X-BotPNI-End--> <!--X-User-Footer--> <!--X-User-Footer-End--> <ul><li>Thread context: <BLOCKQUOTE><UL> <LI><STRONG>Re: [MUD-Dev] Character development [was Re: ]</STRONG>, <EM>(continued)</EM> <ul compact> <ul compact> <ul compact> <ul compact> <LI><strong><A NAME="00890" HREF="msg00890.html">Re: [MUD-Dev] Character development [was Re: ]</A></strong>, Matt Chatterley <a href="mailto:matt#mpc,dyn.ml.org">matt#mpc,dyn.ml.org</a>, Wed 25 Mar 1998, 08:12 GMT </LI> </ul> </ul> </ul> <LI><strong><A NAME="00905" HREF="msg00905.html">No Subject</A></strong>, J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Thu 26 Mar 1998, 17:32 GMT </LI> </ul> </LI> <LI><strong><A NAME="00396" HREF="msg00396.html">DBs and Events</A></strong>, Greg Munt <a href="mailto:greg#uni-corn,demon.co.uk">greg#uni-corn,demon.co.uk</a>, Tue 10 Feb 1998, 18:30 GMT <UL> <LI><strong><A NAME="00397" HREF="msg00397.html">Re: [MUD-Dev] DBs and Events</A></strong>, Nathan Yospe <a href="mailto:yospe#hawaii,edu">yospe#hawaii,edu</a>, Tue 10 Feb 1998, 19:40 GMT <UL> <LI><strong><A NAME="00399" HREF="msg00399.html">Re: [MUD-Dev] DBs and Events</A></strong>, Greg Munt <a href="mailto:greg#uni-corn,demon.co.uk">greg#uni-corn,demon.co.uk</a>, Wed 11 Feb 1998, 10:50 GMT <UL> <LI><strong><A NAME="00400" HREF="msg00400.html">DBs and Events</A></strong>, s001gmu <a href="mailto:s001gmu#nova,wright.edu">s001gmu#nova,wright.edu</a>, Wed 11 Feb 1998, 14:26 GMT <UL> <LI><strong><A NAME="00432" HREF="msg00432.html">OT: Linux g++</A></strong>, Greg Munt <a href="mailto:greg#uni-corn,demon.co.uk">greg#uni-corn,demon.co.uk</a>, Thu 12 Feb 1998, 11:52 GMT <UL> <LI><strong><A NAME="00444" HREF="msg00444.html">Re: [MUD-Dev] OT: Linux g++</A></strong>, Ben Greear <a href="mailto:greear#cyberhighway,net">greear#cyberhighway,net</a>, Fri 13 Feb 1998, 00:30 GMT <UL> <LI><strong><A NAME="00487" HREF="msg00487.html">Re: [MUD-Dev] OT: Linux g++</A></strong>, coder <a href="mailto:coder#ibm,net">coder#ibm,net</a>, Mon 16 Feb 1998, 11:29 GMT </LI> </UL> </LI> </UL> </LI> </UL> </LI> </UL> </LI> </UL> </LI> </UL> </LI> </UL></BLOCKQUOTE> </ul> <hr> <center> [ <a href="../">Other Periods</a> | <a href="../../">Other mailing lists</a> | <a href="/search.php3">Search</a> ] </center> <hr> </body> </html>