LifeCycle.h File Reference

Tamago life cycle handler. More...

#include <stdint.h>
Include dependency graph for LifeCycle.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  Stats
 Pet statistics. More...
 

Enumerations

enum  Evolution {
  EGG = 0, BABYTCHI, MARUTCHI, TAMATCHI,
  KUCHITAMATCHI, MAMETCHI, GINJIROTCHI, MASKUTCHI,
  KUCHIPATCHI, NYOROTCHI, TARAKOTCHI, OYAJITCHI,
  OBAKETCHI
}
 Tamago evolutions. More...
 
enum  StatusFlag { HAS_POOPED = 0, IS_SICK, IS_SLEEPING, IS_TIRED }
 Status flags.
 

Functions

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...
 

Detailed Description

Tamago life cycle handler.

Definition in file LifeCycle.h.

Enumeration Type Documentation

◆ Evolution

enum Evolution

Tamago evolutions.

Enumerator
EGG 

Egg.

BABYTCHI 

Baby, from Egg.

MARUTCHI 

Child, from Babytchi.

TAMATCHI 

Teen, good care from Marutchi.

KUCHITAMATCHI 

Teen, bad care from Marutchi.

MAMETCHI 

Adult, perfect care from Tamatchi.

GINJIROTCHI 

Adult, above average care from Tamatchi.

MASKUTCHI 

Adult, average care from Tamatchi.

KUCHIPATCHI 

Adult, below average care from Tamatchi, perfect care from Kuchitamatchi.

NYOROTCHI 

Adult, bad care from Tamatchi, average care from Kuchitamatchi.

TARAKOTCHI 

Adult, Horrible care from both.

OYAJITCHI 

Special, no discipline until it evolves to Maskutchi, perfect care from Maskutchi.

OBAKETCHI 

Dead.

Definition at line 14 of file LifeCycle.h.

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.