groupMgr.h

Go to the documentation of this file.
00001 /*
00002  * groupMgr.h
00003  *
00004  *  Created on: Jan 28, 2012
00005  *      Author: sushil
00006  */
00007 
00008 #ifndef GROUPMGR_H_
00009 #define GROUPMGR_H_
00010 
00011 #include <group.h>
00012 #include <options.h>
00013 #include <mgr.h>
00014 
00015 namespace FastEcslent {
00016 
00017         class Engine;
00018 
00019         class GroupMgr : public Mgr {
00020 
00021         private:
00022                 void reset();
00023 
00024         public:
00025                 Group*  groups[MaxGroups];     // MaxGroups in const.h
00026                 Options options;
00027                 int     nGroups;
00028 
00029                 GroupMgr(Engine *eng, Options opts);
00030                 GroupMgr();
00031 
00032                 void init();
00033                 void tick(double dtime);
00034 
00035 
00036                 void dumpOne(int i);
00037                 void dumpAll();
00038 
00039                 Group* createGroup(Entity** ents, int n);
00040                 //Group* createGroup();
00041                 Group* findIfExists(Group* g);
00042 
00043         };
00044 
00045 
00046 }
00047 
00048 
00049 
00050 #endif /* GROUPMGR_H_ */

Generated on Fri Dec 13 14:54:16 2013 for FastECSLent by  doxygen 1.5.4