LEVELS.H
资源名称:tc3d.zip [点击查看]
上传用户:abcdshs
上传日期:2007-01-07
资源大小:1858k
文件大小:2k
源码类别:
游戏
开发平台:
Visual C++
- // (C) Copyright 1996 by Anthony J. Carin. All Rights Reserved.
- #ifndef LEVELS_H
- #define LEVELS_H
- #include "girl.h"
- #include "bmpsurf.h"
- #include "control.h"
- #include "landscpe.h"
- extern CString& getpath(CString& filename);
- extern CString& picklist(float pick, CString& file);
- class levels
- {
- public:
- levels();
- virtual ~levels();
- virtual void draw();
- virtual char completed() { return mcompleted; }
- control *usercontrol;
- CString landscapemap;
- void NewLevel() { mcompleted = TRUE; }
- void ResetGuysHealth() { guy->ResetHealth(); }
- void SetGuyTo(view& v) { ((baseobject *)guy)->setto(v); }
- view& GuyLocation() { return ((baseobject *)guy)->location(); }
- char GuysHandsEmpty() { return (char)(guy->LeftHandEmpty() || guy->RightHandEmpty()); }
- landscape *selection;
- #ifdef EDITOR
- COLORREF selectioncolor;
- float selectionstep;
- #endif
- protected:
- dude *guy;
- baseobject *numobj;
- char mcompleted;
- private:
- void runcamera();
- char motionless;
- coordinate nextcam;
- direction camangle;
- float camdist;
- float camrise;
- float camstep;
- float camrstep;
- };
- class level1 : public levels
- {
- public:
- level1();
- void draw();
- };
- class level2 : public level1
- {
- public:
- level2();
- };
- class level3 : public levels
- {
- public:
- level3();
- void draw();
- };
- class level4 : public level3
- {
- public:
- level4();
- };
- class level5 : public level4
- {
- public:
- level5();
- };
- class level6 : public level1
- {
- public:
- level6();
- };
- class level7 : public level6
- {
- public:
- level7();
- };
- class level8 : public level7
- {
- public:
- level8();
- };
- class level9 : public level1
- {
- public:
- level9();
- };
- class level10 : public level9
- {
- public:
- level10();
- protected:
- baseobject *numobj2;
- };
- class level11 : public level10
- {
- public:
- level11();
- };
- class level12 : public level10
- {
- public:
- level12();
- };
- class lastlevel: public level12
- {
- public:
- lastlevel(short levelnum);
- };
- #endif