interface entity : public event { protected : entity(int ph=0,int qp=0,int sp=0,int kf = FALSE); // constructor. public : int phase(); // return phase. void phase(int p); // adjust phase. };