G
Guest
Guest
Archived from groups: rec.games.roguelike.development (More info?)
How to make a system of interaction between objects? I was thinking
about system based on messages (maybe windows-like?); after any action a
proper message is being sent to a global message queue, further all the
messages are processed, when the queue is empty time (?) is increased
(or other actions are performed). Examples of messages: MSG_MOVE,
MSG_EAT, MSG_POISON, MSG_...
Message processing function would send it to destination object, if the
object don't know how to handle the message, it is ignored.
What do you think about that? It looks quite flexible; how it is made in
other roguelikes?
How to make a system of interaction between objects? I was thinking
about system based on messages (maybe windows-like?); after any action a
proper message is being sent to a global message queue, further all the
messages are processed, when the queue is empty time (?) is increased
(or other actions are performed). Examples of messages: MSG_MOVE,
MSG_EAT, MSG_POISON, MSG_...
Message processing function would send it to destination object, if the
object don't know how to handle the message, it is ignored.
What do you think about that? It looks quite flexible; how it is made in
other roguelikes?