游戏开发论坛

 找回密码
 立即注册
搜索
查看: 2785|回复: 1

请求MAN结构中每位成员的含义是什么?

[复制链接]

3

主题

4

帖子

0

积分

新手上路

Rank: 1

积分
0
发表于 2004-7-30 21:13:00 | 显示全部楼层 |阅读模式
请求MAN结构中每位成员的含义是什么? [em24]

42

主题

334

帖子

344

积分

中级会员

Rank: 3Rank: 3

积分
344
发表于 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;                //对象结构
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

作品发布|文章投稿|广告合作|关于本站|游戏开发论坛 ( 闽ICP备17032699号-3 )

GMT+8, 2025-7-4 10:42

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表