00001 /* 00002 * weaponMgr.h 00003 * 00004 * Created on: Feb 28, 2012 00005 * Author: sushil 00006 */ 00007 00008 #ifndef WEAPONMGR_H_ 00009 #define WEAPONMGR_H_ 00010 00011 #include <mgr.h> 00012 #include <options.h> 00013 #include <enums.h> 00014 #include <ExplosionType.h> 00015 #include <WeaponType.h> 00016 #include <map> 00017 00018 namespace FastEcslent { 00019 00020 class Engine; 00021 class WeaponMgr: public Mgr { 00022 00023 public: 00024 Options options; 00025 const WeaponType * weaponType[NENTITYTYPES]; 00026 double maxHitpoints[NENTITYTYPES]; 00027 double initArmor[NENTITYTYPES]; 00028 double initDamageMultiplier[NENTITYTYPES]; 00029 00030 WeaponMgr(Engine *eng, Options opts); 00031 void init(); 00032 void tick(double dt); 00033 00034 private: 00035 void mapWeaponTypeToEntityType(); 00036 void fixFightingProperties(); 00037 00038 }; 00039 00040 00041 } 00042 00043 00044 #endif /* WEAPONMGR_H_ */