📄 levels.h
字号:
// (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
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -