www.pudn.com > Ä£ÄâLIFT.rar > MyLift.h


// MyLift.h: interface for the MyLift class. 
// 
////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_MYLIFT_H__23BC5228_41D2_47D9_A248_042B16F8110C__INCLUDED_) 
#define AFX_MYLIFT_H__23BC5228_41D2_47D9_A248_042B16F8110C__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
struct Node 
{ 
	bool up; 
	bool down; 
}; 
 
class MyLift   
{ 
public: 
	MyLift(); 
	virtual ~MyLift(); 
	int PresentFloor;  //where the lift is now 
	int stop[8];       //record the floor user want to reach, 
	                   //0:no stop;1:stop when upwards;2:stop when downwards 
	Node state[8];     //record the state of outdoor buttons 
	                    
	void mkState(int Floor,bool UpOrDown); 
}; 
 
#endif // !defined(AFX_MYLIFT_H__23BC5228_41D2_47D9_A248_042B16F8110C__INCLUDED_)