C++ Code sample

#include
#include <4aplins.h>

int 4aplins.mood;
int 4aplins.skirklis;
int 4aplins.money;
int 4aplins.end;
int 4aplins.twoViewsInEyes;

int 4aplins.init()
{
4aplins.mood = 4aplins.getMood();
4aplins.skirklis = 4aplins.checkSkirklis();
4aplins.money = 4aplins.checkMoney();
4aplins.twoViewsInEyes = 4aplins.checkIfDrunk();
4aplins.end = 4aplins.checkIfStillAlive();
if 4aplins.end = 1 then return 0;
return 1;
}



void main()
{
if 4aplins.init() <> 1 then
{
life.makeError("Something wrong!!!");
life.closeProgram();
}

do
{

if 4aplins.skirklis <> 0 then
{
get.skirklis();
} else if
{
timeChangeMood = get.currentTime();
4aplins.mood =-50;
}
}

if (get.currentTime() - timeChengeMood >= 60) and (4aplins.skirklis < mood ="+50;"> 0 then
{
do
{
4aplins.getSomeBeer();
4aplins.drinkBeer();
} while ((4aplins.twoViewsInEyes = 1) or (4aplins.money <= 0)) } else if { timeChangeMood = get.currentTime(); 4aplins.mood =-50; } } if ((get.dayOfWeek <> friday) and (4aplins.skirklis > 0) then
{
4aplins.doNothing();
} else if
timeChangeMood = get.currentTime();
4aplins.mood =-50;
}

} while (4aplins.end <> 1)

}

Comments