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 Room;
class HeroAI;
class Creature;
class Hero : public Creature
{
public:
Entity* master = nullptr;
Creature* master = nullptr;
MetaData::Player* meta = nullptr;
bool shot_hold = false;

View File

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

View File

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