ADD file via upload

main
pw6mfljci 5 months ago
parent faa2302285
commit 7f53d68e8d

@ -0,0 +1,22 @@
#pragma once
#include "common.h"
#include "Snake.h"
class Food
{
private:
Point m_pos;
bool m_state;
public:
Food();
bool getState();
void setState(bool state);
Point getPos(); //获取食物坐标
void Generate(Snake* snake);//产生新的食物
void DrawFood();
};
Loading…
Cancel
Save