📄 world.h
字号:
#ifndef header_world
#define header_world
#if _MSC_VER > 1000
#pragma once
#endif
#include "gameobject.h"
#include "gameobject_pacman.h"
#include "map.h"
class World
{
//!Construction:
public:
World(CL_ResourceManager *resources);
~World();
//!Attributes:
public:
CL_ResourceManager *resources;
Map *map;
std::list<GameObject*> objects;
GameObject_Pacman *player;
int score;
bool quit;
//!Operations:
public:
void run(CL_DisplayWindow &window);
//!Implementation:
private:
void on_key_down(const CL_InputEvent &key);
int view_x, view_y;
CL_Font fnt_clansoft;
CL_SoundBuffer sample;
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -