You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
292 B

#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(); //<2F><>ȡʳ<C8A1><CAB3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
void Generate(Snake* snake);//<2F><><EFBFBD><EFBFBD><EFBFBD>µ<EFBFBD>ʳ<EFBFBD><CAB3>
void DrawFood();
};