SetDrainRate

ds2.10/lib/doc/lfun/lib/body/SetDrainRate · 432 B

From the archive ds2.10.zip

Download the archive   « Back to the archive contents

SETDRAINRATE

NAME
        SetDrainRate()


SYNOPSIS
        int SetDrainRate(int i)



DESCRIPTION
        Sets how much of a battery's charge is drained per heartbeat of use.


EXAMPLES
        For a two-minute battery with a charge of 120  on a mud with a one-second heartbeat: SetDrainRate(1)


LOCATION
        /lib/battery.c
/lib/flashlight.c



SEE ALSO
        GetDrainRate, SetCharge, GetCharge


Author
        Cratylus


Site Stats

Snippets: 1791
Codebases: 571