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

📄 reslistnode.h

📁 这个是我第一次完成的一个简单的3D ALIEN SHOOTING GAME的RESOURCE MANAGER部分,大家可以看看,然后提点意见~THX
💻 H
字号:
// ResNode.h
//

// Author:			Lea Hayes
// Date Created:	10/03/2006
// Date Modified:	10/03/2006

#pragma once


namespace Resources
{


typedef class ResListNode * LPRESLISTNODE;

class ResListNode
{
// Construction and destruction.
public:
	ResListNode(LPRESOURCE pRes = NULL);
	~ResListNode();

// Properties.
	inline bool IsResourceValid() const
	{
		return m_pRes != NULL;
	}
	inline bool IsBeginNode() const
	{
		return m_pPrev == NULL;
	}
	inline bool IsEndNode() const
	{
		return m_pNext == NULL;
	}

	inline size_t GetIndex() const
	{
		return m_nIndex;
	}

// Only resource arrays, iterators and of course the node itself have
// access to protected iterator members.

	friend class ResourceArray;
	friend class ResArrayIt;
	friend class ResArrayHandle;

// Attributes.
protected:
	LPRESLISTNODE m_pPrev, m_pNext;		// Linkage.
	LPRESOURCE m_pRes;					// Resource itself.
	size_t m_nIndex;					// Index of node.
};


}; // namespace Resources

⌨️ 快捷键说明

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