1 Star 0 Fork 0

Ailwyn / Game-Server

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
actor.h 729 Bytes
一键复制 编辑 原始数据 按行查看 历史
denntono 提交于 2011-12-07 19:18 . Signed-off-by: denntono marasovic@gmx.de
#include"gameEffects.h"
typedef struct
{
unsigned int classId;
unsigned int hue;
}actorAppearanceData_t;
typedef struct
{
int level;
int healthCurrent;
int healthMax;
int healthBonus;
}actorStats_t;
typedef struct _actor_t
{
int entityId;
int entityClassId;
char name[64];
char family[64];
actorStats_t stats;
actorAppearanceData_t appearanceData[21]; // should move this to manifestation and npc structure? (Because not used by monsters)
float posX;
float posY;
float posZ;
float rotation;
int attackstyle;
int actionid;
bool isRunning;
bool inCombatMode;
mapCellLocation_t cellLocation;
gameEffect_t *activeEffects;
char state;
}actor_t;
#define ACTOR_STATE_ALIVE 0
#define ACTOR_STATE_DEAD 1
C++
1
https://gitee.com/xx_001/Game-Server.git
git@gitee.com:xx_001/Game-Server.git
xx_001
Game-Server
Game-Server
master

搜索帮助