25 #ifndef PEGASUS_NEIGHBORHOOD_MARS_SPACEJUNK_H 26 #define PEGASUS_NEIGHBORHOOD_MARS_SPACEJUNK_H 28 #include "pegasus/movie.h" 29 #include "pegasus/neighborhood/mars/constants.h" 30 #include "pegasus/neighborhood/mars/spacechase3d.h" 34 static const CoordType kJunkMaxScreenSize = 250;
36 static const float kJunkSize = convertScreenVToSpaceY(kShuttleWindowMidV - kJunkMaxScreenSize / 2, kJunkMinDistance) -
37 convertScreenVToSpaceY(kShuttleWindowMidV + kJunkMaxScreenSize / 2, kJunkMinDistance);
44 void setCenter(
const CoordType,
const CoordType);
45 void setScaleSize(
const CoordType);
47 void useIdleTime()
override;
49 void launchJunk(int16, CoordType, CoordType);
51 void getJunkPosition(
Point3D &);
59 bool junkFlying() {
return _timer.isRunning(); }
62 void rebound(
const TimeValue);
65 Point3D _launchPoint, _junkPosition;
69 CoordType _bounceSizeStart, _bounceSizeStop;
70 TimeValue _bounceTime;
Definition: spacechase3d.h:50
Definition: spacejunk.h:39
Definition: ai_action.h:33