30class AmmoEntity :
public Item
33 CLASS_PROTOTYPE(AmmoEntity);
36 Item *ItemPickup(
Entity *other, qboolean add_to_inventory)
override;
37 void EventPostSpawn(
Event *ev);
40class Ammo :
public Class
48 CLASS_PROTOTYPE(Ammo);
51 Ammo(
str name,
int amount,
int name_index);
53 void setAmount(
int a);
55 void setMaxAmount(
int a);
56 int getMaxAmount(
void);
57 void setName(
str name);
60 void Archive(
Archiver& arc)
override;
63inline void Ammo::Archive(
Archiver& arc)
67 arc.ArchiveInteger(&amount);
68 arc.ArchiveInteger(&maxamount);
69 arc.ArchiveString(&name);
70 arc.ArchiveInteger(&name_index);
Definition listener.h:246