MUD-Dev
mailing list archive
[ Other Periods
| Other mailing lists
| Search
]
Date:
[ Previous
| Next
]
Thread:
[ Previous
| Next
]
Index:
[ Author
| Date
| Thread
]
Re: [MUD-Dev] CORBA, RMI, threads
On 29/01/98 at 10:29 AM, s001gmu#nova,wright.edu said:
>So, to reuse my schedule example, you could have several different calls
>like so:
> event_driver.schedule(new combat_event(real_to_game_time(t), attacker,
> defender));
> event_driver.schedule(new heal_event(real_to_game_time(t), target,
> amount));
I simplify all of this by not using a stack based architecture, but
instead using message passing. An "event" then is merely a tuple of an
objectID and a message to pass to that object,
>etc. Each event class descended from the generic event has it's own
>handle() method. You'll also want to have each descended event class's
>constructors take arguments of pertinent data, as above. You can make
>the inheretence tree as broad and deep as you like, depending on how you
>choose to organize things.
You also end up with a very very shallow and simple inheritance tree.
><rant>
>There are other ways of doing things which are less object oriented in
>their design (like registering callback functions). There is no one way
>that your code "should" look. Always keep in mind that there is no
>"right" solution to any problem. There are many solutions with varrying
>degrees of effectiveness, based on your assumptions and understanding of
>the problem. Lines like "how should my code look" really bother me...
></rant>
<nod>
--
J C Lawrence Internet: claw#null,net
----------(*) Internet: coder#ibm,net
...Honourary Member of Clan McFud -- Teamer's Avenging Monolith...
- Thread context:
- CORBA, RMI, threads, (continued)
- CORBA, RMI, threads,
s001gmu s001gmu#nova,wright.edu, Mon 26 Jan 1998, 20:37 GMT
- Re: [MUD-Dev] CORBA, RMI, threads,
Brandon Gillespie brandon#roguetrader,com, Tue 27 Jan 1998, 21:26 GMT
- Re: [MUD-Dev] CORBA, RMI, threads,
Marc Eyrignoux Marc.Eyrignoux#efrei,fr, Wed 28 Jan 1998, 10:09 GMT
- CORBA, RMI, threads,
s001gmu s001gmu#nova,wright.edu, Thu 29 Jan 1998, 14:46 GMT
- Re: [MUD-Dev] CORBA, RMI, threads,
coder coder#ibm,net, Sun 15 Feb 1998, 13:38 GMT
- CORBA, RMI, threads,
s001gmu s001gmu#nova,wright.edu, Mon 16 Feb 1998, 01:53 GMT
- Re: [MUD-Dev] CORBA, RMI, threads,
Brandon Gillespie brandon#roguetrader,com, Thu 29 Jan 1998, 15:53 GMT
Re: [MUD-Dev] The impact of the web on muds,
Mike Sellers mike#online-alchemy,com, Fri 02 Jan 1998, 21:21 GMT
Re: [MUD-Dev] The impact of the web on muds,
JC Lawrence claw#under,Eng.Sun.COM, Tue 06 Jan 1998, 02:44 GMT
[ Other Periods
| Other mailing lists
| Search
]