Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "Child.h"
- #include "CharlieBean.h"
- #include "BabbyFud.h"
- #include "BabbyPoops.h"
- bool prepareBottle( Bottle b, EFluidType food, float volume_ml );
- bool feed( Child kidlet, EFluidType food, float volume_ml );
- FecalInformation changeDiaper( Child kidlet );
- void cuddles( Child kidlet );
- void panic();
- int quickSleep();
- // defined statically because she shall persist regardless of
- static const float CharlieCutenessPercent = 100.0f;
- Child charlieBean( "Charlotte", "Helen", "Anderson", CharlieCutenessPercent );
- int main()
- {
- int energy = 100;
- Bottle[] bottles[MAX_BOTTLES];
- uint currentBottle = 0;
- while (1)
- {
- // Feed Cycle
- if ( !feed( charlieBean, E_BREAST_MILK, 40 ) ) panic();
- FecalInformation poopDeets = changeDiaper( charlieBean );
- if ( poopDeets.size > E_SHITLOAD ) panic();
- if ( !feed( charlieBean, E_FORMULA_NEWBORN, 40 ) ) panic();
- cleanBottles();
- sterilizeBottles();
- // Cuddle and Stare. These functions monitor the system clock (poorly) and will return... eventually
- cuddles( charlieBean );
- stareAt( charlieBean );
- if ( energy <= 0 )
- {
- energy += quickSleep();
- }
- if ( !prepareBottle( bottle[currentBottle++], E_BREAST_MILK, 40 ) ) panic();
- if ( currentBottle >= MAX_BOTTLES) currentBottle = 0;
- if ( !prepareBottle( bottle[currentBottle++], E_FORMULA_NEWBORN, 40 ) ) panic();
- if ( currentBottle >= MAX_BOTTLES) currentBottle = 0;
- energy -= 20;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement