I'm trying to follow the MVC architecture promoted by cocos, but am having 
trouble understanding how to 'control the controls' of some situations.

For example:
The user is in a game and presses F10 to bring up the in-game menu;
This should disable all the controls except F10 which is the shortcut to 
close the menu (along with the MenuItem for doing so).

Now, that ^ is what I'm stuck at right now, but in the future the same 
situation will apply to things like: Agents with different spells on 
different keyboard shortcuts, a worker unit with a menu of buildings which 
is only available when the worker is selected, and so on. Basically, I need 
some convention for quickly changing between control mappings.

I can imagine doing this with some elaborate system of if-then-else 
statements in the Control part of the MVC system, but that is of course 
very undesirable.

So I hope for some guidance on how to best build this in cocos.

-- 
You received this message because you are subscribed to the Google Groups 
"cocos2d discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cocos-discuss.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to