📄 clump.h
字号:
#include "utility.h"#ifndef NP_CLUMP_H#define NP_CLUMP_H#include <vector>//using namespace std;class Clump{private: std::vector<int> m_food; Position m_pos; int m_SpawnRate; int m_progress; int m_me; void SpawnAFood();public: void ClumpReport(); Clump(); void SetSpawnRate(int sr); void Update(); int GetMe(); bool OwnerOf(int food); int GetAFood(); bool HasFood(); void SetPos(Position apos); void SetMe(int i); Position GetPosition(); int GetIndex(); bool RemoveFood(int food); int GetFoodCount();};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -