SCRLSURF.H
资源名称:tc3d.zip [点击查看]
上传用户:abcdshs
上传日期:2007-01-07
资源大小:1858k
文件大小:1k
源码类别:
游戏
开发平台:
Visual C++
- // (C) Copyright 1996 by Anthony J. Carin. All Rights Reserved.
- #ifndef SCRLSURF_H
- #define SCRLSURF_H
- #include "windowsx.h"
- #include "higharea.h"
- #include "bmpsurf.h"
- class bmpsurfholder
- {
- public:
- bmpsurfholder(CString& filename) : m_bmp(filename) { m_next = NULL; }
- bmpsurf m_bmp;
- bmpsurfholder *m_next;
- };
- class scrollsurf : public surfs
- {
- public:
- scrollsurf();
- ~scrollsurf();
- scrollsurf(surfs& s);
- void draw();
- void ExemptFromIntersect();
- void OKToIntersect();
- char intersects(coordinate &a, coordinate &b);
- coordinate& intersectingpoint();
- void addsurf(CString& filename);
- void setto(coordinate& a, coordinate& b, coordinate& c, coordinate& d);
- virtual char iswithin(coordinate& c);
- virtual void xrotate(direction& d);
- virtual void yrotate(direction& d);
- virtual void zrotate(direction& d);
- virtual void CalcNormals();
- virtual void operator =(surfs& s);
- virtual void operator +=(coordinate& c);
- virtual char IsABmp() { return TRUE; }
- private:
- bmpsurfholder *m_bmps;
- bmpsurfholder *m_curr;
- };
- #endif