⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 containercodes.h

📁 Blood 2全套源码
💻 H
字号:
// ----------------------------------------------------------------------- //
//
// MODULE  : ContainerCodes.h
//
// PURPOSE : Blood 2 container codes
//
// CREATED : 3/2/98
//
// ----------------------------------------------------------------------- //

#ifndef __CONTAINERCODES_H__
#define __CONTAINERCODES_H__


enum ContainerCode {
	CC_NOTHING=0,
	CC_WATER,			// Water
	CC_BLOOD,			// Pools o' Blood
	CC_ACID,			// Acid
	CC_WIND,			// Wind
	CC_LADDER,			// Ladders
	CC_CONVEYOR,		// Conveyor belt
// Level specific containers
	CC_CRANECONTROL,	// Control for the crane
	CC_DAMAGE,			// Causes damage or instant death.
	CC_FREEFALL,		// Freefall
	CC_MINEFIELD,		// Instant death with an explosion
	CC_MAX_CONTAINER_CODES
};


inline DBOOL IsLiquid(ContainerCode code)
{
	DBOOL bRet = DFALSE;

	switch (code)
	{
		case CC_WATER:
		case CC_BLOOD:
		case CC_ACID:
		case CC_FREEFALL:
			bRet = DTRUE;
		break;

		default : break;
	}

	return bRet;
}


inline DBOOL IsFreeMovement(ContainerCode code)
{
	return(IsLiquid(code) || (code == CC_LADDER));
}


inline DBOOL IsSpecialControl(ContainerCode code)
{
	return((code == CC_CRANECONTROL));
}


#endif // __CONTAINERCODES_H__

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -