LifeCycle.c File Reference

Life cycle handler. More...

#include <stdbool.h>
#include "LifeCycle.h"
Include dependency graph for LifeCycle.c:

Go to the source code of this file.

Data Structures

struct  LifeCycleData
 Life cycle handler data. More...
 

Functions

static void _LifeCycleThread (void *pArg)
 
void LifeCycle_Init (void)
 Initialise life cycle.
 
StatsLifeCycle_GetStats (void)
 Get pet statistics. More...
 
bool LifeCycle_IsFlagSet (StatusFlag eFlag)
 Check if status flag is set. More...
 
void LifeCycle_ClearFlat (StatusFlag eFlag)
 Clear status flag. More...
 
void LifeCycle_SetFlag (StatusFlag eFlag)
 Set status flag. More...
 

Variables

static LifeCycleData _stLifeCycle = { 0 }
 Life cycle handler private data.
 

Detailed Description

Life cycle handler.

Author
Michael Fitzmayer

Definition in file LifeCycle.c.

Function Documentation

◆ LifeCycle_ClearFlat()

void LifeCycle_ClearFlat ( StatusFlag  eFlag)

Clear status flag.

Parameters
eFlagStatus flag

Definition at line 72 of file LifeCycle.c.

◆ LifeCycle_GetStats()

Stats* LifeCycle_GetStats ( void  )

Get pet statistics.

Returns
Pointer to stats

Definition at line 42 of file LifeCycle.c.

Here is the caller graph for this function:

◆ LifeCycle_IsFlagSet()

bool LifeCycle_IsFlagSet ( StatusFlag  eFlag)

Check if status flag is set.

Parameters
eFlagStatus flag
Returns
Flag state
Return values
trueStatus flag is set
falseStatus flag is not set

Definition at line 55 of file LifeCycle.c.

Here is the caller graph for this function:

◆ LifeCycle_SetFlag()

void LifeCycle_SetFlag ( StatusFlag  eFlag)

Set status flag.

Parameters
eFlagStatus flag

Definition at line 82 of file LifeCycle.c.