Class TAsteroid (unit Asteroid) |
****** * * Module: Asteroid * Author: Joe Kessler * IntegrationWare - A New Generation of Extraordinary PC Solutions * www.integrationware.com * * Purpose: * * This module defines the look and behavior of an asteroid in Rocks. * Asteroid are nothing but floating chunks of rock, but they have a * special look and behavior as defined here. * ******
Constructors |
Reference to the scoreboard object.
Functions |
Properties |
Events |
Variables |
Constructors |
*** Our constructor ***
Reference to the scoreboard object.
Functions |
Establish the mass of the asteroid up front, since the shape relies upon this. Then, generate a reasonable asteroid shape algorithmically.
Wrap around if we've gone off the screen.
Set up default coloring and visiblity information.
Make an exploding sound.
Properties |
Events |
Variables |