30 float remainingLifeinSec;
47 Battery(
float remainingLifeinSec_, std::string batteryType=
"carrier");
int GetDisplayBar()
Definition: battery.cc:87
float TimeToFull()
This function returns the time battery needed charged to be full.
Definition: battery.cc:83
Battery()
Default Constructor. This sets up an instance of Battery with empty remaining life.
Definition: battery.cc:10
void Depleting(float sec)
Depleting The Battery. Should be used everytime the object using battery is in action.
Definition: battery.cc:56
float GetMaxCharge()
Definition: battery.cc:41
Definition: asubject.cc:3
float GetRemainingLife()
Definition: battery.cc:37
bool IsFull()
This returns a boolean value if the battery is full. True if the battery is full. False otherwise...
Definition: battery.cc:79
bool IsDead()
This returns a boolean value for the battery's life False if battery is dead (below 20%) True otherwi...
Definition: battery.cc:45
bool Charging(float sec)
Charging The Battery.
Definition: battery.cc:67
int GetId()
Definition: battery.cc:52