Introduce yourselves!
Icebreaker: What's your favorite Mobile game?
Games are inherently event-driven
An event is anything that happens that a game object may need to take note of.
Generally, a game engine must:
A. Notify interested game objects B. Arrange for those game objects to respond
This is called event handling.
void Explosion::Update()
...
if (explosion_went_off) then
// Get list of all objects in range.
std::vector<Object *> list = getObjectsInRange(radius)
// Have them each react to explosion.
std::vector<Object *>::iterator it;
for (it = list.begin(); it != list.end(); it++)
li.currentObject() -> onExplosion()
end for
...
end if
onExplosion()
known as?Submit your answers:
http://wpi.qualtrics.com/jfe/form/SV_2gH6nVmq8F85jH7
Make sure to include the names of all group members.
Happy event-ing!
-- Mark