This commit is contained in:
aozhiwei 2023-01-04 18:33:24 +08:00
parent 4696c8576d
commit 5205f1d36b
2 changed files with 8 additions and 0 deletions

View File

@ -926,3 +926,8 @@ const Position& Bullet::GetPos()
{
return Entity::GetPos();
}
void Bullet::Raycast()
{
raycasted_ = true;
}

View File

@ -79,6 +79,7 @@ protected:
void ClearBuffList();
void GetHitThings(BulletCheckResult& result);
void GetHitCreatures(BulletCheckResult& result);
void Raycast();
private:
bool later_removed_ = false;
@ -88,6 +89,8 @@ private:
long long create_frameno_ = 0;
bool strengthened_ = false;
std::list<int> buff_list_;
bool raycasted_ = false;
float raycast_len_ = 0.0f;
friend class EntityFactory;
};