|
发表于 2004-8-2 09:03:00
|
显示全部楼层
Re:请求MAN结构中每位成员的含义是什么?
typedef struct
{ short int jisu; //序号
short int xix,xiy; //角色座标
short int x0,y0; //目标位置
short int w,h; //对象尺寸
short int lb; //类别: [0人1兽2景]
short int p; //计数
//以下人、动物使用
short int m0,m1; //位置初值、终值
short int zs; //动作:人[0站1走2刺3劈4倒]
//动作:兽[0站1走2跑3斗4倒5尸]
short int js; //角色:人[0男1女]
//角色:兽[0豹1狼2鹿3马4雀5羊6猪]
short int fw; //方位: [0南1西南2西3西北4北5东北6东7东南]
short int zd; //当前状态[0,1打斗]
short int smz; //生命值
//以下搜索使用
PATHN ph[250]; //搜索的路径
short int pk; //路径长
short int fid; //路径计数
short int fx,fy; //保留目标点
} MAN; //对象结构 |
|