📄 px_ls_passive_effect.h
字号:
#pragma once
/* must been first include begin */
#include "..\ProjectX_Common\ProjectX_Copyright.h"
#include "..\ProjectX_Common\ProjectX_Common.h"
/* must been first include end */
/* std and common include */
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
/*
* 定义各种主体被它方主体或者自身施放增益等技能时产生的状态等的附加影响
*/
typedef struct tagPassive_Effect {
int discharge_sessionid;
int skill_id;
int frame_start;
int frame_persist;
float affect_value;
byte discharge_type;
byte state;
struct tagPassive_Effect * pNext;
}PASSIVE_EFFECT, * LPPASSIVE_EFFECT;
typedef struct tagPassive_Effect_Key {
int sessionid;
byte state;
PASSIVE_EFFECT * ppassive_effect;
}PASSIVE_EFFECT_KEY, * LPPASSIVE_EFFECT_KEY;
/*
* 经验
*/
typedef struct tagExp_Give {
int sessionid;
int hp_value;
byte exp_type;
byte check_code;
}EXP_GIVE, * LPEXP_GIVE;
/************************************************************************
定义实体在地图上的地图编码格式:
在地图上共有8中方向,值为0~7
具体约定为:
7 0 1
| | |
6 - + - 2
| | |
5 4 3
when entity's x or y has change for 1 offset,do follow
switch(entity.direction){
case 0: x = x; y ++;
case 1: x++; y++;
case 2: x++; y = y;
case 3: x++; y--;
case 4: x = x; y--;
case 5: x--; y--;
case 6: x--; y = y;
case 7: x--; y++;
}
************************************************************************/
/************************************************************************
关于实体的状态编码约定:
所有实体的状态编码采用1*sizeof(int)表示,即共32位bit,可以表示32中状态
其中各个位为set(1)为真,noset(0)为假,各个位编码含义为:
位序号(低位->高位) 含义
0 是否在城镇内
1 是否在安全区
2 是否为中毒状态
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
29
30
31
************************************************************************/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -