HIGHAREA.H
资源名称:tc3d.zip [点击查看]
上传用户:abcdshs
上传日期:2007-01-07
资源大小:1858k
文件大小:1k
源码类别:
游戏
开发平台:
Visual C++
- // (C) Copyright 1996 by Anthony J. Carin. All Rights Reserved.
- #ifndef HIGHAREA_H
- #define HIGHAREA_H
- #include "3dengine.h"
- class highlist;
- class higharea : public surfs
- {
- public:
- friend class highlist;
- higharea(surfs& area);
- virtual ~higharea();
- float hight() { return m_a.y(); }
- private:
- higharea *prev;
- higharea *next;
- };
- class highlist
- {
- public:
- friend class higharea;
- highlist() { m_First = m_Curr = 0; }
- ~highlist() { Purge(); }
- higharea *First() { m_Curr = m_First; return m_Curr; }
- higharea *Next() { if (m_Curr) m_Curr = m_Curr->next; return m_Curr; }
- private:
- void Purge();
- higharea *m_First;
- higharea *m_Curr;
- };
- #endif