You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #pragma once
- #ifndef AI_H
- #define AI_H
-
- #include "API.h"
-
- // 暂定版本:Human和Butcher全部继承AI类,
- class IAI
- {
- public:
- IAI()
- {
- }
- virtual void play(IHumanAPI& api) = 0;
- virtual void play(IButcherAPI& api) = 0;
- };
-
- using CreateAIFunc = std::unique_ptr<IAI> (*)();
-
- class AI : public IAI
- {
- public:
- AI() :
- IAI()
- {
- }
- void play(IHumanAPI& api) override;
- void play(IButcherAPI& api) override;
- };
-
- #endif
|