This commit is contained in:
aozhiwei 2021-03-19 20:02:12 +08:00
parent 14672510c7
commit c072a0d5a0
3 changed files with 4 additions and 3 deletions

View File

@ -12,10 +12,11 @@ namespace MetaData
class Human; class Human;
class Room; class Room;
class HeroAI; class HeroAI;
class Creature;
class Hero : public Creature class Hero : public Creature
{ {
public: public:
Entity* master = nullptr; Creature* master = nullptr;
MetaData::Player* meta = nullptr; MetaData::Player* meta = nullptr;
bool shot_hold = false; bool shot_hold = false;

View File

@ -570,7 +570,7 @@ Car* Room::CreateCar(Human* driver,
return car; return car;
} }
Hero* Room::CreateHero(Entity* master, Hero* Room::CreateHero(Creature* master,
MetaData::Player* meta, MetaData::Player* meta,
const a8::Vec2& pos, const a8::Vec2& pos,
const a8::Vec2& dir) const a8::Vec2& dir)

View File

@ -114,7 +114,7 @@ public:
int car_uniid, int car_uniid,
MetaData::Equip* meta, MetaData::Equip* meta,
const a8::Vec2& pos); const a8::Vec2& pos);
Hero* CreateHero(Entity* master, Hero* CreateHero(Creature* master,
MetaData::Player* meta, MetaData::Player* meta,
const a8::Vec2& pos, const a8::Vec2& pos,
const a8::Vec2& dir); const a8::Vec2& dir);