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.

33 lines
656 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#pragma once
#include "mover.h"
#include "player.h"
#include "map.h"
class Monster : public Mover
{
private:
int status;
public:
Monster();
int GetStatus();
void SetStatus(int _status);
// 如果monster成功打败了player返回true否则为false包括没遇见player、被player打败
bool TryEatPlayer(Player player);
// 怪物移动时不仅要选择适当的移动策略还要注意恢复绘制走过的bean和goldBean
void MonsterMove(const Map& wall,Player player, const Map& bean, const Map& goldBean);
// 追逐玩家
int Chase(const Map& wall, Player player);
// 逃避玩家
int Escape(const Map& wall, Player player);
// 等待重生
int WaitingBorn(const Map& wall);
};