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 00015 #include <map> 00016 00017 namespace FastEcslent { 00018 00019 class Engine; 00020 class WeaponMgr: public Mgr { 00021 00022 public: 00023 Options options; 00024 float damageMap[NWEAPONTYPES][NENTITYTYPES]; 00025 float range[NWEAPONTYPES]; 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_ */