OpenBF1942-Plus
Refractor 1, rebuilt from scratch
Loading...
Searching...
No Matches
obf::Ammo Struct Reference

#include <game.h>

Public Member Functions

bool take (float t)
void reload (float t, const WeaponDef &w)
void tick (float t, const WeaponDef &w)
bool reloading (float t) const
bool supply (float rounds, const WeaponDef &w)

Static Public Member Functions

static Ammo full (const WeaponDef &w)

Public Attributes

int rounds = 0
int spare = 0
float reload_until = -1
bool unlimited = true
float refill = 0

Member Function Documentation

◆ full()

Ammo obf::Ammo::full ( const WeaponDef & w)
static

◆ reload()

void obf::Ammo::reload ( float t,
const WeaponDef & w )

◆ reloading()

bool obf::Ammo::reloading ( float t) const
inline

◆ supply()

bool obf::Ammo::supply ( float rounds,
const WeaponDef & w )

◆ take()

bool obf::Ammo::take ( float t)

◆ tick()

void obf::Ammo::tick ( float t,
const WeaponDef & w )

Member Data Documentation

◆ refill

float obf::Ammo::refill = 0

◆ reload_until

float obf::Ammo::reload_until = -1

◆ rounds

int obf::Ammo::rounds = 0

◆ spare

int obf::Ammo::spare = 0

◆ unlimited

bool obf::Ammo::unlimited = true

The documentation for this struct was generated from the following files: