Skip to main content
gamedev.net
🔒 Locked

Events design problem

Started by Kasha Bloom Dec 20, 2004 at 5:34 PM 1 replies 400+ views
Original Post
Kasha Bloom
Kasha Bloom
Hi, I'm creating a simple rts game to learn 3d game coding Now what I want is a structure (not a struct though :) thats something like this: event( triggers, conditions, actions ) (you migth recognise that from wc3) so that i can do things like this: SELECT_UNIT( LCLICK, MOUSEOVER.obj == UNIT, appstate.OnSelect(MOUSEOVER.obj)) UNSELECT_UNIT( LCLICK, MOUSEOVER.obj != UNIT, appstate.OnUnselect) BUTTON_CLICK( LCLICK, MOUSEOVER.obj == BUTTON, MOUSEOVER.obj.OnClick) and so on. any suggestions on how to do this?
fractoid
fractoid
Wow! You managed to point someone to Google without being either condescending or patronizing. May we all learn from your greatness!

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.