//贪吃蛇对象typedef struct Snake{ pSnakeNode psnake;//蛇头 pSnakeNode pfood;//食品 enum DIRECTION direction;//蛇的方向 enum GAME_STATUS status;//蛇的状态 int food_wight;//一个食品分数 int sorce;//总分数 int sleep_time;//苏息时间}Snake;typedef Snake* pSnake;//设置光标坐标void SetPos(short x, short y);//初始化游戏