Language:EN
Pages: 2
Rating : ⭐⭐⭐⭐⭐
Price: $10.99
Page 1 Preview
use height from the heightmap figures and

Use height from the heightmap figures and

246 Section 2 Mathematics

A B C

A B

FIGURE 2.8.5 Two multifractal landscapes. Note how there are valleys, plains, hills, and tall mountains all in the same landscape.

Steve Rabin, Nintendo of America

steve rabin@hotmail.com

The alternative is to employ event-driven techniques whenever possible. For example, in a baseball game when the ball is initially hit, the ball could simply tell the fielders that it was hit. This is extremely more efficient than each fielder polling the situation to detect when the batter has hit the ball. Granted, this is an obvious use of event-driven behavior, but it still shows the magnitude of processing that can be saved by using an event-driven strategy.

Another example would be of an arrow flying through a battlefield. Normally, the arrow would be checking for collisions with characters. If the arrow strikes a character, it would then notify the character of the collision as well as the location. The charac-ter could then react appropriately, responding to where the arrow pierced him. While this is starting to be event driven, nothing too spectacular has happened yet.

You are viewing 1/3rd of the document.Purchase the document to get full access instantly

Immediately available after payment
Both online and downloadable
No strings attached
How It Works
Login account
Login Your Account
Place in cart
Add to Cart
send in the money
Make payment
Document download
Download File
img

Uploaded by : Peter Macdonald

PageId: DOCC97BCFB