00001 // RC 4/24/2002 \HRandy95\Include\FlockMan.h 00002 00003 #define __FLOCKMAN_H 00004 00005 #ifndef __VECTOR_H 00006 #include "Vector.h" 00007 #endif 00008 00009 class PeerBox; 00010 00011 // particle flock object. 00012 class Boid 00013 { 00014 public: 00015 int id; 00016 PeerBox *peerbox; 00017 Vector location, direction; 00018 }; 00019 00020 class BoidList 00021 { 00022 public: 00023 Boid *boid; 00024 BoidList *next; 00025 00026 BoidList() { boid = NULL; next = NULL; } 00027 }; 00028 00029 class PeerBox 00030 { 00031 public: 00032 BoidList *boidlist; 00033 PeerBox *top, *bottom, *left, *right, *front, *back; 00034 float positionrating; 00035 Vector center, upperleft, lowerright; 00036 00037 PeerBox() { boidlist = NULL; } 00038 00039 void ClearBoidList(); 00040 00041 };
Generated on Thu Oct 27 11:46:43 2005 with
1.4.5 written by Dimitri van Heesch,
© 1997-2001