Best python way to do 'object messaging'

Patrick K. O'Brien pobrien at orbtech.com
Mon Feb 11 14:59:17 EST 2002


Philip,

You might find this code helpful:

http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/87056

--
Patrick K. O'Brien
Orbtech


"Philip Swartzleonard" <starx at pacbell.net> wrote in message
news:Xns91AFB91DF83A2RASXnewsDFE1 at 130.133.1.4...
>
> Ok, so i have this pre-prototype (embrionic? :) game system, rogueish,
> that  basically involves a bunch of different objects running around a
> map, containing each other, beating each other up, that kind of thing
> :). What i'm trying to do is set up a general purpouse system for
> passing messages between the interface, the objects, the AI's, the game
> world and timing system, and whatever else comes up. Here are my current
> ideas/contarints:
>
[snip]
>
> This is -probably- what i'm going to go with, but i'd like to see if
> anyone has any ideas/comments/insperations/pointers-to-relevant-
> information, because i've never really made a system like this in any
> language, and i'd like to get it right before i build most of the rest
> of the system over it (i alredy have to refactor(i think that's how you
> use it) all of my display stuff out of the game data stuff, and remake
> the resource system -again- :)
>
> Thanks for anything :)
>
> --
> Philip Sw "Starweaver" [rasx] :: www.rubydragon.com
>





More information about the Python-list mailing list