thanx with the pattern of txsmi it works pretty well, the code looks like that:
int remove_temp()
{
return (my.skill1 = 1);
}
void ent_move(ENTITY *temp)
{
temp.emask = ENABLE_ENTITY;
temp.event = remove_temp;
while(!temp.skill1)
{
c_move (temp, ...);
wait(1);
}
ent_remove(temp);
}
void create_ent()
{
ENTITY *temp1;
temp1 = ent_create (...);
ent_move (temp1);
}
Ok, the handing over of pointers works quite well so far, but why does lite-c not support references, I thought it would be more like C++ and supports this feature, but here it look more like C. Does lite-c support Classes?