AmmoPickupSystem should now be able to give ammo to all classtypes

This commit is contained in:
verysecrethero
2016-03-08 11:48:54 +01:00
parent 2cfbe0f785
commit 0e0a486c01
2 changed files with 71 additions and 10 deletions
+12
View File
@@ -40,5 +40,17 @@ private:
};
std::vector<EntityAtMaxValuePickupStruct> m_PickupAtMaximum;
void DoPickup(EntityWrapper &player, EntityWrapper &trigger);
//class
enum class PlayerClass {
Assault,
Defender,
Sniper,
None
};
//helper methods
bool DoesPlayerHaveMaxAmmo(EntityWrapper &player);
PlayerClass DetermineClass(EntityWrapper &player);
int& GetPlayerAmmo(EntityWrapper &player);
int GetPlayerMaxAmmo(EntityWrapper &player);
};
#endif