add GetSpecColliders

This commit is contained in:
aozhiwei 2021-03-06 20:55:16 +08:00
parent e3f8fb5adf
commit a23de49951
3 changed files with 11 additions and 1 deletions

View File

@ -332,7 +332,10 @@ enum AIMode_e
enum ColliderTag_e enum ColliderTag_e
{ {
kHalfWallTag = 1 kHalfWallTag = 1,
kColliderTag_Grass = 2, //草丛
kColliderTag_Water = 3, //水
kColliderTag_Ice = 4, //冰
}; };
enum GameChannel_e enum GameChannel_e

View File

@ -2184,6 +2184,7 @@ void Human::_InternalUpdateMove(float speed)
SetPos(old_pos + a8::Vec2(nx, ny)); SetPos(old_pos + a8::Vec2(nx, ny));
room->grid_service->MoveHuman(this); room->grid_service->MoveHuman(this);
CheckSpecObject();
} }
void Human::ClearFrameData() void Human::ClearFrameData()
@ -4280,3 +4281,8 @@ void Human::DoGetOnWithCar(Car* car)
{ {
car->GetOn(this); car->GetOn(this);
} }
void Human::CheckSpecObject()
{
}

View File

@ -355,6 +355,7 @@ private:
void NextReload(int prev_weapon_id, int prev_weapon_idx); void NextReload(int prev_weapon_id, int prev_weapon_idx);
void DoGetOnWithLoot(Loot* loot_entity); void DoGetOnWithLoot(Loot* loot_entity);
void DoGetOnWithCar(Car* car); void DoGetOnWithCar(Car* car);
void CheckSpecObject();
protected: protected:
int level_ = 0; int level_ = 0;