| 49 | entity() {} |
| 50 | bool fitsmode(int gamemode) { return !m_noitems && isitem(type) && !(m_noitemsnade && type!=I_GRENADE) && !(m_pistol && type==I_AMMO); } |
| 51 | void transformtype(int gamemode) |
| 52 | { |
| 53 | if(m_noitemsnade && type==I_CLIPS) type = I_GRENADE; |
| 54 | else if(m_pistol && ( type==I_AMMO || type==I_GRENADE )) type = I_CLIPS; |
| 55 | } |
| 56 | }; |
| 57 | |
| 58 | enum { GUN_KNIFE = 0, GUN_PISTOL, GUN_CARBINE, GUN_SHOTGUN, GUN_SUBGUN, GUN_SNIPER, GUN_ASSAULT, GUN_GRENADE, GUN_AKIMBO, NUMGUNS }; |
no outgoing calls
no test coverage detected