diff --git a/server/gameserver/constant.h b/server/gameserver/constant.h index 7d1841d..bac9e77 100755 --- a/server/gameserver/constant.h +++ b/server/gameserver/constant.h @@ -332,7 +332,10 @@ enum AIMode_e enum ColliderTag_e { - kHalfWallTag = 1 + kHalfWallTag = 1, + kColliderTag_Grass = 2, //草丛 + kColliderTag_Water = 3, //水 + kColliderTag_Ice = 4, //冰 }; enum GameChannel_e diff --git a/server/gameserver/human.cc b/server/gameserver/human.cc index 740a4f5..3881b96 100644 --- a/server/gameserver/human.cc +++ b/server/gameserver/human.cc @@ -2184,6 +2184,7 @@ void Human::_InternalUpdateMove(float speed) SetPos(old_pos + a8::Vec2(nx, ny)); room->grid_service->MoveHuman(this); + CheckSpecObject(); } void Human::ClearFrameData() @@ -4280,3 +4281,8 @@ void Human::DoGetOnWithCar(Car* car) { car->GetOn(this); } + +void Human::CheckSpecObject() +{ + +} diff --git a/server/gameserver/human.h b/server/gameserver/human.h index 91428f7..a693c86 100644 --- a/server/gameserver/human.h +++ b/server/gameserver/human.h @@ -355,6 +355,7 @@ private: void NextReload(int prev_weapon_id, int prev_weapon_idx); void DoGetOnWithLoot(Loot* loot_entity); void DoGetOnWithCar(Car* car); + void CheckSpecObject(); protected: int level_ = 0;