Game Development Reference
In-Depth Information
Communicating between game objects
In any game, there are planned interactions between any components within the game.
These could be as follows:
• Physics collision tests
• Reacting to being shot or shooting
• Opening and closing doors
• Triggers, switches, or traps
• Two or more characters talking
There are several ways in which you can achieve this, and each has their own particular
traits. The selection of the implementations depends on what you need to achieve. The
methods are as follows:
• Delegates
• Events
• Messaging
In this section, we will go through each method in detail and highlight the best uses of
each.
Search WWH ::




Custom Search