1 #include "airplane_i.h"
4 #include "ace/OS_NS_time.h"
7 Airplane_i::Airplane_i ()
9 // Seed the random number generator
10 ACE_OS::srand (static_cast<u_int
> (ACE_OS::time (0L)));
16 Airplane_i::~Airplane_i (void)
22 // Returns a random plane and page number
25 Airplane_i::get_plane (void)
28 ACE_DEBUG ((LM_DEBUG
, "Airplane_i::get_plane\n"));
30 switch (ACE_OS::rand () % 24)
33 return CORBA::string_dup ("Seagull, page 2");
35 return CORBA::string_dup ("Albatross, page 7");
37 return CORBA::string_dup ("Owl, page 13");
39 return CORBA::string_dup ("Falcon, page 19");
41 return CORBA::string_dup ("Sparrow, page 24");
43 return CORBA::string_dup ("Condor, page 31");
45 return CORBA::string_dup ("Basic wing-flapper, page 36");
47 return CORBA::string_dup ("Butterfly, page 42");
49 return CORBA::string_dup ("Moth, page 49");
51 return CORBA::string_dup ("Bat, page 54");
53 return CORBA::string_dup ("Wind rider, page 62");
55 return CORBA::string_dup ("Bobber, page 67");
57 return CORBA::string_dup ("Thunderbird, page 72");
59 return CORBA::string_dup ("Oddbird, page 77");
61 return CORBA::string_dup ("Another oddbird, page 81");
63 return CORBA::string_dup ("Asymmetric plane, page 86");
65 return CORBA::string_dup ("Flying spectacles, page 90");
67 return CORBA::string_dup ("UFO, page 100");
69 return CORBA::string_dup ("Space fighter #1, page 105");
71 return CORBA::string_dup ("Space fighter #2, page 110");
73 return CORBA::string_dup ("Pinwheel, page 120");
75 return CORBA::string_dup ("Flying saucer, page 128");
77 return CORBA::string_dup ("Flying teacup, page 134");
79 return CORBA::string_dup ("Tumbler, page 138");